NCL Website header
NCL Home > Documentation > Functions > Regridding

f2fsh_Wrap

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

	return_val  :  float or double

Arguments

grid

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

outdims

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

Description

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