[gradsusr] (no subject)
Jeff Duda
jeffduda319 at gmail.com
Wed Nov 23 12:24:58 EST 2011
My experience with grib2 files is to use convgrb to convert them to grib1
files, then use grib2ctl.pl to get a control file for each converted grib1
file. You can do that using a C-shell loop. Once you do that, you can use
a while loop in a Grads script (not at the command prompt), to open each
individual file and print the data to a text file using
fprintf<http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file>.
Jeff Duda
On Wed, Nov 23, 2011 at 10:55 AM, Alireza Azargoun <
alireza.azargoun at gmail.com> wrote:
> Dear GrADS users
> Hi everybody
>
> I have about 200 grib2 files ( 1.grb2 ~ 200.grb ) . i need to read a
> temperature of a city (lat, lon, lev, time are constant in all files) . how
> i can read this files using a while loop!? ( I receive this error when i
> write a while. Unknown Command: while )
> and how can i write these data to a text file!? I've searched all grads
> option for a command that writes variables in a text file! but i couldn't
> find it!
>
> Thanks in advance,
> Alireza
> Sharif University of Technology
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Grad student - PhD, Meteorology
University of Oklahoma School of Meteorology - Center for Analysis and
Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111123/29cf5722/attachment-0003.html
More information about the gradsusr
mailing list