From: Arlindo da S. <da...@al...> - 2008-03-24 04:22:35
|
All, I have put together a very simple extension for providing Grib-2 support in GrADS v1.9. My main motivation is to be able to use lats4d to convert Grib-2 files to HDF. Right now, the implementation is limited to lat/lon grids, and there is no PDEF support. I suspect it is a bit slower than grads v2, but it is quite usable. There is no caching, and since this is v1.9, all is float32 which is good for older, less powerful boxes. It works something like this: % g2gdf gfs.t00z.pgrb2bf00 % grads ... ga-> g2_open gfs.t00z.pgrb2bf00.gdf ga-> d g2(hgtprs) You have to go though function g2() to get a variable, other than that you can plot cross sections and time-series just the same. Templating is also supported. Gribmap is not used. Documentation is here: http://opengrads.org/doc/udxt/grib2/ You will need both g2ctl.pl and wgrib2 v1.7.2 or later. You can get wgrib2 builds here: http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=263736 If you have a chance to play with it I'd appreciate hearing from you. I don't have grib2.gex binaries, but coulld provide some if you would like to give it a try. Otherwise, it builds trivially: % gacvs co -P Grads % cd Grads/extensions/ams % gmake I'd like to release grib2.gex with the next UDXT bundle. Any comments greatly appreciated. Cheers! Arlindo -- Arlindo da Silva da...@al... |