grib2 meteogram scripts
Arlindo da Silva
dasilva at ALUM.MIT.EDU
Sun Sep 28 20:41:17 EDT 2008
On Sun, Sep 28, 2008 at 2:37 AM, Habib Amini <habibamini at gmail.com> wrote:
> Dear All
>
> How can I transfer an ascii file for vector wind to netcdf file. If you
> know how I can do it please attach to me its script.
>
GrADS do not handle gridded data in ASCII format. You will have to write a
simple program to have your data converted to a format that GrADS can read
first. Here is a recipe using Fortran:
http://cookbooks.opengrads.org/index.php?title=Recipe-004:_Creating_GrADS_binary_gridded_files_using_FORTRAN
Once the data has been read you can either used lats4d in GrADS v1.9 or the
new sdfwrite feature in GrADS v2.0 to produce NetCDF output.
Now if you are going to write a program anyway, you may want to skip GrADS
altogether and write NetCDF output directly from your program.
Alternatives include using python/perl to read the ASCII data and write your
binary or NetCDF file. One of these days I'll have a recipe for it.
Arlindo
Best Regards
> On 9/22/08, Jennifer Adams <jma at cola.iges.org> wrote:
>>
>> Dear All, I have posted a copy of the scripts I am using to draw
>> meteograms from GFS 0.5-degree grib2 data, just like the ones at
>> http://wxmaps.org/pix/meteograms.html. The scripts and a brief ReadMe
>> file are located under the directory
>> ftp://grads.iges.org/pub/jma/meteograms/
>> The scripts create a local binary subset of the data that are required to
>> draw the meteogram. They assume that the grib2 data is local, but I think
>> the setup would work using the GDS also, although I haven't tested it. See
>> the ReadMe file for some additional comments. I'm sorry I don't have time to
>> package them more neatly than this.
>>
>>
>> Jennifer
>>
>>
>>
>> --
>> Jennifer M. Adams
>> IGES/COLA
>> 4041 Powder Mill Road, Suite 302
>> Calverton, MD 20705
>> jma at cola.iges.org
>>
>>
>>
>>
>>
>>
>
>
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080928/315d3a38/attachment.html
More information about the gradsusr
mailing list