The latest page is at itmetr.net.
last modified:
05:03 PM MDT, Sun 15 Jun 2008
Ready to try Python Numeric?
Download numpyplot.tar.gz.Or (on Gentry) do: wget http://gentry.metr.ou.edu/numpy/numpyplot.tar.gzThen gunzip numpyplot.tar.gz tar xvf numpyplot.tarWithin numpyplot, view the Readme file. As part of your task, you will be making a sequence of PNG images of the surface pressure fluctuations, as derived from the reanalysis data. You will be showing the animation on the web. A similar animation is shown here, but for 200 mb meridional wind. The gribhelper.py script uses the wgrib utility, which you may want to learn about in the following. A short tutorial on reanalysis data, GRIB files and the wgrib utilityThis short tutorial will show you just about everything I know about GRIB and the reanalysis data. Try this:wgrib /REANALYSIS/1997/data/at00z12z/vgrd200.prs Did you see about 730 lines dumped to your monitor? wgrib followed by the name of the file dumps out the data description embedded in the file, the description of what numbers are stored within the file. I think that is why GRIB is called a self-defining file. Before we go on with the experiments, lets make the path to the file a bit easier to type on the command line by setting a symbolic link: ln -s /REANALYSIS/1997/data/at00z12z/vgrd200.prs vdat Now try the command wgrib vdat If the symbolic link is working, we move on to: wgrib vdat -d 300 That command showed you information about record 300 and binary formatted data was put in a file called dump. You will get more information about what data was dumped if you type: wgrib vdat -d 300 -V Here are some more experiments: wgrib vdat -d 300 -V -text -o xxx.dat Look inside xxx.dat. See that the first line is a "header". If you don't want the header, use: wgrib vdat -d 300 -V -text -o xxx.dat -nh The reanalysis data is stored on horizontal grids of two different sizes. Lets make a symbolic link to some temperature data: ln -s /REANALYSIS/1997/data/at00z12z/tmp.2m t2m
wgrib t2m -d 300 -V -text -o xxx.dat -nh Notice the surface data is on a 192x94 "Gaussian grid" which means the latitude is not quite evenly spaced. The information printed to monitor also indicates this is a "6hr fcst", meaning the data is valid for 18Z, rather than the 12Z time indicated for the file. |