NCL Website header
NCL Home > Documentation > Functions > General applied math

zonalAve

Computes a zonal average of the input array.

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 zonalAve (
		x  : numeric   
	)

	return_val  :  typeof(x)

Arguments

x

An array of any size and type.

Return value

The results are returned in an array of the same type and one dimension smaller than x. Metadata are preserved.

Description

This function computes a zonal average of the input array x. If the input array has a "long_name" or "short_name" attribute, it will be updated.

Examples

No examples are currently available for this function.