Fw: Grib to NetCDF files
Mike Bosilovich
mike.bosilovich at GMAIL.COM
Wed Apr 30 09:45:35 EDT 2008
Hi,
Can you open the grib data in grads and plot it OK? That is a test to make
sure that you are pointing to the data properly. If it doesn't open in
grads, lats4d likely won't work either.
The first thing I see in your ctl file that could be a problem is: index ^
lats4d.gs
Change this to "index ^filename.idx" then run gribmap -i filename.ctl (you
should do this for all your ctls that you want to convert to nc, and make
sure they open in grads)
If all opens well in grads the command you have should work. However, I
would suggest running
lats4d -nc -i filename.ctl -o filename
Good luck!
Mike
On Wed, Apr 30, 2008 at 7:56 AM, Talita Reis Antunes Pereira <
talita at smm.mil.br> wrote:
> Hi all,
> I`m repeating the question because there was no answer.
> Talita
> ---------- Forwarded Message -----------
> From: "Talita Reis Antunes Pereira" <talita at smm.mil.br>
> To: GRADSUSR at LIST.CINECA.IT
> Sent: Wed, 16 Apr 2008 19:28:31 +0100
> Subject: Grib to NetCDF files
>
> Hi all,
> I`m trying to convert Grib files to NetCDF files using lats4d but when I
> run lats4d script (lats4d -i filename.ctl -o filename.nc), the error
> bellow
> is the results. I`ve changed my grads version and the same error appears.
> Anybody have an answer for it?
> Thanks,
> Talita
>
> dset ^hrm_met5_00_2008012500
> index ^lats4d.gs
> undef 9.999E+20
> title hrm_met5_00_2008012500
> * produced by grib2ctl v0.9.12.5p32l
> dtype grib 255
> ydef 361 linear -49.900000 0
> xdef 301 linear -72.000000 0.000000
> tdef 1 linear 00Z25jan2008 1mo
> zdef 1 linear 1 1
> vars 9
> ALHFLSsfc 0 121,1, 0 ** surface latent heat flux [W/(m**2)]
> CLCTsfc 0 71,1, 0 ** surface total cloud cover [%]
> RAINCONsfc 0 113,1, 0 ** surface surface precipitation amount, rain,
> convective [kg/m**2]
> RAINGSPsfc 0 102,1, 0 ** surface surface precipitation amount, rain,
> grid
> scale [kg/m**2]
> T2m 0 11,105,2 ** 2 m temperature [K]
> TD2m 0 17,105,2 ** 2 m dew-point temperature [K]
> Tsoildpl 0 85,111,0 ** soil temperature [K]
> U10m 0 33,105,10 ** 10 m u-component (zonal) of wind [m/s]
> V10m 0 34,105,10 ** 10 m v-component (merdional) of wind [m/s]
> ENDVARS
> dset ^hrm_met5_00_2008012500
> index ^lats4d.gs
> undef 9.999E+20
> title hrm_met5_00_2008012500
> * produced by grib2ctl v0.9.12.5p32l
> dtype grib 255
> ydef 361 linear -49.900000 0
> xdef 301 linear -72.000000 0.000000
> tdef 1 linear 00Z25jan2008 1mo
> zdef 1 linear 1 1
> vars 9
> ALHFLSsfc 0 121,1, 0 ** surface latent heat flux [W/(m**2)]
> CLCTsfc 0 71,1, 0 ** surface total cloud cover [%]
> RAINCONsfc 0 113,1, 0 ** surface surface precipitation amount, rain,
> convective [kg/m**2]
> RAINGSPsfc 0 102,1, 0 ** surface surface precipitation amount, rain,
> grid
> scale [kg/m**2]
> T2m 0 11,105,2 ** 2 m temperature [K]
> TD2m 0 17,105,2 ** 2 m dew-point temperature [K]
> Tsoildpl 0 85,111,0 ** soil temperature [K]
> U10m 0 33,105,10 ** 10 m u-component (zonal) of wind [m/s]
> V10m 0 34,105,10 ** 10 m v-component (merdional) of wind [m/s]
> ENDVARS
> dset ^hrm_met5_00_2008012500
> index ^GRIB
> undef 9.999E+20
> title hrm_met5_00_2008012500
> * produced by grib2ctl v0.9.12.5p32l
> dtype grib 255
> ydef 361 linear -49.900000 0
> xdef 301 linear -72.000000 0.000000
> tdef 1 linear 00Z25jan2008 1mo
> zdef 1 linear 1 1
> vars 9
> ALHFLSsfc 0 121,1, 0 ** surface latent heat flux [W/(m**2)]
> CLCTsfc 0 71,1, 0 ** surface total cloud cover [%]
> RAINCONsfc 0 113,1, 0 ** surface surface precipitation amount, rain,
> convective [kg/m**2]
> RAINGSPsfc 0 102,1, 0 ** surface surface precipitation amount, rain,
> grid
> scale [kg/m**2]
> T2m 0 11,105,2 ** 2 m temperature [K]
> TD2m 0 17,105,2 ** 2 m dew-point temperature [K]
> Tsoildpl 0 85,111,0 ** soil temperature [K]
> U10m 0 33,105,10 ** 10 m u-component (zonal) of wind [m/s]
> V10m 0 34,105,10 ** 10 m v-component (merdional) of wind [m/s]
> ENDVARS
> ./lats4d.gs: line 4: syntax error near unexpected token `('
> ./lats4d.gs: line 4: `* files from GrADS using the PCMDI (http://www-
> pcmdi.llnl.gov) LATS'
>
> --
> ------- End of Forwarded Message -------
>
>
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080430/76bf03ed/attachment.html
More information about the gradsusr
mailing list