[Thread Prev][Thread Next][Index]

Re: [ferret_users] List coordinate where a minimum value is found

Hi Paul,

The usual way to do this sort of thing is to use the @LOC transformation. You subtract the minimum of the variable that you are interested in and then find the zero

let min_ssh =ssh[y=@min]
let zero_at_min = ssh -ssh_min
let lat_at_min = zero_at_min[y=@loc:0]




On 14/10/15 11:00, Paul Goddard wrote:

I have a 1D dataset of values of sea surface height at 10E and from 60S to 68S (details are just for example). I can plot a line graph showing the meridional variability and find the minimal value with yes? list ssh[y=@MIN].  The output includes the ssh number, but does not explicitly state the latitude at which this is found. I could find the minimum value by listing all the values of my SSH variable and searching for the minimum value and the coordinate listed beside it, but this does not seem like the most efficient way. Is there a command I can insert into my scripts to find the coordinate of the minimum value?

Thanks in advance,


Paul Goddard
PhD Candidate
Department of Geosciences
University of Arizona

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

Privacy Policy | Disclaimer | Accessibility Statement