NCL Home > Documentation > Functions > Regridding

rcm2points_Wrap

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

	return_val  :  numeric

Arguments

lat2d

A two-dimensional array that specifies the latitude locations of fi. The latitudes should proceed from south-to-north.

lon2d

A two-dimensional array that specifies the longitude locations of fi. The longitudes should be proceed left to right.

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 locations. Must be monotonically increasing.

lon

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

opt

opt=0 or 1 means use an inverse distance weight interpolation.
opt=2 means use a bilinear interpolation.

Description

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