[Thread Prev][Thread Next][Index]

Re: [ferret_users] finding a L value according to a given T value



let PLJ0 = l[g=PLJ,T="09-JAN-2011"]


Try this sample example


[akshay@localhost tmp]$ cat sample.jnl
 ! NOAA/PMEL TMAP
 ! FERRET v6.93 
 ! Linux 2.6.32-504.el6.x86_64 64-bit - 11/13/14
 ! 23-Apr-15 15:13    

set data "http://oceanwatch.pifsc.noaa.gov/thredds/dodsC/aqua/monthly"
let points = t[g=chla]
list points
list l[g=points,t="01-FEB-2015"]
let xxx = l[g=points,t="01-FEB-2015"]
list xxx
q


--
Akshay Hegde,                                   
Forum Advisor                                      
The Unix and Linux Forums                   
http://www.unix.com                             
http://in.linkedin.com/pub/akshay-hegde/59/b3/b1b


On Thu, Apr 23, 2015 at 9:20 AM, Delclaux Francois <francois.delclaux@xxxxxxxxxxxxxxxxxxx> wrote:
Hi Ferret users,

I have a PLJ variable:

yes? list PLJ
 01-JAN-2011 21 /    3:   0.00
 02-JAN-2011 21 /    4:   0.00
 03-JAN-2011 21 /    5:   0.00
 04-JAN-2011 21 /    6:   0.00
 05-JAN-2011 21 /    7:   0.00
 06-JAN-2011 21 /    8:   0.00
 07-JAN-2011 21 /    9:   0.00
 08-JAN-2011 21 /   10:   0.00
 09-JAN-2011 21 /   11:   0.00
 10-JAN-2011 21 /   12:   0.00
 11-JAN-2011 21 /   13:   0.00
 12-JAN-2011 21 /   14:   0.00
............................................

Now, I would like to get the  L value corresponding  to  T = 09-JAN-2011 21, ie L=11

I tried tu use @LOC on PLJ variable:

1) I defined PLJ0 at the given T value:
yes? let PLJ0 = PLJ[T="09-JAN-2011:21:00"]
yes? list PLJ0
             VARIABLE : PLJ[T="09-JAN-2011:12:00"]
             X        : 1
             TIME     : 09-JAN-2011 21:00
          0.0000

2) I got LL0 value from PLJ0 variable
yes? let LL0 =  PLJ0[t=@loc]
yes? list LL0
             VARIABLE : TIME of 0 in PLJ[T="09-JAN-2011:12:00"] (hours)
             X        : 1
             TIME     : 09-JAN-2011 09:00 to 10-JAN-2011 09:00 (location of 0)
          973221.

It's not exactly the result I would like to have !
So, what's the best way to do that ?

Thanks in advance

--
Francois DELCLAUX
------------------------------------------------------------
UMR HydroSciences Montpellier
Universite Montpellier II - Place Eugene Bataillon
Case courrier MSE
34095  Montpellier Cedex 5      FRANCE
http://www.hydrosciences.org/
mailto: delclaux@xxxxxxxxxxxxxxxxxxx
Tel : (33) (0)4 67 14 90 11      Fax : (33) (0)4 67 14 47 74
------------------------------------------------------------



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

Privacy Policy | Disclaimer | Accessibility Statement