[Thread Prev][Thread Next][Index]

Re: [ferret_users] data from netcdf file automatically reversed



Yue Chao wrote:

> Thank you Ansley. I do think it's the problem of time coordinate. Actually
> when I show data:
> 
> using ncdump -c data.nc
> ....
>  time_counter = 15768000, -78926400, 15768000, 15768000, -78926400,
>     -15854400, -47390400, -15854400, -110462400, -78926400, -78926400,

That's a problem indeed: ferret is counting seconds since 2005-01-01,
and you're feeding it alternating positive and negative values.  A
time axis should typically be (preferably continuously) increasing.  

If you want to show real time values, you have to assign a time axis
yourself.  See the "define axis" command in the manual for examples on
how to do that.  If you just want to show the index along the time
axis, try this:

use data.nc

! replace broken time_counter axis
define axis /t=1:389:1 time_counter

it will probably issue a warning that your data may now appear
different, but that's what you want in this case.  You'll now simply
get time values ranging from 1 to 389, with no proper date/time or
unit assigned.

Kind regards,

     Hein Zelle



-- 

Dr. Hein Zelle
Advisor Meteorology & Oceanography

Tel:    +31 (0)527-242299
Fax:    +31 (0)527-242016
Email:  hein.zelle@xxxxxxxxxxxxx
Web:    www.bmtargoss.com

BMT ARGOSS
P.O. Box 61, 8325 ZH Vollenhove
Voorsterweg 28, 8316 PT Marknesse
The Netherlands

----Confidentiality Notice & 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