[Thread Prev][Thread Next][Index]

[ferret_users] Picking the time corresponding to maximum value of a variable from an nc file



Hi,

I have an nc file containing one variable, with a time axis running from 01-JAN-2009 to 31-DEC-2009. I would like to find the date and time corresponding to the maximum value of the variable. Result of some trials by me are given below. I want the time information for the maximum value of the variable like 21-mar-2009 03:00:00.

yes? sh d
     currently SET data sets:
    1> ./Hs_timeseries.nc  (default)
 name     title                             I         J         K         L
 HS       HS_CM/100                        ...       ...       ...       1:2919

yes? sh gr hs
    GRID GGE1
 name       axis              # pts   start                end
 normal    X
 normal    Y
 normal    Z
 TAXIS     TIME              2919 r   01-JAN-2009 02:57    31-DEC-2009 20:57

yes? list hs[l=@max]
             VARIABLE : HS_CM/100
             FILENAME : Hs_timeseries.nc
             TIME     : 01-JAN-2009 01:27 to 31-DEC-2009 22:27 (maximum)
          2.200

yes? list hs[l=1:2919@loc:2.2]                                                           
             VARIABLE : TIME of 2.2 in HS_CM/100 (HOURS)
             FILENAME : Hs_timeseries.nc
             TIME     : 01-JAN-2009 01:27 to 31-DEC-2009 22:27 (location of 2.2)
          954690.

yes? list t[gt=hs]
             VARIABLE : T
                        axis TAXIS
             FILENAME : Hs_timeseries.nc
             SUBSET   : 2919 points (TIME)
 01-JAN-2009 02:57 /    1:  946395.
 01-JAN-2009 05:57 /    2:  946398.
 01-JAN-2009 08:57 /    3:  946401.
 01-JAN-2009 11:57 /    4:  946404.
 01-JAN-2009 14:57 /    5:  946407.
 01-JAN-2009 17:57 /    6:  946410.
...................................................
...................................................

 12-DEC-2009 17:57 / 2766:  954690.
..........................................................


I want to pick 12-DEC-2009 17:57 instead of 954690. Is it possible?

Regards,
Sandhya.


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

Privacy Policy | Disclaimer | Accessibility Statement