[Thread Prev][Thread Next][Index]
Re: 30 day months in calendar
I am sure there is an "official" ferret way, however, my method has been to use
the /npoints axis definition, with reasonable beginning and end points. For
example, if a model data set is for 1980-1998 with monthly mean values I define
the time axis as:
yes? define axis/t="16-jan-1980:12":"16-dec-1998:12"/np=228 taxis
Where 228=19 years*12 months. For most purposes this works perfectly. The
ferret date is never more than about 1 day from the true center of the month
(less than 1 day except for February). The first year looks like:
1> 16-JAN-1980 12:00:00 730.467 692532
2> 15-FEB-1980 22:28:01 730.467 693262.4
3> 17-MAR-1980 08:56:02 730.467 693993
4> 16-APR-1980 19:24:03 730.467 694723.4
5> 17-MAY-1980 05:52:04 730.467 695453.9
6> 16-JUN-1980 16:20:05 730.467 696184.3
7> 17-JUL-1980 02:48:06 730.467 696914.8
8> 16-AUG-1980 13:16:07 730.467 697645.2
9> 15-SEP-1980 23:44:08 730.467 698375.8
10> 16-OCT-1980 10:12:09 730.467 699106.2
11> 15-NOV-1980 20:40:10 730.467 699836.7
12> 16-DEC-1980 07:08:11 730.467 700567.1
Hope this helps, Mark Verschell
On Jan 19, 4:56pm, a.larkin@ic.ac.uk wrote:
> Subject: 30 day months in calendar
> 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
>-- End of excerpt from a.larkin@ic.ac.uk
--
Mark Verschell NASA/Goddard Space Flight Center
verschell@neptune.gsfc.nasa.gov Code 970/Lab. for Hydrospheric Proc.
301-614-5669 Fax: 301-614-5666 Greenbelt, MD 20771
USQC Certified: 100% Microsoft Free
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement