[Thread Prev][Thread Next][Index]

Re: [ferret_users] Position of a minimum value



Hello Jean,

the key is the @loc function.
First find the minimum value of your variable (thats what you have done already):
yes? let t2mmin=t2m[l=13,x=@min,y=@min]

Then it is better to define a dummy variable (if i skipped this step, the @loc would find two locations somehow):
yes? let xx=t2m[l=13]-t2mmin

Locate now the 0 difference (where the exact minimum is). you could do that with the "let minlat=xx[y=@loc:0]" as well:
yes? let minlon=xx[x=@loc:0]

List the minlon and you can see now where the minimum value is (the result would be the same with minlat). I guess there is a nicer solution :)

Have a nice day,
Peter


On Tue, Sep 8, 2009 at 1:18 AM, jean oliveira <jeanbrazil@xxxxxxxxxxx> wrote:
Hi all,
 
a easy question. I have a ssh data and when I type
 
yes? list ssh[l=13,x=-48:-42@min,y=-32:-29@min]
 
I have a result
 
 VARIABLE :  sea surf. height  [01.5H] (m)
             FILENAME : control.nc
             LONGITUDE: 48W(-48) to 42W(-42) (minimum)
             LATITUDE : 32S to 29S (minimum)
             TIME     : 21-JUL-0027 00:00 360_DAY
          0.09499

But, how can I get the exact position (lat lon) of this minimum?
 
Thanks
 
Jean
 
 


Você sabia que pode utilizar o Messenger de qualquer tipo de celular? Saiba mais.


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement