[Thread Prev][Thread Next][Index]

Re: [ferret_users] count number of values



or (depending on the grid)

let ngood = aa[i=@ngd,j=@ngd]

On 3/5/2014 9:00 AM, Fisseha Berhane wrote:
you can use something like:

let bb = if TEMP LE THRESHOLD then 1

let cc = bb[l=@sum]


On Wed, Mar 5, 2014 at 11:25 AM, Paul Goddard <goddarpb@xxxxxxxxx> wrote:
Hello,

I am working on finding the amount of values that fall below a certain threshold. By using let aa = if TEMP LE THRESHOLD then TEMP, I can get aa to be a list of values where TEMP is less than or equal to THRESHOLD. What I would also like to do is define a new variable that is equal to the amount of values that are in aa  (ie, the non .... values).  Is there any command for this? I know in Excel the function COUNT will retrieve the number of values in a column/array etc. Is there command in Ferret that does a similar act?  Thank you very much for your help


Paul Goddard
University of Arizona



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

Privacy Policy | Disclaimer | Accessibility Statement