NCL Home > Documentation > Functions > Array manipulators

get1Dindex_Exclude

Returns a one dimensional array of subscript indices that DO NOT match the values contained in a user suppliedlist.

Available in version 4.2.0.a034 or later.

Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

	function get1Dindex_Exclude (
		x             [*] : numeric,  
		exclude_value [*] : numeric   
	)

	return_val  :  integer

Arguments

x

A one-dimensional array.

Return value

A one dimensional array containing integer subscripts excluding those specified by exclude_value.

Description

Finds the indices in a one-dimensional array which do not match a user specified list of values. The values must exist in the array to be checked.