NCL Home > Documentation > Functions > Regridding

rcm2rgrid_Wrap

Interpolates data on a curvilinear grid (i.e. RCM, WRF, NARR) to a rectilinear grid 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 rcm2rgrid_Wrap (
		lat2d [*][*] : numeric,  
		lon2d [*][*] : numeric,  
		fi           : numeric,  
		lat      [*] : numeric,  
		lon      [*] : numeric,  
		Option       : numeric   
	)

	return_val  :  numeric

Arguments

lat2d

A two-dimensional array that specifies the latitude locations of fi. Because this array is two-dimensional it is not an associated coordinate variable of fi. The latitude order must be south-to-north.

lon2d

A two-dimensional array that specifies the longitude locations of fi. Because this array is two-dimensional it is not an associated coordinate variable of fi. The longitude order must be west to east.

fi

A multi-dimensional array to be interpolated. The rightmost two dimensions (latitude, longitude) are the dimensions to be interpolated.

lat

A one-dimensional array that specifies the latitude coordinates of the regular grid. Must be monotonically increasing.

lon

A one-dimensional array that specifies the longitude coordinates of the regular grid. Must be monotonically increasing.

Option

Reserved for future use. Currently not used. Set to 1.

Description

This function is identical to rcm2rgrid, except the return value will have metadata added based on metadata attached to fi. See the rcm2rgrid page for full documentation and examples.