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

MAP_SET_SCALE

MAP_SET_SCALE

Name


      MAP_SET_SCALE

Purpose


      Set map scaling from info embedded in a map image.

Category


Calling Sequence


      map_set_scale

Inputs


Keyword Parameters


Keywords


        NEWPOS=pos2 Give a new position array, overrides
          existing position. Good for resizing maps.
          pos2 must be in device coordinates (not normalized).
        SCALE_FACTOR=fact Correction factor for map scale.
        MAG=mag Mag factor to set for new window size (def=none).
          MAG=2 If displayed in a window twice as big as original.
        /NOCLIP Do not do map specific clipping.
          Force clip=0 for map_set. May be needed to plot a
          Lat/Lon grid in some cases.
        COLOR=clr Color to override border color if any.
        IMAGE=img Give image array instead of reading it from
          the display.
        INFO=info Give the embedded info byte array instead of
          reading it from the display or image. Must have a
          window of correct size existing.
        /NOSET Do not set scaling.
        OUT=out Scaling info returned as a structure.
        /LIST List values.
        COMMAND=cmd Returned map command and details.
        ERROR=err Error flag: 0=ok, 1=no scaling info found.

Outputs


Common Blocks


Notes


      Notes: Uses info embedded on bottom image line by
      map_put_scale, if available. Does not use execute.

Modification History


      R. Sterner, 1999 Sep 21 --- Original version.
      R. Sterner, 2002 Jan 18 --- complete rewrite to work with map_set2.
      R. Sterner, 2002 Jan 29 --- Added clip=0 flag.
      R. Sterner, 2002 Feb 08 --- Added COLOR=clr for border.
      R. Sterner, 2002 Feb 10 --- Returned pixels/degree in structure.
      R. Sterner, 2002 Apr 02 --- Return map_set2 command from embedded info.
      R. Sterner, 2002 Apr 05 --- Fixed for IMAGE=img case.
      R. Sterner, 2002 Jul 03 --- Added map pixel size to returned structure.
      R. Sterner, 2002 Jul 31 --- Added map central lat,long to list & struct.
      R. Sterner, 2003 Sep 16 --- Added ERROR keyword.
      R. Sterner, 2003 Oct 17 --- Fixed pix error when image array given.
      R. Sterner, 2003 Oct 17 --- Also added central pixel.
      R. Sterner, 2003 Nov 24 --- Correct image size error detection.
      R. Sterner, 2004 Jan 15 --- Restored incoming window.
      R. Sterner, 2004 Mar 12 --- Rewrite: Avoids using the execute command.
      R. Sterner, 2004 May 27 --- Split off map_proj_name into its own file.
      R. Sterner, 2004 May 27 --- Added OUT=out and /NOSET.
      R. Sterner, 2004 Jul 22 --- Added /LIST. Also Fixed to deal with endian.
      R. Sterner, 2004 Aug 23 --- Re-added COMMAND keyword.
      R. Sterner, 2004 Oct 26 --- Made sure correct size window exists.
      R. Sterner, 2004 Nov 03 --- If info given assume window exists.
      R. Sterner, 2005 Jan 14 --- Allow size mag factor MAG=mag.
      R. Sterner, 2005 Jun 15 --- Adjust scale for screen size change.
      R. Sterner, 2010 Feb 22 --- Was clobbering window index. Fixed.
      R. Sterner, 2010 Feb 22 --- Fixed mag problem when IMAGE=img used.
      R. Sterner, 2010 Feb 23 --- Fixed bug for Z buffer (skip wset).
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
      R. Sterner, 2010 Jun 08 --- Added new keyword /NOCLIP.
      R. Sterner, 2011 Apr 01 --- Do not do wdelete if Z buffer.
  Copyright (C) 1999, 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