LIBRARIES_IZOOM
Name
IZOOM
Purpose
Zoom an image and display with labeled axes.
Category
Calling Sequence
izoom, x, y, z
Inputs
x = 1-d array of x coordinates for every column in z. in
y = 1-d array of y coordinates for every row in z. in
z = 2-d byte scaled image array. in
x, y are optional and will default to pixels.
Keyword Parameters
Keywords
XRANGE=xran X range to zoom. (def=all).
YRANGE=xran Y range to zoom. (def=all).
Out of range values are clipped to the valid range.
/SCALE means byte scale the input image.
/AXES_ONLY plot axes only.
/INTERP means do bilinear interpolation (else pixel rep).
No interpolation used for PS plots so /INTERP
has no effect.
/JS means x is time in Julian Seconds (seconds after
2000 Jan 1 0:00). Gives a date/time axis.
OFFSET=off returned time offset when used with /JS.
Same as for jsplot.
/CENTER means assume centered pixels.
/ANTIALIAS do antialised tick labels (ignored by /JS).
Any other keywords are passed on to the plot call used
to display the axes (like TITLE, CHARSIZE, POSITION, ...).
/NOSCALE do not embed scaling info in image.
With scaling info embedded in the image the image x and
and y scaling may be set back in effect for the image
display window after loading the image or doing a plot
in another window by calling set_scale (which applies to
current display window, use wset first if needed).
plot scaling in image window.
/REDRAW Redraw last izoom plot.
Outputs
Common Blocks
js_com
izoom_com
Notes
Notes: By default entire image is displayed. XRANGE and
YRANGE display a subset of the image.
An example use might be: x=array of longitudes,
y=array of latitudes, z=array of scaled elevations.
May use movbox to return the data ranges of a selected
area, then call izoom to zoom it:
movbox,ix,iy,dx,dy,xran=xran,yran=yran,/noerase
izoom,x,y,z,xran=xran,yran=yran
Modification History
R. Sterner, 3 Dec, 1993
R. Sterner, 1994 Feb 16 --- Modified to allow !p.multi.
R. Sterner, 1994 Apr 22 --- Added /JS keyword.
R. Sterner, 1994 May 17 --- Added OFFSET keyword and js_com.
R. Sterner, 1994 Jul 20 --- Fixed to allow reverse ranges.
R. Sterner, 1994 Jul 27 --- Made OFFSET 0 for non-time plots.
R. Sterner, 1995 Feb 23 --- Fixed minor bug in ranges.
R. Sterner, 1996 Dec 2 --- Added keyword /CENTER.
R. Sterner, 2000 Apr 18 --- Added keyword /NODATA.
R. Sterner, 2000 Apr 20 --- Changed NODATA to /AXES_ONLY.
R. Sterner, 2002 Jul 18 --- Added /ANTIALIAS (not /JS yet).
R. Sterner, 2006 Jun 28 --- Added /NOSCALE.
R. Sterner, 2007 Feb 05 --- Fixed background (for /antialiased).
R. Sterner, 2008 Mar 17 --- Added last to common.
R. Sterner, 2008 May 02 --- Added /REDRAW keyword.
R. Sterner, 2008 Jul 02 --- Added [XY]TICK_GET.
R. Sterner, 2010 Jun 09 --- Converted arrays from () to [].
R. Sterner, 2012 Jun 28 --- Made x,y optional. Added /SCALE.
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.