
rgrid2rcm_Wrap
Interpolates data on a rectilinear lat/lon grid to a curvilinear grid like those used by the RCM, WRF and NARR models/datasets and 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 rgrid2rcm_Wrap ( lat [*] : numeric, lon [*] : numeric, fi : numeric, lat2d [*][*] : numeric, lon2d [*][*] : numeric, Option : numeric ) return_val : numeric
Arguments
latA one-dimensional array that specifies the latitude coordinates of the regular grid. Must be monotonically increasing. Of course, these must be consistent with the latitude ordering of fi.
lonA one-dimensional array that specifies the longitude coordinates of the regular grid. Must be monotonically increasing.
fiA multi-dimensional array to be interpolated. The rightmost two dimensions (latitude, longitude) are the dimensions to be interpolated. The data must be ordered South-to-North.
lat2dA two-dimensional array that specifies the latitude locations of the output grid. Because this array is two-dimensional, it is not an associated coordinate variable of fi.
lon2dA two-dimensional array that specifies the longitude locations of the output grid. Because this array is two-dimensional, it is not an associated coordinate variable of fi.
OptionReserved for future use. Currently not used. Set to 1.
Description
This function is identical to rgrid2rcm, except the return value will have metadata added based on metadata attached to fi. See the rgrid2rcm page for full documentation and examples.