NAME
     MINLOC

SYNOPSIS
     USE HPF_LIBRARY

     MINLOC(ARRAY, DIM, MASK)

DESCRIPTION
     MINLOC Determine the locations  of  the  first  elements  of
     ARRAY  along  dimension  DIM having the minimum value of the
     elements identified by MASK.

ARGUMENTS
     ARRAY
          must be of type integer or real. It must not be scalar.

     DIM  this is an optional argument.  If present, it  must  be
          scalar  and of type integer with a value in the range 1
          <= DIM <= n, where n is the rank of ARRAY.

     MASK is an optional argument. Must be of  type  logical  and
          must be conformable with ARRAY.

RESULT TYPE
     Same type and shape as ARRAY.

SEE ALSO
     MAXLOC.