# coyote: MAXMIN

- coyote/Utilities
- [Source code]

Description

      Prints the maximum and minimum of an IDL variable.

Categories

      Utility

Params

      variable: in, required, type=any
         The variable whose minimum and maximum you wish to know.

Keywords

      NAN: in, optional, type=boolean
        Set this keyword to ignore NANs in the variable. Default: 0.
      TEXT: in, optional, type=string
        Prepend this string to the output of MinMax. Default: "MinMax: ".

Examples

      The MaxMin routine gives the range of the variable::
        IDL> a = Findgen(11)
        IDL> MaxMin, a, TEXT='Variable A:'
        Variable A:   11    0

Author

      FANNING SOFTWARE CONSULTING::
          David W. Fanning
          1645 Sheely Drive
          Fort Collins, CO 80526 USA
          Phone: 970-221-0438
          E-mail: david@idlcoyote.com
          Coyote's Guide to IDL Programming: http://www.idlcoyote.com

History

      Change History::
         Written, 20 Sept 2010.
         Changed name of program from MinMax to MaxMin to avoid conflict with
         MinMax program in NASA Astronomy Library. 1 Nov 2010. DWF.

Copyright

      Copyright (c) 2010, Fanning Software Consulting, Inc.