Contours a two-dimensional NDF CONTOUR
"Bounds"
or "Good"
).
The plot is produced within the current graphics database picture, and may be aligned with an existing DATA picture if the existing picture contains suitable co-ordinate Frame information (see Parameter CLEAR).
The appearance of each contour can be controlled in several ways. The pens used can be rotated automatically (see Parameter PENROT). Contours below a given threshold value can be drawn dashed (see Parameter DASHED). Alternatively, the appearance of each contour can be set explicitly (see Parameter PENS).
Annotated axes can be produced (see Parameter AXES), and the appearance of the axes can be controlled in detail (see Parameter STYLE). The axes show co-ordinates in the current co-ordinate Frame of the supplied NDF.
A list of the contour levels can be displayed to the right of the contour map (see Parameter KEY). The appearance and position of this key may be controlled using Parameters KEYSTYLE and KEYPOS.
contour ndf [comp] mode ncont [key] [device] | |
mode | |
TRUE
if labelled and annotated axes are to be
drawn around the contour map, showing the current co-ordinate Frame of the supplied
NDF. The appearance of the axes can be controlled using the STYLE parameter. If a null
(!
) value is supplied, then axes will be drawn unless the CLEAR parameter indicates
that the graphics device is not being cleared. [!]
TRUE
if
the graphics device is to be cleared before displaying the contour map. If you want the
contour map to be drawn over the top of an existing DATA picture, then set CLEAR
to FALSE
. The contour map will then be drawn in alignment with the displayed
data. If possible, alignment occurs within the current co-ordinate Frame of
the NDF. If this is not possible, (for instance if suitable WCS information
was not stored with the existing DATA picture), then alignment is attempted
in PIXEL co-ordinates. If this is not possible, then alignment is attempted
in GRID co-ordinates. If this is not possible, then alignment is attempted
in the first suitable Frame found in the NDF irrespective of its domain. A
message is displayed indicating the domain in which alignment occurred. If
there are no suitable Frames in the NDF then an error is reported. [TRUE]
"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"]
!
)
results in contours being drawn with the styles specified by Parameters PENS,
PENROT, and STYLE. [!]
[
current
graphics device]
TRUE
, then a faster, but in
certain cases less-accurate, method is used to draw the contours. In fast mode,
contours may be incorrectly placed on the display if the mapping between graphics
co-ordinates and the current co-ordinate Frame of the supplied NDF has any
discontinuities, or is strongly non-linear. This may be the case, for instance, when
displaying all-sky maps on top of each other. [TRUE]
TRUE
, the square-pixel constraint is relaxed
and the contour plot is the largest possible within the current picture. When
FILL is FALSE
, the pixels are square. [FALSE]
TRUE
if a key of the contour level versus pixel value is to be produced. The
appearance of this key can be controlled using Parameter KEYSTYLE, and its
position can be controlled using Parameter KEYPOS. [TRUE]
[
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).
The heading in the key can be changed by setting a value for the Title attribute (the
supplied heading is split into lines of no more than 17 characters). The appearance of
the heading is controlled by attributes Colour(Title), Font(Title), etc. The appearance of
the contour indices is controlled by attributes Colour(TextLab), Font(TextLab), etc. (the
synonym Index can be used in place of TextLab). The appearance of the contour values is
controlled by attributes Colour(NumLab), Font(NumLab), etc. (the synonym Value can be
used in place of NumLab). Contour indices are formatted using attributes Format(1),
Digits(1), etc. (the synonym Index can be used in place of value 1). Contour values are
formatted using attributes Format(2), etc. (the synonym Value can be used in place of
the value 2). [
current value]
"Good"
or "Bounds"
. It specifies the position at which to place a label
identifying the input NDF within the plot. The label is drawn parallel to the first
pixel axis. Two values should be supplied for LABPOS. The first value specifies
the distance in millimetres along the first pixel axis from the centre of the
bottom-left pixel to the left edge of the label. The second value specifies
the distance in millimetres along the second pixel axis from the centre of
the bottom-left pixel to the baseline of the label. If a null (!
) value is
given, no label is produced. The appearance of the label can be set by using the
STYLE parameter (for instance "Size(strings)=2"
). [
current value]
!
) value is
supplied, the value used is 0.15
(for all edges) if annotated axes are being
produced, and zero otherwise. See also Parameter KEYPOS. [
current value]
"Area"
–- The contours enclose areas of the array for which the equivalent radius
increases by equal increments. You specify the number of levels.
"Automatic"
–- The contour levels are equally spaced between the maximum and minimum
pixel values in the array. You supply the number of contour levels.
"Bounds"
–- A single ‘contour’ is drawn representing the bounds of the input array. A
label may also be added (see Parameter LABPOS).
"Equalised"
–- You define the number of equally spaced percentiles.
"Free"
–- You specify a series of contour values explicitly.
"Good"
–- A single ‘contour’ is drawn outlining the good pixel values. A label may also
be added (see Parameter LABPOS).
"Linear"
–- You define the number of contours, the start contour level and linear step
between contours.
"Magnitude"
–- You define the number of contours, the start contour level and
step between contours. The step size is in magnitudes so the nth contour is
dex(-0.4(n-1)step)
times the start contour level.
"Percentiles"
–- You specify a series of percentiles.
"Scale"
–- The contour levels are equally spaced between two pixel values that you
specify. You also supply the number of contour levels, which must be at least two.
6
gives reasonable results. TRUE
, the plotting pens are cycled through the contours to aid
identification of the contour heights. Only accessed if pen definitions are not
supplied using Parameter PENS. [FALSE]
"width=10.0,colour=red,style=2"
produces a thick,
red, dashed contour. Attributes that are unspecified in a string default to
the values implied by Parameter STYLE. If a null value (!
) is given for PENS,
then the pens implied by Parameters PENROT, DASHED and STYLE are used. [!]
TRUE
, the LENGTH and NUMBER statistics are computed. [FALSE]
. 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).
The appearance of the contours is controlled by the attributes Colour(Curves),
Width(Curves), etc. (the synonym Contours may be used in place of Curves). The contour
appearance established in this way may be modified using Parameters PENS, PENROT and
DASHED. [
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 significant NDF pixel axes
are used. [!]
TRUE
. TRUE
. mysty
. The
plotting attribute Grid is set explicitly to 1 to ensure that a co-ordinate grid is
drawn over the plot. The text file mysty
could, for instance, contain the two lines
"Title=NGC6872 at 25 microns"
and "grid=0"
. The Title setting gives the title to
display at the top of the axes. The Grid setting would normally prevent a co-ordinate
grid being drawn, but is overridden in this example by the explicit setting for Grid
which follows the file name. keysty
. This file could, for instance, contain the two lines
"font=3"
and "digits(2)=4"
to cause all text in the key to be drawn using PGPLOT font 3
(an italic fount), and 4 digits to be used when formatting the contour values. "My data"
is displayed at the top. 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, contours, and key; a KEY picture to store the key if present; and a DATA picture containing just the contours. Note, the FRAME picture is only created if annotated axes or a key has 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.
Only real data can be processed directly. Other non-complex numeric data types will undergo a type conversion before the contour plot is drawn.
Bad pixels and quality masking are supported.