NCL Home > Documentation > Functions > Spherical harmonic routines


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

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



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


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