[Thread Prev][Thread Next][Index]

Re: [ferret_users] grid interpolation



Hi Estanislao,

There are several regridding transformations available.  By default a regridding operation uses linear interpolation, or you can specify @LIN explicitly, or @AVE for regridding using weighted averaging, or @ASN to do the regridding by assignment.  "yes? show transforms" will give you the complete list.  @ASN asks Ferret to simply map the data values onto the requested axis without any interpolation.

Here is the documentation about regridding: 

https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/Grids-Regions/GRIDS#Chapter4-Regridding

cheers, Ansley

On 1/12/2020 10:53 PM, ESTANISLAO GAVILAN PASCUAL-AHU wrote:
Hi community,
I would like to interpolate this data. The sea surface elevation is inside a grid where the points are in the center of the cell. I am trying to get the interpolation to the u and v points which are on the walls of the cell. I used this code but I obtain the same values for the u a v points. Thank in advance for your help

define grid/x=lon/y=lat grid_t
define grid/x=lonu/y=latu/like=velu grid_u
define grid/x=lonv/y=latv/like=velv grid_v

let t_com=etan[g=grid_t@asn]
let u_com=velu[g=grid_u@asn]
let v_com=velv[g=grid_v@asn]

let tcomu=t_com[gx=u_com,gy=u_com]
let tcomv=t_com[gx=v_com,gy=v_com]


Kind regards,

Estanislao

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

Privacy Policy | Disclaimer | Accessibility Statement