[gradsusr] Opening a netCDF file using xdfopen/sdfopen

Jeffrey Duda jdduda at iastate.edu
Sun Apr 24 01:11:45 EDT 2011


Hello,
I need help opening a netcdf file to be viewed in Grads.  I've attached it
to this email.  I tried sdfopen , but I got this error:

SDF Error: 365 day calendars are no longer supported by sdfopen.
  To open this file with GrADS, use a descriptor file with
  a complete TDEF entry and OPTIONS 365_day_calendar.
  Documentation is at http://iges.org/grads/gadoc/SDFdescriptorfile.html

So I tried writing a very simple descriptor file:

DSET ^SGS.nc
OPTIONS 365_day_calendar
TDEF 365 LINEAR 00Z01SEP1996 1dy

When I tried to open this using xdfopen, I got this error:

gadxdf error: Missing or invalid dimension size.
  --> The invalid description file record is:
  --> tdef 365 linear 00z01sep1996 1dy
  The data file was not opened.

So I'm not really sure what I'm doing wrong...or what I'm doing at all, for
that matter.  Please help.  The output from ncdump on the file is:

netcdf SGS {
dimensions:
        LON = 248 ;
        LAT = 144 ;
        bnds = 2 ;
        TIME = UNLIMITED ; // (12 currently)
variables:
        double LON(LON) ;
                LON:units = "degrees_east" ;
                LON:modulo = 360. ;
                LON:point_spacing = "even" ;
                LON:axis = "X" ;
        double LAT(LAT) ;
                LAT:units = "degrees_north" ;
                LAT:point_spacing = "uneven" ;
                LAT:axis = "Y" ;
                LAT:bounds = "LAT_bnds" ;
        double LAT_bnds(LAT, bnds) ;
        double TIME(TIME) ;
                TIME:units = "days since 1996-09-01 00:00:00" ;
                TIME:time_origin = "01-SEP-1996 00:00:00" ;
                TIME:calendar = "NOLEAP" ;
                TIME:axis = "T" ;
                TIME:bounds = "TIME_bnds" ;
        double TIME_bnds(TIME, bnds) ;
        float PRECLIM(TIME, LAT, LON) ;
                PRECLIM:missing_value = -1.e+34f ;
                PRECLIM:_FillValue = -1.e+34f ;
                PRECLIM:long_name = "(PRECIP[D=1,L=1])" ;

// global attributes:
                :history = "FERRET V6.65   30-Mar-11" ;
                :Conventions = "CF-1.0" ;
}

Thanks.

Jeff Duda

-- 
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110424/97030e25/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SGS.nc
Type: application/x-netcdf
Size: 1720820 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110424/97030e25/attachment-0001.nc 


More information about the gradsusr mailing list