[gradsusr] Opening a netCDF file using xdfopen/sdfopen
Charles Seman
Charles.Seman at noaa.gov
Mon Apr 25 12:24:53 EDT 2011
Jeff,
Try this (http://iges.org/grads/gadoc/gradcomdxdfopen.html):
TDEF TIME 12 LINEAR 00Z01SEP1996 1mo
Note the use of "TIME 12" and dt = "1mo"...
For reference, please find attached a GrADS ctl file which opens a
NOLEAP climatology.nc file in GrADS v2 and an "ncdump -c" file showing
the time coordinates, etc...
Hope this helps,
Chuck
Jeffrey Duda wrote:
> 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 <http://www.meteor.iastate.edu/~jdduda>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.
********************************************************************
Charles Seman Charles.Seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: climatology.ctl
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20110425/9f7ec850/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: climatology.ncdump-c
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20110425/9f7ec850/attachment-0001.pl
More information about the gradsusr
mailing list