[gradsusr] help - NetCDF file

Matt Masarik mmasarik at atmos.ucla.edu
Wed Jul 10 15:43:38 EDT 2013


Hi Celso,

you can solve this by using a small (3 line) control file
that has the 365_day_calendar option specified.  Copy
the following text into a file, say, amazonia.ctl

DSET ^amazonia.clm2.h0.2002-01-04-00000.nc
OPTIONS 365_day_calendar
tdef time 3084 linear 16jan1850 1mo

I put your file name in the DSET line already.  You will
need to change the 3084 to the total number of time
records in the file.  You can find this out by issuing
the following at a command prompt:

ncdump -c amazonia.clm2.h0.2002-01-04-00000.nc

you will also need to change 16jan1850 to the start
date of your data set, again use ncdump.

Once you make those changes you should be able to open
the file by using

xdfopen amazonia.ctl


Matt


On 07/10/2013 11:50 AM, Celso Bandeira de Melo Ribeiro wrote:
> Hello,
> I'm working with GrADS Version 2.0.a9 in Linux Ubuntu 64-bit and I am not
> able to open NetCDF file.
> I am using the function "sdfopen" but an error message appears as sending
> the attachment.
> The message, as follows:
>
> ga-> sdfopen amazonia.clm2.h0.2002-01-04-00000.nc
> Scanning self-describing file:  amazonia.clm2.h0.2002-01-04-00000.nc
> 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
> ga->
>
> I would like to know how solve this problem.
> Thank you!
> Celso
>




More information about the gradsusr mailing list