[gradsusr] SDF Error: 365 day calendars are no longer supported by sdfopen.

Tummuri, Spandana tummuris at cdm.com
Mon Jun 13 12:53:37 EDT 2011


Hello Everyone,

I was wondering if one of you would be able to tell me how you addressed this issue.

I am not very good at GRADS programming.  I only needed to use it to open a ".nc" file and get some values averaged over a period of time.  So I typically use the following three commands in grads.

Sdfopen "filename.nc"
Run monmask.gs N           ...................(N = month)
d ave(aave(pr*mmask, lon=lon1, lon = lon2, lat = lat1, lat = lat2),t=time1,t=time2)

This worked for a few files but when I tried to use it on some others, I get the following error


ga-> sdfopen pr_A1.nc
Scanning self-describing file:  pr_A1.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

When I compared NCDUMP for the files for which "sdfopen" worked with the those for which "sdfopen" did not work, I noticed that the calendar has to be gregarian for sdfopen to work.

Can you tell me how I can open files that have "noleap" calendars and work around the 365_day_calendar issue?

I greatly appreciated your help in this matter.

Thank you.
Spandana


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110613/7cd309bb/attachment.html 


More information about the gradsusr mailing list