[Thread Prev][Thread Next][Index]

Re: [ferret_users] Extract time excursion



Hi,

I agree.  The axis is defined as integer values with the grid cell length "year", so the coordinates are forced to be an equal length apart, but when those coordinates are translated into a date string, the code uses year length for the particular calendar to make the translation.

If you try defining the axis using a calendar that has equal-length years such as noleap, the result is as expected.

On 1/18/2021 10:32 PM, Ryo Furue wrote:
Hi Patrick,

I'm far from the best person to answer your question and I hope somebody more knowledgeable will elucidate what's going on, but . . .

On Tue, Jan 19, 2021 at 6:05 AM Patrick Brockmann <patrick.brockmann@xxxxxxxxxxxx> wrote:

yes? define axis/t=1998:2009:1/units=years/t0=01-JAN-0000 tyear
yes? let a=t[gt=tyear]                                          
yes? say `a, return=tstart`                                     
!-> MESSAGE/CONTINUE 1997-12-31 12:21:36
1997-12-31 12:21:36

---> why this 1997-12-31 ???

yes? define axis/t=1998:2009:1/units=years/calendar=365_day/t0=01-JAN-0000 tyear
yes? let a=t[gt=tyear]
yes? say `a, return=tstart`
 !-> MESSAGE/CONTINUE 01-JAN-1998 00:00:00
01-JAN-1998 00:00:00

"Year" is not a well-defined length of time.  What "year" means depends on the calendar you use.

My guess is that with the standard calendar, "year" means the mean length of the years over 400 years or something like that.

Cheers,
Ryo

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

Privacy Policy | Disclaimer | Accessibility Statement