problem display contents in hdf file

li zhao janelizhao at YAHOO.COM
Fri Jan 11 11:40:25 EST 2008


Hi everybody,

Probably this is a simple fix but I must be missing
something. I try to open a hdf file and it loads well,
but giving the following error message when displaying
the variable.

ga-> d lst_day_cmg
Warning: HDF attribute named "add_off" does not exist
Warning: Could not retrieve "add_off" -- setting to
0.0
HDF-SDS Read Error for dtype UINT16
Data Request Error:  Error for variable 'lst_day_cmg'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = lst_day_cmg


Grads configuration as follows:
(Config: v1.9b4 32-bit little-endian readline sdf/xdf
hdf-sds netcdf lats printim)


Below is the actual ctl file I am using:

***********************************************
dset ^MOD11C3.A2000061.004.2004116185101.hdf
dtype hdfsds
options yrev
undef 0s
unpack scale_factor add_off
xdef 7200 linear -180.0 0.05
ydef 3600 linear  -90.0 0.05
zdef 1 levels 1
tdef 1 linear 1jan1989 1dy
vars 16
LST_Day_CMG=>lst_day_cmg 1 z,y,x Monthly daytime 3min
CMG Land-surface Temperature
QC_Day=>qc_day 0 y,x Sea surface temperature
Day_view_time=>day_view_time 0 y,x Sea surface
temperature
Day_view_angl=>day_view_angl 0 y,x Sea surface
temperature
Clear_sky_days=>clear_sky_days 0 y,x Sea surface
temperature
LST_Night_CMG=>lst_night_cmg 0 y,x Sea surface
temperature
QC_Night=>qc_night 0 y,x Sea surface temperature
Night_view_time=>night_view_time 0 y,x Sea surface
temperature
Night_view_angl=>night_view_angl 0 y,x Sea surface
temperature
Clear_sky_Night=>clear_sky_night 0 y,x Sea surface
temperature
Emis_20=>emis_20 0 y,x Sea surface temperature
Emis_22=>emis_22 0 y,x Sea surface temperature
Emis_23=>emis_23 0 y,x Sea surface temperature
Emis_29=>emis_29 0 y,x Sea surface temperature
Emis_31=>emis_31 0 y,x Sea surface temperature
Emis_32=>emis_32 0 y,x Sea surface temperature
endvars

Thanks for your help,
Zhao


      ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



More information about the gradsusr mailing list