[Thread Prev][Thread Next][Index]

[ferret_users] Missing value



HI,

I have some netcdf SST data files where some values are bad, so I have to set them as missing values:
I do:
------------------------------------------------------------
use coral198511.s04m3pfv50-sst-16b.nc.nc
use coral198512.s04m3pfv50-sst-16b.nc.nc

let sst1=IF SST[d=1] LT 21 THEN (-1E+34) ELSE SST[d=1]
let sst2=IF SST[d=2] LT 21 THEN (-1E+34) ELSE SST[d=2]

let tan=(sst1+sst2)/2
------------------------------------------------------------
The problem with this method is that if there is a missing value at a grid point for either sst1 or sst2 then there will be a missing value in tan also. Is there a method for the missing value not to add up?
 i.e. if at one grid point sst1=-1E+34 then tan=sst2 (having an addition of more than 2, it would be great if this was done automatically)
Thanks
laurie



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement