<font size=2 face="Arial">I am having trouble viewing a NetCDF datafile
in GrADS, v2.0.1.oga.1, which I installed on my Windows machine using the
win32-superpack.zip file. I wrote a control file designed to open
a file in NetCDF format:</font>
<br>
<br><font size=2 face="Arial"><u>UKMOshum-2.ctl</u></font>
<br><font size=2 face="Courier New">dset ^pcmdi.ipcc4.ukmo_hadgem1.20c3m.run1.monthly.hus_A1_1950_to_1999.nc</font>
<br><font size=2 face="Courier New">dtype netcdf</font>
<br><font size=2 face="Courier New">title RAMS Output</font>
<br><font size=2 face="Courier New">undef 1.0e30</font>
<br><font size=2 face="Courier New">options 365_day_calendar</font>
<br><font size=2 face="Courier New">xdef lon 192 linear 0
1.875</font>
<br><font size=2 face="Courier New">ydef lat 145 linear -90
1.25</font>
<br><font size=2 face="Courier New">zdef plev 16 levels 1000
925 850 700 600 500 400 300 250 200 150 100 70 50 30 20</font>
<br><font size=2 face="Courier New">tdef time 600 linear
00:00Z02jan1950 01month</font>
<br><font size=2 face="Courier New">vars 1</font>
<p><font size=2 face="Courier New">hus=>hus </font><font size=3 face="Times New Roman">16
x,y,z,t specific humidity</font>
<p><font size=2 face="Courier New">endvars</font>
<br>
<br><font size=2 face="Arial">I open it with the command ‘xdfopen UKMOshum-1.ctl’,
and it opens without any trouble. When I try to display the data,
however, I get this error:</font>
<br>
<br>
<br><font size=2 face="Arial">xdfopen UKMOshum-2.ctl</font>
<br><font size=2 face="Arial">d hus</font>
<p><font size=3 face="Times New Roman">gancgrid error: nc_get_vara_double
failed; NetCDF: Start+count exceeds dimension bound </font>
<p>
<br><font size=2 face="Arial">I have used a similar control to open and
display this same variable (hus) for a different (also NetCDF) file, so
I'm not sure what is going wrong now. I have seen similar errors posted
on the message board, and tried to avoid the same mistakes. Doing
an ncdump on the NetCDF file has this output:</font>
<br>
<br><font size=2 face="Arial"><i>netcdf pcmdi.ipcc4.ukmo_hadgem1.20c3m.run1.monthly.hus_A1_1950_to_1999
{</i></font>
<br><font size=2 face="Arial"><i>dimensions:</i></font>
<br><font size=2 face="Arial"><i> lon = 192
;</i></font>
<br><font size=2 face="Arial"><i> lat = 144
;</i></font>
<br><font size=2 face="Arial"><i> plev = 16
;</i></font>
<br><font size=2 face="Arial"><i> time = UNLIMITED
; // (600 currently)</i></font>
<br><font size=2 face="Arial"><i> bnds = 2 ;</i></font>
<br><font size=2 face="Arial"><i>variables:</i></font>
<br><font size=2 face="Arial"><i> double lon(lon)
;</i></font>
<br><font size=2 face="Arial"><i>
lon:standard_name = "longitude" ;</i></font>
<br><font size=2 face="Arial"><i>
lon:long_name = "longitude" ;</i></font>
<br><font size=2 face="Arial"><i>
lon:units = "degrees_east" ;</i></font>
<br><font size=2 face="Arial"><i>
lon:axis = "X" ;</i></font>
<br><font size=2 face="Arial"><i>
lon:bounds = "lon_bnds" ;</i></font>
<br><font size=2 face="Arial"><i> double lon_bnds(lon,
bnds) ;</i></font>
<br><font size=2 face="Arial"><i> double lat(lat)
;</i></font>
<br><font size=2 face="Arial"><i>
lat:standard_name = "latitude" ;</i></font>
<br><font size=2 face="Arial"><i>
lat:long_name = "latitude" ;</i></font>
<br><font size=2 face="Arial"><i>
lat:units = "degrees_north" ;</i></font>
<br><font size=2 face="Arial"><i>
lat:axis = "Y" ;</i></font>
<br><font size=2 face="Arial"><i>
lat:bounds = "lat_bnds" ;</i></font>
<br><font size=2 face="Arial"><i> double lat_bnds(lat,
bnds) ;</i></font>
<br><font size=2 face="Arial"><i> double plev(plev)
;</i></font>
<br><font size=2 face="Arial"><i>
plev:standard_name = "air_pressure" ;</i></font>
<br><font size=2 face="Arial"><i>
plev:long_name = "pressure" ;</i></font>
<br><font size=2 face="Arial"><i>
plev:units = "Pa" ;</i></font>
<br><font size=2 face="Arial"><i>
plev:axis = "Z" ;</i></font>
<br><font size=2 face="Arial"><i>
plev:positive = "down" ;</i></font>
<br><font size=2 face="Arial"><i>
plev:original_units = "hPa" ;</i></font>
<br><font size=2 face="Arial"><i> double time(time)
;</i></font>
<br><font size=2 face="Arial"><i>
time:standard_name = "time" ;</i></font>
<br><font size=2 face="Arial"><i>
time:long_name = "time" ;</i></font>
<br><font size=2 face="Arial"><i>
time:units = "days since 1950-1-1" ;</i></font>
<br><font size=2 face="Arial"><i>
time:axis = "T" ;</i></font>
<br><font size=2 face="Arial"><i>
time:calendar = "360_day" ;</i></font>
<br><font size=2 face="Arial"><i>
time:bounds = "time_bnds" ;</i></font>
<br><font size=2 face="Arial"><i> double time_bnds(time,
bnds) ;</i></font>
<br><font size=2 face="Arial"><i> float hus(time,
plev, lat, lon) ;</i></font>
<br><font size=2 face="Arial"><i>
hus:standard_name = "specific_humidity" ;</i></font>
<br><font size=2 face="Arial"><i>
hus:long_name = "Specific Humidity" ;</i></font>
<br><font size=2 face="Arial"><i>
hus:units = "1" ;</i></font>
<br><font size=2 face="Arial"><i>
hus:cell_methods = "time: mean" ;</i></font>
<br><font size=2 face="Arial"><i>
hus:_FillValue = 1.e+20f ;</i></font>
<br><font size=2 face="Arial"><i>
hus:missing_value = 1.e+20f ;</i></font>
<br><font size=2 face="Arial"><i>
hus:history = " At 16:53:26 on 04/15/2005: CMOR
altered the data in the following ways: replaced missing value flag (-1.07374E+09)
with standard missing value (1.00000E+20); Dimension order was changed;"
;</i></font>
<br>
<br><font size=2 face="Arial">This indicates that the units field should
be in the order x,y,z,t, correct?</font>
<br>
<br><font size=2 face="Arial">D. Werth </font>