[Thread Prev][Thread Next][Index]

Re: [ferret_users] samplet_date



Maybe you should specify values as single-item lists.
 
By the website's sample:
yes? use monthly_navy_winds

yes? set reg/x=131:139/y=29
yes? let month = {1,5,11}
yes? let day = {20,20,20}
yes? let year = 1985 + 0*month
yes? let zero = 0*month
yes? list samplet_date (uwnd, year, month, day, zero, zero, zero)
VARIABLE : SAMPLET_DATE (UWND, YEAR, MONTH, DAY, ZERO, ZERO, ZERO)
FILENAME : monthly_navy_winds.cdf
FILEPATH : /home/porter/tmap/ferret/linux/fer_dsets/data/
SUBSET : 5 by 3 points (LONGITUDE-T)
LATITUDE : 20N
130E 132.5E 135E 137.5E 140E
45 46 47 48 49
1 / 1: -7.563 -7.546 -7.572 -7.354 -6.743
2 / 2: -3.099 -3.256 -3.331 -3.577 -4.127
3 / 3: -7.717 -7.244 -6.644 -6.255 -6.099
Try then with let's (month = {9} and so on) like the  sample abova, and see if it works. Then maybe you specify samplet_date(UROT2,{1999},{9},{9},{0},{0},{0}) and try alternatives until you feel the code is readable enough (should it work, of course).
 
have best luck,
- fabricio

From: Carol Ladd
Sent: Thursday, March 29, 2012 8:26 PM
Subject: [ferret_users] samplet_date

I am trying to extract certain dates from a time series using the samplet_date function but it is not returning what I would expect.  It looks like the function is interpolating between the dates and I don’t know if it is a problem with the samplet_date function or a problem with how I have my time axis defined.  I have attached my time series to use as an example:

 

yes? use urot2.nc

yes? sh d

yes? list/t=9-sep-1999 urot2

             VARIABLE : U_ROT[GT=TQSCT@ASN]

             FILENAME : urot2.nc

             Z (m)    : 0

             TIME     : 09-SEP-1999 00:00

         -13.24

 

yes? list SAMPLET_DATE(UROT2,1999,9,9,0,0,0)

             VARIABLE : SAMPLET_DATE(UROT2[D=urot2],1999,9,9,0,0,0)

             Z (m)    : 0

             T        : 1

         -12.92

 

Why are they not the same?

 

Thanks.

Carol

 

********************************************************

Carol Ladd

Oceanographer

 

NOAA/PMEL

7600 Sand Point Way

Building 3     

Seattle, WA                   

98115-6349                  

 

Phone: (206) 526-6024

Fax: (206) 526-6485

 

Email: carol.ladd@xxxxxxxx

 

********************************************************

 


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

Privacy Policy | Disclaimer | Accessibility Statement