Re: [CF-metadata] udunits time units question

2011-04-25 Thread Cecelia DeLuca
Hi John, It's written in C/C++. There's a full Fortran interface, common functions have a C interface, and we've started some esmf python interfaces (for remapping, not time yet). What's most useful to you? Cecelia On 4/22/2011 8:34 AM, John Caron wrote: Thanks Cecelia! Is it written in

Re: [CF-metadata] udunits time units question

2011-04-22 Thread John Caron
Thanks Cecelia! Is it written in C++ or Fortran90 or ? John On 4/18/2011 3:22 PM, Cecelia DeLuca wrote: Hi John, Chris, all: Here's a more direct link to the ESMF utility for timekeeping than Brian provided:

Re: [CF-metadata] udunits time units question

2011-04-18 Thread Cecelia DeLuca
Hi John, Chris, all: Here's a more direct link to the ESMF utility for timekeeping than Brian provided: http://www.earthsystemmodeling.org/esmf_releases/public/last/ESMF_refdoc/node5.html#SECTION0504 There are a number of calendars supported (Proleptic Gregorian, no-leap,

Re: [CF-metadata] udunits time units question

2011-04-01 Thread Schultz, Martin
Hi Chris et al., indeed it seems like some clarification is necessary about the use of different calendars in modelling. Your suggestion to map the 360 day calendar onto the Gregorian calendar in output files won't work: there would be no need for a 360 day calendar if it would. The idea

Re: [CF-metadata] udunits time units question

2011-04-01 Thread John Caron
Hi Martin and all: Im wondering what essential methods a calendar library needs to have to support, eg 360 day calendars? The only one that comes to mind is to calculate the difference between two dates in, say, seconds? What else? John On 4/1/2011 12:55 AM, Schultz, Martin wrote: Hi Chris

Re: [CF-metadata] udunits time units question

2011-04-01 Thread Jon Blower
- From: cf-metadata-boun...@cgd.ucar.edu [mailto:cf-metadata-boun...@cgd.ucar.edu] On Behalf Of John Caron Sent: 01 April 2011 12:05 To: cf-metadata@cgd.ucar.edu Subject: Re: [CF-metadata] udunits time units question Hi Martin and all: Im wondering what essential methods a calendar library needs

Re: [CF-metadata] udunits time units question

2011-04-01 Thread John Caron
On 4/1/2011 5:09 AM, Jon Blower wrote: I guess such a library also needs the ability to add and subtract fixed durations to and from reference date/times. where the duration is in a fixed number of seconds, i assume? so we have: CalendarDate d1, d2; long secs = d1.diff(d2); d1 = d2.add(

Re: [CF-metadata] udunits time units question

2011-04-01 Thread Jon Blower
-metadata-boun...@cgd.ucar.edu [mailto:cf-metadata-boun...@cgd.ucar.edu] On Behalf Of John Caron Sent: 01 April 2011 14:17 To: cf-metadata@cgd.ucar.edu Subject: Re: [CF-metadata] udunits time units question On 4/1/2011 5:09 AM, Jon Blower wrote: I guess such a library also needs the ability to add

Re: [CF-metadata] udunits time units question

2011-04-01 Thread Brian Eaton
Hi John, You might have a look at the ESMF time handling utilies for some ideas about what a library that supports modelling (i.e., non-standard calendars) contains. http://www.earthsystemmodeling.org/esmf_releases/public/last/ESMF_refdoc/ Brian On Fri, Apr 01, 2011 at 05:04:42AM -0600, John