[Thread Prev][Thread Next][Index]

Re: [ferret_users] average the positive and negative value seperately

Hi Changshui and Tony,

| A simple way is to set them to two variables, i.e.,
| let aa_pos = if aa ge 0 then aa else (-1e34)!or your missing value
| let aa_neg = if aa lt 0 then aa else (-1e34)

Leave out the ELSE clause:

  let aa_pos = if aa ge 0 then aa

and then, Ferret will always treat the "else" part of the variable
as missing.  You don't need to know what the correct missing value is.


[Thread Prev][Thread Next][Index]

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

Privacy Policy | Disclaimer | Accessibility Statement