[Thread Prev][Thread Next][Index]

Re: [ferret_users] difficulty comparing variables because of time axis mismatches



Hi Keith,

> I am sometimes unable to get ferret to compute TEMP[d=2]-TEMP[d=1]
> where the datasets have different time axes.

ferret can be sensitive here depending on your input files.  I usually
do one of three things, depending on the problem:

1) take out the time dimension by specifying the time step exactly
(can be different for each file),  e.g.

     let tdiff = temp[d=2,l=1] - temp[d=1,l=12]

   This is what you need in your case to compare 2 different times.

2) if your time axes are properly defined (i.e. ferret prints the
   correct date and time) you can put one variable onto the grid of the other:

     let tdiff = temp[d=2] - temp[d=1, gt=temp[d=2]]

   ferret may interpolate in time to achieve this, but it should
   properly match the dates of both files before subtracting.

3) if the time axes are really identical but ferret somehow doesn't
   recognize this, assign them forcibly, index-by-index:

     let tdiff = temp[d=2] - temp[d=1, gt=temp[d=2]@asn]

   No interpolation is done, index N is subtracted from index N.


In your case the variable MOC is messing things up because of the axis
order. if I only take out the temp variable with

ncks -v TEMP A.nc At.nc

I can read the resulting file with ferret 6.8.4 without errors.  Does
your model data really begin on january 1 of the years 52 AC and 102
AC?  If not, you may have a mistake in your time axis definition in
your model.


Kind regards,
      Hein Zelle

-- 

Dr. Hein Zelle
Senior consultant meteorology & oceanography
BMT ARGOSS

Tel:        +31 (0)527-242299
Fax:        +31 (0)527-242016
E-mail:     hein.zelle@xxxxxxxxxxxxx
Website:    www.bmtargoss.com
	    
BMT ARGOSS b.v.
Voorsterweg 28, 8316 PT Marknesse, the Netherlands
Postal address: P.O. Box 61, 8325 ZH Vollenhove, the Netherlands

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all work,
services, goods or products supplied by BMT ARGOSS shall be subject
to and governed by BMT ARGOSS' own terms and conditions which are
available for inspection from BMT ARGOSS on request.

E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.


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

Privacy Policy | Disclaimer | Accessibility Statement