NCL Home > Documentation > Functions > Spherical harmonic routines

uv2vrG_Wrap

Computes the vorticity via 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 uv2vrG_Wrap (
		u  : numeric,  
		v  : numeric   
	)

	return_val [dimsizes(u)] :  float or double

Arguments

u
v

wind components (input, arrays with two or more dimensions, last 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 uv2vrG, except the return value will have metadata added based on metadata attached to u and v. See the uv2vrG page for full documentation and examples.