[Thread Prev][Thread Next][Index]
Re: Changing order of months in time axis
On 9 Mar 2005, Paul Young wrote:
> Does anyone know how I can customise my time axis please? I have netCDF
> files where the data runs from April 1992 to March 1993, but I'd like to
> be able to plot it as Jan - March (1993) then April - Dec (1992). The
> year is of no consequence to me, but having it running from Jan-Dec
> would make it easier/prettier when comparing to other data.
Hi Paul,
Among several ways to do this is to convert the original data
to a modulo time axis so that it can be treated like a climatology.
Here is a demo,
Mick
!---------- step 1 - make a April 1992 to March 1993 datafile -------
def axis/t=1-apr-1992:31-mar-1993:1/units=days tax
let/title="v92-93" v=l[gt=tax]
set view upper
plot v
save/file=v92-93.nc v ! write the demo file
!---------- step 2 - cancel variable so it can be read from file ------
! (or start a new ferret session)
can var/all
use v92-93.nc ! read the demo file
plot/o v
!---------- step 3 - convert to a modulo axis & pllot for any year ----
def axis/t=01-APR-1992:31-MAR-1993:1/units=days/modulo tmod
let/title="modulo version" vmod=v[gt=tmod]
set view lower
plot/t=1-jan-1993:31-dec-1993 vmod
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement