[Thread Prev][Thread Next][Index]

Re: [ferret_users] Date functions



Hi Szymon,
Ferret deals with dates by expressing them as coordinate values of units-since-origin. For instance this might be months since 1-jan-1900, or minutes since 15-feb-2001. If you define a variable from a time axis,

LET tt = t[gt=taxis]

then the values of tt are those coordinate values. You can operate on that variable and then define a new time axis from the resulting varaible.

Also there is a family of functions TAX* which let you get at time axis information. List them with SHOW FUNCTION TAX*. These are useful for manipulating time information.

Keep in mind that although coordinate data is stored and used as double-precision values within Ferret, once you define a variable such as the tt above, or the results of any of the TAX* functions which are numeric, these variables will be in single precision.

Ansley

On 6/3/2011 8:12 AM, Szymon Roziewski wrote:
Dear Ferreters,

I am wondering whether ferret has functions for dealing with dates e.g. to add two dates or add a few hours to a certain date.

Kind regards,
Szymon Roziewski


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement