Performs a Maximum-Entropy deconvolution of a two-dimensional NDF
For a detailed description of the algorithm, and further references, see the MEMSYS users manual, and SUN/117.
TRUE
value if an analysis of a previously generated deconvolution is to be performed,
instead of a whole new deconvolution being started. An analysis returns the integrated
flux in some area of the deconvolved image you specify, together with the standard
deviation on the integrated flux value. The area to be integrated over is specified by
an image associated with Parameter MASK. This facility can, for instance, be
used to assess the significance of structure seen in the deconvolution. An
analysis can only be performed if the input NDF (see Parameter IN) contains a
MEM2D extension (see Parameter EXTEND). If the input does contain such an
extension, and if the extension shows that the deconvolution was completed,
then ANALYSE is defaulted to TRUE
, otherwise it is defaulted to FALSE
. []
[]
TRUE
value, then the output NDF will contain an extension called MEM2D which
will contain all the information required to either restart or analyse the
deconvolution. Note, including this extension makes the output file much bigger (by
about a factor of seven). [TRUE]
0
for
FWHMICF causes no ICF to be used, and so no correlations are expected in the
output. Larger values encourage smoothness in the output on the scale of the ICF.
If a non-zero ICF is used, the image entropy which is maximised is not the
output image, but a ‘hidden’ image. This hidden image is the deconvolution
of the output image with the ICF, and is assumed to have no pixel-to-pixel
correlations. [2]
"Gaussian"
. 0
then no information is displayed. Larger values
up to a maximum of 3, give larger amounts of information. A value of 3
gives
full MEMSYS3 diagnostics after each iteration. [1]
TRUE
, and unless you override this default,
an analysis of the deconvolution contained in the input NDF is performed. If
the input deconvolution is not complete, then the deconvolution process is
restarted from where it left off. If no MEM2D extension is found, then a new
deconvolution is started from scratch. [!]
[!]
[50]
"Gaussian"
or "Poisson"
. If Gaussian noise is
selected, the data variances are set initially to the values stored in the
VARIANCE component of the input NDF. If no such component exists, then the
data variances are set to a constant value equal to the RMS difference between
adjacent pixels in the x direction. MEMSYS3 scales these initial noise estimates to
maximise the data ‘evidence’. The evidence is displayed as "LOG(PROB)"
and
the noise scaling factor as "SIGMA"
, if Parameter ILEVEL is set to 2
or more.
If Poisson statistics are selected the uncertainty in each data value is, as
usual, of the order of the square root of the data value. When using Poisson
statistics, there is no equivalent to the noise scaling performed when using
Gaussian statistics. Any input VARIANCE component is ignored. ["Gaussian"]
TRUE
, then the output NDF
contains an extension called MEM2D containing information which allows the
deconvolution to be either continued or analysed. There is no VARIANCE component in the
output, but any QUALITY values are propagated from the input to the output. If
Parameter UPDATE is TRUE
, then the output NDF is created after the first iteration
and is updated after each subsequent iteration. "NDF"
. The PSF can be centred anywhere within the image, the location of the
centre is specified using Parameters XCENTRE and YCENTRE. The extent of the PSF
actually used is controlled by Parameter THRESH. "Gaussian"
), or is to be defined by an image
you supply (if PSFTYPE="NDF"
). ["NDF"]
"floating overflow"
error. If this happens, try reducing RATE. Useful values
will normally be of the order of unity, and must lie in the interval 0.0001 to
100. [0.5]
"NDF"
. An error will
result if the input PSF is truncated above this threshold. [0.0625]
TRUE
value, then the output NDF will be created after the first iteration,
and will then be updated after each subsequent iteration. This means that the
current reconstruction can be examined without aborting the application. Also, if
Parameter EXTEND is TRUE
, then if the job aborts for any reason, it can be
restarted from the last completed iteration (see Parameter IN). [TRUE]
"NDF"
. XCENTRE is defaulted
to the middle pixel (rounded down if there are an even number of pixels per
line). []
"NDF"
. YCENTRE is defaulted to the middle line (rounded down if
there are an even number of lines). []
TRUE
. TRUE
, and an analysis will be performed. This effectively results in the
deconvolution being multiplied by the data array of the NDF called nucleus, and
the total data sum in the resulting image being displayed, together with the
standard deviation on the total data sum. The image in m51_hires is the most
probable deconvolution, but there may be other deconvolutions only slightly
less probable than m51_hires. The standard deviation produced by an analysis
takes account of the spread between such deconvolutions. If the total data sum
is not significantly greater than the standard deviation, then the feature
selected by the mask image (called nucleus in this case) may well be spurious.
The mask image itself may for instance consist of an area of uniform value
+1
covering some feature of interest, and the bad value (or equivalently the value
zero) everywhere else. The analysis would then give the integrated flux in the
feature, assuming that the background is known to be zero. If the background is
not zero, then the mask may contain a background region containing the value
−1, of equal area to the region
containing the value +1.
The resulting integrated flux would then be the total flux in the source minus the flux
in a background region of equal area. MEM2D requires a large quantity of memory–-almost as much as the rest of Kappa. In order for the Kappa monolith to load without you having to increase your memory or datasize resources, and because MEM2D is batch oriented (see Timing) it is only available as a separate application.
Memory is required to store several intermediate images while the deconvolution is in progress. If the input image is small enough, these images are stored in a statically declared, internal array. Otherwise, they are stored in dynamically mapped external arrays. There is no limit on the size of image which can be processed by MEM2D (other than those imposed by limited resources on the host computer).
It is sometimes desirable for the pixels in the output image to be smaller than those in the input image. For instance, if the input data are critically sampled (two samples per PSF), the output image may not be a very good deconvolution. In such cases sub-dividing the output pixels would give better results. At the moment MEM2D cannot do this. Be warned that sub-dividing the input pixels and then running the current version of MEM2D will not have the same effect, since the noise in the input image will then have pixel-to-pixel correlations, and be interpreted as real structure.
This routine correctly processes the AXIS, DATA, QUALITY, VARIANCE, LABEL, TITLE, UNITS, WCS, and HISTORY components of an NDF data structure and propagates all extensions.
Processing of bad pixels and automatic quality masking are supported, though only to remove them by the DEF value.
All non-complex numeric data types can be handled. Arithmetic is performed using single-precision floating point.