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

dim_sum_Wrap

Computes the arithmetic sum of a variable's rightmost dimension at all other dimensions and 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 dim_sum_Wrap (
		x  : numeric   
	)

	return_val  :  float or double

Arguments

x

A variable of numeric type and any dimensionality.

Description

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