GetFillColorIndex
Chooses from a list of color table indices based upon a secondary scalar field.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" function GetFillColorIndex ( cnlevels [*] : numeric, indices [*] : numeric, value [1] : numeric ) return_val : integer
Arguments
cnlevelsA one-dimensional array of any numeric type equal to the contour levels of the scalar field.
indicesA one-dimensional integer array of indices from a built-in color table
valueA scalar value equal to the single contour level for which a color is desired. Must be the same numeric type as cnlevels.
Return value
A scalar value equal to an index in the selected color table.
Description
Will choose from a list of color table indices based upon a secondary scalar field.