[Thread Prev][Thread Next][Index]

[ferret_users] Re: conditional missing_value filler



btw, i meant horizontal (the xy plane) neighboring grid points.   - dw

David Wang wrote:

hello ferreters,

i'm wondering if anyone has tricks on this:

i have a 3-dimensional temperature variable. i want to do the following manipulations:

if three or all of four neighbouring grid points of a nan (i.e., flagged as invalid) grid point are not nan, fill the grid point w/ the average value of its non-nan neighbouring grid points;

similarly, if three or all of four neighbouring grid points of a non-nan grid point are nan, substitute its value w/ nan.

thank you very much,

- d.







[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement