Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Motley  >  MGH_MAXLOC

MGH_MAXLOC

MGH_MAXLOC

Name


  MGH_MAXLOC

Purpose


  This function returns the location of the maximum of an array, as a multi-dimensional subscript.

Calling Sequence


  Result = mgh_maxloc(array)

Positional Parameters


  array (input, numeric, scalar or array)
    Array for which we want the location of the maximum

Return Value


  The function returns an integer vector with the number of elements
  equal to the number of dimensions in the array.

Keyword Parameters


  ABSOLUTE (input, switch)
    Set this keyword to cause the routine to use the absolute value
    of each element in determining the maximum value.This keyword has
    no effect for arrays of type byte or
    unsigned integer.
  NAN (input, switch)
    Set this keyword to cause the routine to check for occurrences
    of the IEEE floating-point value NaN in the input data.
    Elements with the value NaN are treated as missing data.

Procedure


  Locate the maximum with the MAX function and convert to
  multi-dimensional indices with ARRAY_INDICES.

Explanation


  The function is defined for convenience.
###########################################################################
  This software is provided subject to the following conditions:
  1. NIWA makes no representations or warranties regarding the
    accuracy of the software, the use to which the software may
    be put or the results to be obtained from the use of the
    software. Accordingly NIWA accepts no liability for any loss
    or damage (whether direct of indirect) incurred by any person
    through the use of or reliance on the software.
  2. NIWA is to be acknowledged as the original author of the
    software where the software is used or presented in any form.
###########################################################################

Modification History


  Mark Hadfield, 2007-02:
    Written.



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us