NCL Home > Documentation > Functions > Regridding


Places unstructured (randomly-spaced) data onto the nearest locations of a rectilinear grid and retains metadata.


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 triple2grid_Wrap (
		x      [*] : numeric,  
		y      [*] : numeric,  
		data       : numeric,  
		xgrid  [*] : numeric,  
		ygrid  [*] : numeric,  
		option [1] : logical   

	return_val [dimsizes(ygrid)][dimsizes(xgrid)] :  float or double


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