
NCL Home >
Documentation >
Functions >
Regridding
g2fsh_Wrap
Interpolates a scalar quantity from a Gaussian grid to a fixed grid (retains metadata).
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. function g2fsh_Wrap ( grid : numeric, outdims [2] : integer ) return_val : float or double
Arguments
gridAn array of 2 or more dimensions whose rightmost two dimensions must be latitude x longitude. The values must be in ascending latitude order.
outdimsAn array indicating the dimensions of the rightmost two dimensions of the output grid (outdims[0] = nlatb, outdims[1] = nlonb).
Description
This function is identical to g2fsh, except the return value will have metadata added based on metadata attached to grid. See the g2fsh page for full documentation and examples.