>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  NEW_RANGE
Libraries

NEW_RANGE

NEW_RANGE

Name


      NEW_RANGE

Purpose


      Compute a new range array from old.

Category


Calling Sequence


      r2 = new_range(r,mag,[center])

Inputs


      r = current range: [lo,hi]. in
      mag = magnification factor. in
      center = optional new center. in
        Default = (lo+hi)/2.

Keyword Parameters


Keywords


        LIMIT=r0 Max allowed range.
          Default is r when mag > 1, no default for mag < 1.

Outputs


      r2 = new range: [lo2,hi2]. out

Common Blocks


Notes


      Notes: Useful for changing plot ranges, like xrange or
      yrange. mag may be < 1 to zoom out (new range is bigger).
      If given, center will be centered in new range if
      possible. New range will be contained within
      current range when mag > 1.

Modification History


      R. Sterner, 2003 Mar 14
  Copyright (C) 2003, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us