[Thread Prev][Thread Next][Index]

[ferret_users] time axis for seasonal average



Dear All,

I have a problem in defining a time axis for my seasonally averaged data. I have a time series for DJF, MAM, JJA and SON data from 15 October 2002 to 15 January 2014 in binary file. There are five time series in the data
I wrote a script as below:

----start here---

def axis/x=1:5:1 xax
def axis/t=1:46:1/units=month tax
def grid/x=xax/t=tax mygrid

file/format=stream/var=pc1/grid=mygrid pc_modif.dat
show data

def axis/edges/t=15-Oct-2002:15-Jan-2014:3/units=months tmon
let pc=pc1[gt=tmon@asn] 

---Then, when list the result, it look like this:

yes? list/i=1/l=1:10 pc
             VARIABLE : PC1[GT=TMON@ASN]
             FILENAME : pc_modif.dat
             SUBSET   : 10 points (TIME)
             X        : 1
                      1    
                      1
 29-NOV-2002 /  1: -1.015
 28-FEB-2003 /  2: -0.729
 31-MAY-2003 /  3: -0.857
 30-AUG-2003 /  4: -1.422
 29-NOV-2003 /  5: -0.980
 29-FEB-2004 /  6: -0.769
 30-MAY-2004 /  7: -0.790
 29-AUG-2004 /  8: -1.336
 29-NOV-2004 /  9: -0.965
 28-FEB-2005 / 10: -0.727

----------

The results are not started from 15 October 2002, then continue until 15 January 2014 with interval three months centered at January, April, July and October. 

Any body can help me figure out this problem please?
Thank you for your help.

Cheers,
Iskhaq

----------------------------------------------------------------
Dr. Iskhaq Iskandar
Jurusan Fisika, Fakultas MIPA
Universitas Sriwijaya
Kampus Inderalaya, Ogan Ilir (OI)
Sumatra Selatan, 30662 INDONESIA
Phone: +62 (711) 580743 Fax: +62 (711) 580268
E-mail: iskhaq.iskandar@xxxxxxxxx
http://iskhaq.wordpress.com/
----------------------------------------------------------------


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

Privacy Policy | Disclaimer | Accessibility Statement