Grads commands Flashcards
d tmp2m
visuallize the tmp2m parameters
d tmp2m -273.15
Visualizes the tmp2m parameter. This code is found from the command (q file) (-273.15 to change from K to C) this draws contours by default.
set gxout shaded
shows it shaded instead of contours
c
clear the screen
set lat 22.5 26.5
set the latitude
set lon 52 56.5
set longitude
set mpdset hires
set the map in high resolution
draw title temp CHART
give the map a title
cbar
set legend
set cint 2
change the interval to 2
d ugrd10m;vgrd10m
draw temperature vectors
d skip(ugrd10m,4);(vgrd10m)
draw wind vectors
set gxout barb
change wind to barb
set cthink 6
make the barbs look thicker
q dims
gives information about the dimentions
d pressfc/100
show isobars
d smth9(pressfc/100)
make isobars smoother
set ccolor 1
change color of isobars to 1
reset
start over the map
set lev 1000 10
set levels from 1000 to 10
printim (filename) (options)
print map
options in
printim (filename) (options)
- png
- . gif
- jpg
- black (use black background)
- white (use white background)
- . xNNN (horizontal size in NNN pixels)
- yNNN (vertical size in NNN pixels)
- –t NN (color number NN is transparent)
- –b bgImage (Image file bgImage included in the background of the output)
- xNNN (horizontal size in NNN pixels)
grads -lbc temp.gs
execute tmp.gs script
!ftp tgftp.nws.noaa.gov
enter the website
>!ftp tgftp.nws.noaa.gov
Name:
Password:
name: annonymous
password: @
set clevs 12 13 14 15 16 17 18 19 20
set levels for pallets
set ccols
set colors for pallets
set rgb 16 R G B
set a new color
how to take data from USB
df -h
1- Anything in linux is called a devise it is found is /dev/
(cd /dev/)
2- sdc is the flash drive
(mkdir /sample)
(mount /dev/sdc1 /sample)
(cd sample)
you will find all the data
how to eject USB
umount /sample
mag(u,v)
calculate wind speed
D sqrt(ugrd10m* ugrd10m+ vgrd10m* vgrd10m)
another way of finding the wind speed
d hcurl(ugrd10m,vgrd10m)
calculate vorticity
D (tmp2m-273.15)*9/5+32
change from C to F