[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ferret list command help

Karl's suggestion of the TAX* functions is what you need.  Define a variable with the precision you want, and write that out.

yes? show function tax_datestring
    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 date_strings = tax_datestring(t[gt=variable], ...

On Thu, Jan 9, 2014 at 5:20 AM, 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

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