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






      View and/or convert images (GIF, TIFF, ...).


Calling Sequence



Keyword Parameters


        SCROLL_SIZE=[mx,my] Max size before scrolling sets in.
        DIRECTORY=dir Set initial directory.
        HOTLIST=hfile Name of directory hotlist file.
          File has list of directories of interest. For file
          format do xhotlist, /help. Default is the file named.
          xview_dir.txt in local directory first, then $HOME.
        TYPE=typ Initial image type:
        WILD=wild Initial wildcard (def depends on TYPE).
        MAG=mag Initial magnification (def=1.0).
        ICTXT=txt Text string to execute after each image load.
          Intended to set data coordinates for data cursor.
          Image name is available in the variable called NAME at
          the point where this text is executed. If a file name
          contains coordinate info a routine which extracts that
          info may be called. Ex: for file N40W120.gif the
          routine could pick off the 40 and 120 and use that to
          set the scaling. Something like ICTXT="set_scale,name"
        READ_CUSTOM=rc Name of an optional custom image
          read routine. May also include default wild card
          as 2nd element of a string array. Routine syntax:
          img = rdcust(filename, r, g, b) where r,g,b may
          be set to scalar 0 for no new color table.


Common Blocks


Modification History

      R. Sterner, 11 Oct, 1993
      R. Sterner, 1994 Dec 13 --- Added JPEG. Also allowed initial
      mag factor to be given. Added more mag factors to pulldown menu.
      R. Sterner, 1994 Dec 30 --- Added XBM.
      R. Sterner, 1995 May 5 --- Added PRINT.
      R. Sterner, 1995 May 18 --- Added TRANSPARENCY.
      R. Sterner, 1995 Nov 9 --- Added SRF.
      R. Sterner, 1997 Feb 27 --- Added vivid color print option.
      R. Sterner, 1998 Jan 15 --- Dropped use of !d.n_colors.
      R. Sterner, 1999 Sep 28 --- Switched to read_tiff (from tiff_read).
      R. Sterner, 2001 Jul 19 --- Fixed to save JPEG correctly.
      R. Sterner, 2001 Jul 26 --- Fixed image resize, also called img_shape.
      R. Sterner, 2003 Apr 23 --- Added PNG images.
      R. Sterner, 2004 Apr 29 --- Changed call to xtxtin.
      R. Sterner, 2004 May 19 --- Fixed set_scale call to work.
      R. Sterner, 2004 Jun 02 --- Fixed B&W PNG (no color table).
      R. Sterner, 2006 Mar 16 --- Fixed dir list to be opsys dependent. Switched to
      file_search. Dropped double wildcards.
      R. Sterner, 2007 Mar 19 --- Added cubic=-0.5 on magnify option.
      R. Sterner, 2010 Jun 16 --- Converted arrays from () to [].
  Copyright (C) 1993, 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.

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