NCL Website header
NCL Home > Documentation > Functions > Metadata routines

default_fillvalue

Returns the default missing value for the given variable type.

Available in version 6.0.0 and later.

Prototype

	function default_fillvalue (
		var_type [1] : string   
	)

	return_val [1] :  var_type

Arguments

var_type

The variable type (as a string) whose default missing value you want to return.

Description

The default_fillvalue function returns the default missing value associated with the given variable type. The type of the return value will be the same type of the variable requested.

See Also

set_default_fillvalue, ismissing, typeof

Examples

Returns the default missing values for diferent variable types: and string:

  smsg = default_fillvalue("short")
  imsg = default_fillvalue("integer")
  fmsg = default_fillvalue("float")
  dmsg = default_fillvalue("double")
  strmsg = default_fillvalue("string")

  xmsg = default_fillvalue(typeof(x))