Change the dimensionality of all or part of an NDF MANIC
The shape of the output NDF is specified using Parameter AXES. This is a list of integers, each element of which identifies the source of the corresponding axis of the output–-either the index of one of the pixel axes of the input, or a zero indicating that the input should be expanded with copies of itself along that axis. If any axis of the input NDF is not referenced in the AXES list, the missing dimensions will be collapsed to form the resulting data. Dimensions are collapsed by averaging all the non-bad pixels along the relevant pixel axis (or axes).
"Mean"
to form the average, or "Median"
to use the median.
["Mean"]
[]
!
) means use the title from the
input NDF. [!]
[]
"SKY"
, with Axis 1 being RA and Axis 2 being DEC,
then these will be unchanged in the output NDF. However, the Mapping which is
used to relate (RA,DEC) positions to pixel positions will be modified to take
the permutation of the pixel axes into account. This application permutes the NDF pixel axes, and any associated AXIS structures. It
does not change the axes of the current WCS co-ordinate Frame, either by permuting,
adding or deleting, unless that frame has Domain "PIXEL"
or "AXES"
. See the first
example in the "Examples"
section.
This routine correctly processes the AXIS, DATA, VARIANCE, LABEL, TITLE, UNITS, WCS, and HISTORY components of the input NDF and propagates all extensions. QUALITY is also propagated if possible (i.e. if no input axes are collapsed).
Processing of bad pixels and automatic quality masking are supported.
All non-complex numeric data types can be handled.
Any number of NDF dimensions is supported, up to a maximum of 7.