[Thread Prev][Thread Next][Index]

Re: 30 day months in calendar



On Tue, 19 Jan 1999 a.larkin@ic.ac.uk wrote:

> Hello, I hope this isn't a stupid question...
> 
> I plot data from the UK met offices Unified Model (UM) using Ferret, 
> and the data from the UM has 360 days in a year, with each month having
> 30 days. My problem is that Ferret has the correct number of days, hence
> my calendar gets out of sink. I know I can do 'cancel mode calendar' to
> see my data in days, but I really need to plot time series that have the
> time axis in months. How can I make Ferret do this?
> Alice Larkin

Hi, Alice,

I met with the same problem. Here was Steve's suggestion (notice I had
a 408-month data set, and the generic time axis of these data are defined
in days instead of month): 

These solutions are based on the use of the "GT=new_axis@ASN" syntax
(regridding by "ASsociatioN").

Here is an example for your 408 point time axis:

        yes? define axis/t=1:408:1/units=months tax   ! no. of pts = 408
        yes? LET newvar = MONTHLY[GT=tax@asn]
        yes? SET VARIABLE/TITLE="my new variable"/UNITS="whatever" newvar

Now you simply plot the variable NEWVAR instead of the variable MONTHLY.

You can define any time axis you like by this means -- the @ASN syntax
simply associates the L=1 time coordinate from the original axis with
the L=1 time coordinate of the specified axis ... the data values are
uneffected. 


Wei Cheng



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement