[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ferret list command help



Here's a complete example:


yes? use monthly_navy_winds
yes? show func tax_datestring
TAX_DATESTRING(A,B,C)
    Returns date string for time axis coordinate values
    A: time steps to convert
    B: variable with reference time axis
    C: output precision (STRING)

yes? let tt = t[gt=uwnd]
yes? let date_strings = tax_datestring(tt, tt, "hour")

yes? list/norowheader date_strings
             VARIABLE : TAX_DATESTRING(TT, TT, "hour")
             FILENAME : monthly_navy_winds.cdf
             FILEPATH : /home/users/tmap/ferret/linux/fer_dsets/data/
             SUBSET   : 132 points (TIME)
 "16-JAN-1982 20"
 "16-FEB-1982 06"
 "18-MAR-1982 17"
 "18-APR-1982 03"
 "18-MAY-1982 14"
 "18-JUN-1982 00"
 "18-JUL-1982 11"
 "17-AUG-1982 21"
 "17-SEP-1982 08"
 "17-OCT-1982 18"
 "17-NOV-1982 05"
 "17-DEC-1982 15"
 "17-JAN-1983 02"
 "16-FEB-1983 12"
 "18-MAR-1983 23"
...



On Thu, Jan 9, 2014 at 9:46 AM, Don DNA <don_vbe@xxxxxxxxx> wrote:
Thank you

will tell me how can I extract only date string , I am getting o/p like this

yes? use Ascat_Wind_2007_13_1_regridded.nc
yes? list/l=1:10 t[g=u]
             VARIABLE : T
                        axis TIME
             FILENAME : Ascat_Wind_2007_13_1_regridded.nc
             SUBSET   : 10 points (TIME)
 05-JAN-2006 00 /  1:  75244.
 12-JAN-2006 00 /  2:  75251.
 19-JAN-2006 00 /  3:  75258.
 26-JAN-2006 00 /  4:  75265.
 02-FEB-2006 00 /  5:  75272.
 09-FEB-2006 00 /  6:  75279.
 16-FEB-2006 00 /  7:  75286.
 23-FEB-2006 00 /  8:  75293.
 02-MAR-2006 00 /  9:  75300.
 09-MAR-2006 00 / 10:  75307.

I want only
 05-JAN-2006 00
12-JAN-2006 00
19-JAN-2006 00
.......
.......
09-MAR-2006 00

Please Ansley help me, I am newbie

Dona


On Thursday, January 9, 2014 6:50 PM, Don DNA <don_vbe@xxxxxxxxx> wrote:
Sorry for late reply, I want to save datestring in array say

let dates = t[g=variable] something like this, but it stores numeric values, my final aim is to list like this

list/noheader/norow date_string_only,latitude,longitude,some_variable

whether this will be possible ? I searched  in userlist I could not find it.

Dona Clara



On Monday, January 6, 2014 10:41 PM, Steve Hankin <steven.c.hankin@xxxxxxxx> wrote:
Assuming I am understanding your question ....
Use SHOW AXIS or SHOW GRID to most simply look just at axis values.  Use a grave accent _expression_ with RETURN= to captuare a particular string, like the date.  The LIST command is intended to show data values.  It lists the "23375" because it is the numerical value that underlies your "T" pseudo-variable (the way in which time is encoded in this axis).
    - Steve

On 1/5/2014 4:13 AM, Don DNA wrote:

Hi All I am working with some data

I defined time axis like this

DEFINE AXIS/T/T0="1-JAN-1950:12:00"/UNITS=days myday=juld

yes? list t[gt=myday]
             VARIABLE : T
                        axis TDAY
             TIME     : 31-DEC-2013 06:06
          23375.

Here I want to list only TIME that is 31-DEC-2013 06:06 not 23375
and I am wondering how 23375 is listed with time 06:06 ???


Please someone help me









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

Privacy Policy | Disclaimer | Accessibility Statement