NCL Home > Documentation > Functions > Spherical harmonic routines


Computes the rotational wind components via spherical harmonics, given an array containing relative vorticity on a fixed grid (retains metadata).


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 vr2uvF_Wrap (
		vr  : numeric   

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



vorticity array (input, array with two or more dimensions, last two dimensions must be nlat x nlon)

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


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