[gradsusr] about "SDF data variable has unsupported packed data type "

dyjbean soybean dyjbean at gmail.com
Wed Sep 1 04:36:37 EDT 2010


hi,
  i have made a netcdf file write in fortran ,but when i open it in grads
with 'sdfopen ', the following error occurs:

*********************************************************************************************
 ga-> sdfopen j:/00apr.nc
Scanning self-describing file:  j:/00apr.nc
SDF file has no discernable time coordinate.
SDF file j:/00apr.nc is open as file 1
LON set to -179.959 179.949
LAT set to -62.8134 89.2103
LEV set to 0 0
Time values set: 1:1:1:0 1:1:1:0
ga-> q file
File 1 : NDVI production
  Descriptor: j:/ndvi2000apr.nc
  Binary: j:/ndvi2000apr.nc
  Type = Gridded
  Xsize = 4950  Ysize = 2091  Zsize = 1  Tsize = 1
  Number of Variables = 1
    ndvi 0 -999 NDVI
ga-> d ndvi
SDF data variable has unsupported packed data type.
Data Request Error:  Error for variable 'ndvi'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = ndvi
***************************************************************************************
based on the above problem, i made a 'ddf' file, as follows:
++++++++++++++++++++++++++++++++++++
dset ^ndvi2000apr.nc
options yrev
undef -9999.0
xdef lon 4950 linear -179.95932 0.07272727
ydef lat 2091 linear -62.81345 0.07272727
zdef lev  1   levels 1000
tdef time 1   linear apr2000 1mo
vars 1
ndvi=>ndvi  1 99 normalized difference vegetation index
endvars
++++++++++++++++++++++++++++++++++++++++

but the same error appears:

  ga-> xdfopen j:/ndvi2000apr.ddf
Scanning Descriptor File:  j:/ndvi2000apr.ddf
SDF file j:/00apr.nc is open as file 1
LON set to 0 360
LAT set to -62.8134 89.1865
LEV set to 1000 1000
Time values set: 2000:4:1:0 2000:4:1:0
ga-> q file
File 1 : NDVI production
  Descriptor: j:/ndvi2000apr.ddf
  Binary: j:/00apr.nc
  Type = Gridded
  Xsize = 4950  Ysize = 2091  Zsize = 1  Tsize = 1
  Number of Variables = 1
    ndvi 1 99 normalized difference vegetation index
ga-> d ndvi
SDF data variable has unsupported packed data type.
Data Request Error:  Error for variable 'ndvi'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = ndvi
+++++++++++++++++++++++++++++++++

the nc file information is below:
   filename:      ndvi2000apr
  path:  ndvi2000apr.nc
   file global attributes:
      title : NDVI production
   dimensions:
      lev = 1
      lat = 2091
      lon = 4950
      time = 1  // unlimited
   variables:
      integer lev ( lev )
         long_name :    Level
         units :        level_number
      float lat ( lat )
         long_name :    Latitude
         units :        degree_north
      float lon ( lon )
         long_name :    Longitude
         units :        degree_east
      integer time ( time )
         long_name :    TimeRecord
         units :        monthly
      float ndvi ( time, lev, lat, lon )
         long_name :    NDVI
         units :        m2m-2
         missing_value :        -9999
         scale_factor : 0
         _FillValue :   -9999

according to the abovementioned questions, any help is appreciaed, thanks


-- 
通讯地址:北京市朝阳区大屯路9718信箱
          中国科学院遥感应用研究所
邮编:100101
电话:010-64860422
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100901/43e61acc/attachment-0003.html 


More information about the gradsusr mailing list