[Thread Prev][Thread Next][Index]

Re: T axis defination of weekly data



Hi Gaorz,
Your define axis command is correct.   Perhaps the trouble is
elsewhere in your script?  For example, this works fine:
define axis/t="5-jan-1998":"27-dec-1999":7/unit=day tgrd
define grid/t=tgrd tgrid
let my_data = sin(l[gt=tgrid])
list/l=1:10 my_data
             SIN(L[GT=TGRID])
 05-JAN-1998 00 /  1:  0.8415
 12-JAN-1998 00 /  2:  0.9093
 19-JAN-1998 00 /  3:  0.1411
 26-JAN-1998 00 /  4: -0.7568
 02-FEB-1998 00 /  5: -0.9589
 09-FEB-1998 00 /  6: -0.2794
 16-FEB-1998 00 /  7:  0.6570
 23-FEB-1998 00 /  8:  0.9894
 02-MAR-1998 00 /  9:  0.4121
 09-MAR-1998 00 / 10: -0.5440


Ansley Manke
 
 

gaorz wrote:

Hi, all of you My data is weekly mean data and how should I define T axis? I wrote it as below, but it doesn't work.  The data is 104 weeks, start of 1st week is '5-jan-1998', and start of the last week is  '27-dec-1999'. (define axis/t="5-jan-1998":"27-dec-1999":7/unit=day tgrd) If I wrote it as (t="5-jan-1998":"27-dec-1999":6/unit=day ), It plot, but the date is totally wrong. Who can tell me where is wrong and how to settle it? Thanks. Gaorz

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement