[Thread Prev][Thread Next][Index]

Re: [ferret_users] spatial smoothing with unequal sized grid cells

Hi Paul,

Since you have a curvilinear grid you need the underlying area of the grid cells to do this properly. You then take the smoothed area weighted variable and divide it by the smoothed area.

let var_area=var*area
let var_smooth=var_area[i=@sbx:3,j=@sbx:3]/area[i=@sbx:3,j=@sbx:3]

The denominators of the transforms cancel and you are left with an area weighted smooth.
Other smoothing operators will work too (I think @SBN is probably better for this but it's up to you)..

The long way is to use the @SHF transform and appropriate weights but that's a pain.


On 17/01/15 03:55, Paul Goddard wrote:

I would like to smooth my results of an ocean variable spatially. The variable is on a high-resolution curvilinear grid and I would like the grid to remain the same; however, I would like a smoothing of the variable by looking at values in a (say 3x3) box around every point. The expressions @SBX, @SBN, etc., note that they are for equally spaced axes.

Can this be done?

Many thanks,


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