[Thread Prev][Thread Next][Index]
Defining T axis from data
Hi all,
I'm trying to import a time series from an ASCII file
and would like to understand what ferret is doing when
I define the T axis from data in the file.
----------------------------
The data:
test.dat
2002 6 1 0 0 3.09
2002 6 1 0 10 3.23
2002 6 1 0 20 3.83
2002 6 1 0 30 3.91
2002 6 1 0 40 3.46
2002 6 1 0 50 3.31
2002 6 1 1 0 3.46
2002 6 1 1 10 3.38
--------------------------------
The script:
! Version 5.22 - 07/27/00
! test.jnl
file/var=yy,mm,dd,hh,mi,-/skip=1 test.dat
let tref = days1900(yy,mm,dd)*24*60 + hh*60 + mi
def ax/t/from_data/name=tr/units=min/t0="1-jan-1900 00:00" tref
def gr/t=tr gt
file/var=yy,mm,dd,hh,mi,val/grid=gt/skip=1 test.dat
list/l=1:5/noh mm,dd,hh,mi,val
---------------------------------
Output:
yes? go test
01-JUN-2002 00:00:00 / 1: 6.000 1.000 0.0000 0.00 3.090
01-JUN-2002 00:08:00 / 2: 6.000 1.000 0.0000 10.00 3.230
01-JUN-2002 00:20:00 / 3: 6.000 1.000 0.0000 20.00 3.830
01-JUN-2002 00:32:00 / 4: 6.000 1.000 0.0000 30.00 3.910
01-JUN-2002 00:40:00 / 5: 6.000 1.000 0.0000 40.00 3.460
What's the reason for the 2 min offset at 00:08:00 and 00:32:00 ?
Regards,
Paulo
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement