NCL Website header
NCL Home > Documentation > Functions > Regridding


Interpolates a scalar quantity from a Gaussian grid to a fixed grid (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 g2fsh_Wrap (
		grid        : numeric,  
		outdims [2] : integer   

	return_val  :  float or double



An array of 2 or more dimensions whose rightmost two dimensions must be latitude x longitude. The values must be in ascending latitude order.


An array indicating the dimensions of the rightmost two dimensions of the output grid (outdims[0] = nlatb, outdims[1] = nlonb).


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.