On Tue, Jan 5, 2010 at 10:23 AM, Fan Fang <span dir="ltr"><<a href="mailto:Fan.Fang@nasa.gov">Fan.Fang@nasa.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Had the following error when trying to convert a grib2 file into hdf4 format. I am using lats4d in the grads-2.0.a7.oga.3 bundle. The .ctl file has the lines around soilw40_100cm:<br>
<br>
...<br>
RH0C 0,4,0 0,1,1 ** 0C isotherm Relative Humidity [%]<br>
SHTFLsfc 0,1,0 0,0,11,0 ** surface Sensible Heat Net Flux [W/m^2]<br>
SOILW0_10cm 0,106,0,0.1 2,0,192 ** 0-0.1 m below ground Volumetric Soil Moisture Content [Fraction]<br>
SOILW10_40cm 0,106,0.1,0.4 2,0,192 ** 0.1-0.4 m below ground Volumetric Soil Moisture Content [Fraction]<br>
SOILW40_100cm 0,106,0.4,1 2,0,192 ** 0.4-1 m below ground Volumetric Soil Moisture Content [Fraction]<br>
SOILW100_200cm 0,106,1,2 2,0,192 ** 1-2 m below ground Volumetric Soil Moisture Content [Fraction]<br>
SPFH2m 0,103,2 0,1,0 ** 2 m above ground Specific Humidity [kg/kg]<br>
...<br>
<br>
Anyone has insight into this? Thanks.<br>
<br>
-Fan<br>
<br>
<br>
> grads -blc 'run <a href="http://lats4d.gs" target="_blank">lats4d.gs</a> -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test'<br>
Welcome to the OpenGrADS Bundle Distribution<br>
--------------------------------------------<br>
<br>
For additional information enter "grads -h".<br>
<br>
Starting "/home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/grads -blc 'run <a href="http://lats4d.gs" target="_blank">lats4d.gs</a> -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' " ...<br>
<br>
<br>
Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3<br>
Copyright (c) 1988-2008 by Brian Doty and the<br>
Institute for Global Environment and Society (IGES)<br>
GrADS comes with ABSOLUTELY NO WARRANTY<br>
See file COPYRIGHT for more information<br>
<br>
Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff<br>
Issue 'q config' command for more information.<br>
Loading User Defined Extensions table </home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/gex/udxt> ... ok.<br>
GX Package Initialization: Size = 11 8.5<br>
Running in Batch mode<br>
No hardcopy metafile open<br>
All files closed; all defined objects released;<br>
All GrADS attributes have been reinitialized<br>
LATS error (lats_var): LATS (lats.c) --> Variable soilw40_100cm: not in the variable table, file ID 1<br>
lats4d: fatal error defining variables<br>
lats4d: error creating hdf4 file grib2test.hdf<br>
<RC> 1 </RC><br>
</IPC><br>
lats4d: exiting from GrADS...<br>
No hardcopy metafile open<br>
GX package terminated<br>
</blockquote></div><br>I think I know what the problem is. The variabble name <b>soilw40_100cm </b>is too long. Try editing your ctl and shortening the variable name, say <b>soilw40_100</b>.<br><div><br></div><div> Arlindo</div>
<div><br></div><div><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>