[Thread Prev][Thread Next][Index]

Re: [ferret_users] time series labels



I will just add that @ASN requires care and cross-checking, because you CAN produce an invisibly-erroneous plot this way. @ASN forces the new axis whether or not it is consistent with the actual data . One of Ferret's advantages is that by reading the axis information out of the netcdf file, it is hard to make such a mistake. @ASN turns that information into a simple index list, and the wrong choice will give an unseen error. Just like sudo, you can do a lot of damage if you're not careful!

Billy K

On 14Aug 2007, at 2:31 PM, Steve Guimond wrote:

Hi,
  Just have to define a time axis, put it on a grid and regrid your
variable from the netcdf file.

def axis/t=start:end:delta/units=years tax
def grid/t=tax tgrid
let new_var = old_var[g=tgrid@ASN]

Make sure your new time axis has the same number of points as the old
variable's time index axis to use @ASN.


Steve

=======================================================
Stephen R. Guimond
Graduate Research Assistant
Center for Ocean-Atmospheric Prediction Studies (COAPS)
=======================================================

On Tue, 14 Aug 2007, Manfredi Manizza wrote:


Dear Ferreters,

I would like to plot a time series of difference in model diagnostics
coming from a future climate change simulation from 2005 to 2061.

The way Ferret plots tehm, it shows time-steps from 1 to on the X
axis and not year. I would like to have labels that correspond
to simulated years from 2005 to 2061.

Model output are in netcdf format.

Thanks in advance
Manfredi

--










[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement