NCL Website header
NCL Home > Documentation > Functions > Spherical harmonic routines

dv2uvG_Wrap

Computes the divergent (irrotational) wind components for a gaussian grid via spherical harmonics 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 dv2uvG_Wrap (
		dv  : float or double   
	)

	return_val [2, dimsizes(dv)] :  float or double

Arguments

dv

Divergence array (input, two or more dimensions, where the rightmost two dimensions must be lat x lon)

  • input values must be in ascending latitude order
  • input array must be on a global grid

Description

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