Displays a one- or two-dimensional NDF
Annotated axes or a simple border can be drawn around the image (see Parameters AXES and BORDER). The appearance of these may be controlled in detail (see Parameters STYLE and BORSTYLE).
A specified colour lookup table may optionally be loaded prior to displaying the image (see Parameter LUT). For devices which reset the colour table when opened (such as PostScript files), this may be the only way of controlling the colour table.
The image is produced within the current graphics database picture. The co-ordinates at the centre of the image, and the scale of the image can be controlled using Parameters CENTRE, XMAGN and YMAGN. Only the parts of the image that lie within the current picture are visible; the rest is clipped. The image is padded with bad pixels if necessary.
TRUE
if labelled and annotated axes are
to be drawn around the image. These display co-ordinates in the current co-ordinate
Frame of the supplied NDF, and may be changed using application WCSFRAME (see also
Parameter USEAXIS). The width of the margins left for the annotation may be controlled
using Parameter MARGIN. The appearance of the axes (colours, founts, etc.) can be
controlled using the STYLE Parameter. [
current value]
"MAX"
–- The maximum colour index used for the display of the image.
"MIN"
–- The minimum colour index used for the display of the image.
An integer –- The actual colour index. It is constrained between 0 and the maximum colour index available on the device.
A named colour –- Uses the named colour from the palette, and if it is not present, the nearest colour from the palette is selected.
An HTML colour code such as #ff002d
.
If the colour is to remain unaltered as the lookup table is manipulated choose an
integer between 0 and 15, or a named colour. The suggested default is the current
value. [
current value]
TRUE
if a border is to be drawn
around the regions of the displayed image containing valid co-ordinates in the current
co-ordinate Frame of the NDF. For instance, if the NDF contains an Aitoff all-sky map,
then an elliptical border will be drawn if the current co-ordinate Frame is galactic
longitude and latitude. This is because pixels outside this ellipse have undefined
positions in galactic co-ordinates. If, instead, the current co-ordinate Frame had been
pixel co-ordinates, then a simple box would have been drawn containing the whole image.
This is because every pixel has a defined position in pixel co-ordinates. The
appearance of the border (colour, width, etc.) can be controlled using Parameter
BORSTYLE. [
current value]
A comma-separated list of strings should be given in which each string is either an
attribute setting, or the name of a text file preceded by an up-arrow character
"
.
Such text files should contain further comma-separated lists which will be read and
interpreted in the same manner. Attribute settings are applied in the order in which
they occur within the list, with later settings overriding any earlier settings given
for the same attribute.
"
Each individual attribute setting should be of the form:
<name>=<value>
where <name>
is the name of a plotting attribute, and
<value>
is the value to assign to the attribute. Default values will be used for any
unspecified attributes. All attributes will be defaulted if a null value (!
)–-the
initial default–-is supplied. To apply changes of style to only the current invocation,
begin these attributes with a plus sign. A mixture of persistent and temporary style
changes is achieved by listing all the persistent attributes followed by a plus sign
then the list of temporary attributes.
See Section E for a description of the available attributes. Any unrecognised
attributes are ignored (no error is reported). [
current value]
":"
will display details of
the current co-ordinate Frame). The position should be supplied as a list of
formatted axis values separated by spaces or commas. See also Parameter USEAXIS.
A null (!
) value causes the centre of the image to be used. [!]
TRUE
if the current picture is to be cleared before the image is
displayed. [
current value]
"Data"
, "Quality"
, "Variance"
, or "Error"
(where "Error"
is an
alternative to "Variance"
and causes the square root of the variance values to be
displayed). If "Quality"
is specified, then the quality values are treated as
numerical values (in the range 0 to 255). ["Data"]
[
current graphics
device]
TRUE
, then the image
will be ‘stretched’ to fill the current picture in both directions. This can
be useful when displaying images with markedly different dimensions, such as
two-dimensional spectra. The dynamic default is TRUE
if the array being displayed
is one-dimensional, and FALSE
otherwise. []
TRUE
if a key to the
colour table is to be produced to the right of the display. This can take the
form of a colour ramp, a coloured histogram of pen indices, or graphs of RGB
intensities, all annotated with data value. The form and appearance of this key can be
controlled using Parameter KEYSTYLE, and its horizontal position can be controlled
using Parameter KEYPOS. If the key is required in a different location, set
KEY=NO and use application LUTVIEW after displaying the image. [TRUE]
The second element gives the vertical position of the key as a fractional value in the
range zero to one: zero puts the key as low as possible, one puts it as high as
possible. A negative value (no lower than -1
) causes the key to match the height of the
display image. This may mean any text, like a label, for the horizontal axis may not
appear, though if AXES is TRUE
there is usually room. [
current value]
A comma-separated list of strings should be given in which each string is either an
attribute setting, or the name of a text file preceded by an up-arrow character
"
.
Such text files should contain further comma-separated lists which will be read and
interpreted in the same manner. Attribute settings are applied in the order in which
they occur within the list, with later settings overriding any earlier settings given
for the same attribute.
"
Each individual attribute setting should be of the form:
<name>=<value>
where <name>
is the name of a plotting attribute, and
<value>
is the value to assign to the attribute. Default values will be used for any
unspecified attributes. All attributes will be defaulted if a null value (!
)–-the
initial default–-is supplied. To apply changes of style to only the current invocation,
begin these attributes with a plus sign. A mixture of persistent and temporary style
changes is achieved by listing all the persistent attributes followed by a plus sign
then the list of temporary attributes.
See Section E for a description of the available attributes. Any unrecognised attributes are ignored (no error is reported).
Axis 1 is always the data value axis. So for instance, to set the label for the
data-value axis, assign a value to "Label(1)"
in the supplied style.
To get a ramp key (the default), specify "form=ramp"
. To get a histogram key (a
coloured histogram of pen indices), specify "form=histogram"
. To get a graph key (three
curves of RGB intensities), specify "form=graph"
. If a histogram key is produced, the
population axis can be either logarithmic or linear. To get a logarithmic population
axis, specify "logpop=1"
. To get a linear population axis, specify "logpop=0"
(the
default). To annotate the long axis with pen numbers instead of pixel value, specify
"pennums=1"
(the default, "pennums=0"
, shows pixel values). [
current value]
!
) causes the existing colour table to be
used.
The LUT must be two-dimensional, the dimension of the first axis being 3, and the
second being arbitrary. The method used to compress or expand the colour table if the
second dimension is different from the number of unreserved colour indices
is controlled by Parameter NN. Also the LUT’s values must lie in the range
0.0–1.0. [!]
!
) value is supplied, the value
used is (for all edges); 0.15
if annotated axes are being produced; 0.04, if a
simple border is being produced; and 0.0 if neither border nor axes are being
produced. [
current value]
"Current"
–- The image is scaled between the upper and lower limits that were used by
the previous invocation of DISPLAY. If the previous scaling limits cannot be
determined, the MODE value reverts to "Scale"
.
"Faint"
–- The image is scaled between the mean data value minus one standard deviation
and the mean data value plus seven standard deviations. The scaling values are reported
so that the faster Scale mode may be utilised later.
"Flash"
–- The image is flashed on to the screen without any scaling at all. This is
the fastest option.
"Percentiles"
–- The image is scaled between the data values corresponding to two
percentiles. The scaling values are reported so that the faster Scale mode may be used
later.
"Range"
–- The image is scaled between the minimum and maximum data values.
"Scale"
–- You define the upper and lower limits between which the image is to be
scaled. The application reports the maximum and the minimum data values for reference
and makes these the suggested defaults.
"Sigmas"
–- The image is scaled between two standard-deviation limits. The scaling
values used are reported so that the faster Scale mode may be utilised later.
TRUE
the input lookup table is mapped to the colour table by using
the nearest-neighbour method. This preserves sharp edges and is better for lookup
tables with blocks of colour. If NN is FALSE
, linear interpolation is used, and this
is suitable for smoothly varying colour tables. NN is ignored unless LUT is
not null. [FALSE]
[2048]
FALSE
. If a null value (!
) is supplied, no output NDF will be
created. This parameter is not accessed when SCALE=FALSE
. [!]
[0.0,1.0]
thus causes the full range of colour indices to
be used. Note, if Parameter LUT is null (!) or Parameter SCALE is FALSE
then
this parameter is ignored and the fill range of pens is used. [0.0,1.0]
[25,75]
would scale between the quartile values. (Percentile mode) TRUE
the input data are to be scaled according to
the value of Parameter MODE. If it is FALSE
, MODE is ignored, and the input
data are displayed as is (i.e. the data values are simply converted to integer
type and used as indices into the colour table). A value of zero refers to the
first pen following the palette. A FALSE
value is intended to be used with data
previously scaled by this or similar applications which have already performed the
required scaling (see Parameter OUT). It provides the quickest method of image
display within this application. [TRUE]
[-2,3]
would scale between the mean minus two and the mean plus three
standard deviations. [3,-2]
would give the negative of that. TRUE
, then the default value for YMAGN equals the value supplied
for XMAGN, resulting in all pixels being displayed as squares on the display
surface. If a FALSE
value is supplied for SQRPIX, then the default value for
YMAGN is chosen to retain the pixels original aspect ratio at the centre of the
image. [
current value]
A comma-separated list of strings should be given in which each string is either an
attribute setting, or the name of a text file preceded by an up-arrow character
"
.
Such text files should contain further comma-separated lists which will be read and
interpreted in the same manner. Attribute settings are applied in the order in which
they occur within the list, with later settings overriding any earlier settings given
for the same attribute.
"
Each individual attribute setting should be of the form:
<name>=<value>
where <name>
is the name of a plotting attribute, and
<value>
is the value to assign to the attribute. Default values will be used for any
unspecified attributes. All attributes will be defaulted if a null value (!
)–-the
initial default–-is supplied. To apply changes of style to only the current invocation,
begin these attributes with a plus sign. A mixture of persistent and temporary style
changes is achieved by listing all the persistent attributes followed by a plus sign
then the list of temporary attributes.
See Section E for a description of the available attributes. Any unrecognised
attributes are ignored (no error is reported). [
current value]
Its integer index within the current Frame of the input NDF (in the range 1 to the number of axes in the current Frame).
Its Symbol string such as "RA"
or "VRAD"
.
A generic option where "SPEC"
requests the spectral axis, "TIME"
selects the time axis,
"SKYLON"
and "SKYLAT"
picks the sky longitude and latitude axes respectively. Only
those axis domains present are available as options.
A list of acceptable values is displayed if an illegal value is supplied. If a null (!
)
value is supplied, the axes with the same indices as the two used pixel axes within
the NDF are used. [!]
1.0
corresponds to ’normal’ magnification
in which the the image fills the available space in at least one dimension.
A value larger than 1.0 makes each data pixel wider. If this results in the
image being wider than the available space then the image will be clipped to
display fewer pixels. See also Parameters YMAGN, CENTRE, SQRPIX, and FILL.
[1.0]
1.0
corresponds to ’normal’ magnification in which the image fills
the available space in at least one dimension. A value larger than 1.0 makes
each data pixel taller. If this results in the image being taller than the
available space then the image will be clipped to display fewer pixels. See
also Parameters XMAGN, CENTRE, and FILL. If a null ((!
) value is supplied,
the default value used depends on Parameter SQRPIX. If SQRPIX is TRUE
, the
default YMAGN value used is the value supplied for XMAGN. This will result in
each pixel occupying a square area on the screen. If SQRPIX is FALSE
, then the
default value for YMAGN is chosen so that each pixel occupies a rectangular
area on the screen matching the pixel aspect ratio at the centre of the image,
determined within the current WCS Frame. [!]
^
sty,grid=1"
margin=0.2 clear out=video ∖
sty
, but this is modified by setting the Grid attribute to 1 so
that a co-ordinate grid is drawn across the plot. The margins around the image
containing the axes are made slightly wider than normal. The scaling is between the
−1 and
+7
standard deviations of the image around its mean. The scaled data are
stored in an NDF called video. ^
key.sty
∖ key.sty
controls the appearance of the key. For large images the resolution of the graphics device may allow only a fraction of the detail in the data to be plotted. Therefore, large images will be compressed by block averaging when this can be done without loss of resolution in the displayed image. This saves time scaling the data and transmitting them to the graphics device. Note that the default values for Parameters LOW and HIGH are the minimum and maximum values in the compressed floating-point data.
If no Title is specified via the STYLE parameter, then the TITLE component in the NDF is used as the default title for the annotated axes. Should the NDF not have a TITLE component, then the default title is instead taken from current co-ordinate Frame in the NDF, unless this attribute has not been set explicitly, whereupon the name of the NDF is used as the default title.
The application stores a number of pictures in the graphics database in the following order: a FRAME picture containing the annotated axes, the image area, and the border; if there is a key, a KEY picture encompassing the key and its annotations; and a DATA picture containing just the image area. Note, the FRAME picture is only created if annotated axes or a border have been drawn, or if non-zero margins were specified using Parameter MARGIN. The world co-ordinates in the DATA picture will be pixel co-ordinates. A reference to the supplied NDF, together with a copy of the WCS information in the NDF are stored in the DATA picture. On exit the current database picture for the chosen device reverts to the input picture.
The data type of the output NDF depends on the number of colour indices: _UBYTE for no more than 256, _UWORD for 257 to 65535, and _INTEGER otherwise. The output NDF will not contain any extensions, UNITS, QUALITY, and VARIANCE; but LABEL, TITLE, WCS and AXIS information are propagated from the input NDF. The output NDF does not become the new current data array. It is a Simple NDF (because the bad-pixel flag is set to false in order to access the maximum colour index, and to handle sections), therefore only NDF-compliant applications can process it.
This routine correctly processes the AXIS, DATA, QUALITY, VARIANCE, LABEL, TITLE, WCS, and UNITS components of the input NDF.
Processing of bad pixels and automatic quality masking are supported.
This application will handle data in all numeric types, though type conversion to integer will occur for unsigned byte and word images. However, when there is no scaling only integer data will not be type converted, but this is not expensive for the expected byte-type data.