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

uv2dvG_Wrap

Computes the divergence using spherical harmonics given the u and v wind components on a gaussian grid (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 uv2dvG_Wrap (
		u  : numeric,  
		v  : numeric   
	)

	return_val [dimsizes(u)] :  float or double

Arguments

u
v

wind components (input, arrays with two or more dimensions, rightmost two dimensions must be nlat x nlon)

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

Description

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