NCL Website header
NCL Home > Documentation > Functions > Regridding

g2gshv_Wrap

Interpolates a vector quantity from one Gaussian grid to another (optional truncation) (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.

	procedure g2gshv_Wrap (
		ua        : numeric,  
		va        : numeric,  
		ub        : float,    ; or double
		vb        : float,    ; or double
		twave [1] : integer   
	)

Arguments

ua
va

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

ub
vb

(output)
Vector arrays of 2 or more dimensions whose rightmost two dimensions must be latitude x longitude. Values will be in ascending latitude order. All but the two rightmost dimensions must be the same as all but the two rightmost dimensions of ua and va.

Since g2gshv_Wrap is a procedure, the user must explicitly preallocate memory for these return arrays.

twave

Scalar integer indicating the optional wave truncation:

    twave = 0 => exact interpolation
    twave > 0 => exact interpolation and triangular truncation at twave
    twave < 0 => exact interpolation, triangular truncation at twave and spectral coefficient tapering (the effect is to smooth the data)

Description

This procedure is identical to g2gshv, except ub and vb will have metadata added based on metadata attached to ua and va. See the g2gshv page for full documentation and examples.