NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

Functions to regrid to and from curvilinear grids #481

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 2 Nov 2004 22:09 UTC For comparing models run on curvilinear grids with other models and with data, functions are needed to regrid data on a curvilinear grid to a rectilinear grid. The reverse regridding is easy and may also be useful in some cases. Use the GFDL code hinterp to carry out the regridding.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1059

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 2 Nov 2004 22:12 UTC functions are CURV_TO_RECT_MAP, CURV_TO_RECT, and RECT_TO_CURV

CURV_TO_RECT_MAP(lon_in,lat_in,grid_out,radius) Compute mapping for spherical interpolation: curvilinear to rectangular grid. lon_in: Source grid longitudes (2-D), in Degrees lat_in: Source grid latitudes (2-D), in Degrees grid_out: Any variable on output Longitude-Latitude grid, Lon and Lat in Degrees radius: Source points falling within radius are included in mapping to destination point

CURV_TO_RECT(V,mapping) Spherical interpolation: curvilinear to rectangular grid V: values on curvilinear grid V(x,y,z,t) mapping: mapping computed by CURV_TO_RECT_MAP

RECT_TO_CURV(V,lon_bounds_out,lat_bounds_out,missing values allowed) bilinear interpolation from rectangular grid to curvilinear grid V: values F(x,y,z,t) lon_bounds_out: Dest grid longitude bounds(2-D) lat_bounds_out: Dest grid latitude bounds(2-D) missing values allowed: number of missing values allowed in four surrounding source cells: 0 to 3

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 2 Nov 2004 22:14 UTC See also bug 751 for more on full implementation of CF specification for curvilinear grids