NCL Home > Documentation > Functions > Metadata routines

assignFillValue

Transfers the _FillValue attribute from one variable to another.

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.

	procedure assignFillValue (
		var_from  : numeric,  
		var_to    : numeric   
	)

Arguments

var_from

A numeric array of any dimensionality. Should contain a _FillValue attribute, otherwise this procedure has no effect.

var_to

( category ="output")
A numeric array of any dimensionality.

Description

If var_from has a _FillValue attribute set, then this procedure sets both var_to@_FillValue and var_to@missing_value to this value.

See Also

There are many other metadata tools available for handling metadata.