[gradsusr] 360 day calendar issue

Jennifer M Adams jadams21 at gmu.edu
Wed Dec 9 15:50:50 EST 2015


Where does CDO put the extra 5 days?
—Jennifer

On Dec 9, 2015, at 12:15 PM, Illeana Gomez Leal <ig238 at cornell.edu<mailto:ig238 at cornell.edu>> wrote:


Hi,

Frank Lunkeit has find a simple solution to trick GrADS using cdo to change the calendar of the NetCDF file:

cdo -f nc setcalendar,standard old_namefile.nc new_namefile.nc

then,

sdfopen new_namefile.nc

and it works!

Cheers,
Illeana

Le 9 déc. 2015 à 11:07, Jennifer M Adams <jadams21 at gmu.edu<mailto:jadams21 at gmu.edu>> a écrit :

Hi, Illeana —
It sounds like you have one file per year. I think the best way to do wedge this data into the GrADS data model is to break your files into daily pieces, so you have one file per day. Then it will be up to you to decide how to map 360 days onto a 365-day calendar, which will be done using a new file naming convention for your daily files. The simplest might be to do templating on julian day, and have the final 5 days of each year always be missing. But if you want to do any kind of monthly analysis on this data, that may mess you up.
—Jennifer

On Dec 8, 2015, at 5:41 PM, Illeana Gomez Leal <ig238 at cornell.edu<mailto:ig238 at cornell.edu>> wrote:


Hi,

I have matrices of T21 space resolution and 2880 points in time (8 points per day in a 360 day year), and I have more that 200 netcdf files of this type.
If I must convert all my data, how does GrADS work? Can I change the string « 360_day » in time:calendar to another value in order to trick it?

Thank you very much,
Illeana

Le 8 déc. 2015 à 17:26, Jeff Duda <jeffduda319 at gmail.com<mailto:jeffduda319 at gmail.com>> a écrit :

You can write a full control file. I would think all of the necessary information to write a control file would be present. You'll just have to extract it manually. For example, you can use the information from the output from ncdump of the time array variable in your TDEF entry.

Jeff Duda

On Tue, Dec 8, 2015 at 4:09 PM, Tom Shannon <ts247 at cornell.edu<mailto:ts247 at cornell.edu>> wrote:

Hello all,


I'm working with a researcher with a lot of data based on a 360 day calendar. Example from ncdump:

double time(time) ;
        time:calendar = "360_day" ;
        time:units = "days since 0199-01-01 00:00:00" ;
        time:base_date = 199, 1, 1, 0 ;


I understand that 360 day calendars are no longer supported in grads. We've tried version 2.0.2 and 2.1.a3 and get the "SDF Error: 360 day calendars are not supported by sdfopen" error with both.


What options do we have, if any, short of rerunning the processes?


thanks in advance,

Tom


System Admin

Cornell University

Dept of Astronomy


_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr




--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030





_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151209/231228c4/attachment.html 


More information about the gradsusr mailing list