Sophie

Sophie

distrib > Mageia > 6 > armv5tl > by-pkgid > 201e0834e55f1cfb56df6e684a6ce2cd > files > 4165

eso-midas-doc-15SEPpl1.0-2.mga6.armv5tl.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Cleaning Images</TITLE>
<META NAME="description" CONTENT="Cleaning Images">
<META NAME="keywords" CONTENT="vol2">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="vol2.css">
<LINK REL="next" HREF="node449.html">
<LINK REL="previous" HREF="node447.html">
<LINK REL="up" HREF="node441.html">
<LINK REL="next" HREF="node449.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html7033"
 HREF="node449.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html7030"
 HREF="node441.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html7024"
 HREF="node447.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html7032"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html7034"
 HREF="node449.html">Using the COMPUTE Command</A>
<B> Up:</B> <A NAME="tex2html7031"
 HREF="node441.html">CCD Detectors</A>
<B> Previous:</B> <A NAME="tex2html7025"
 HREF="node447.html">Averaging and Merging Frames</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION002517000000000000000">
Cleaning Images</A>
</H2> 

<P>
This section describes three functions which have been created to cleanup
defects in images. The first two functions for cleaning rows and columns are
particularly useful for CCD-images. The third function is of a more general
nature, but also quite useful for CCD-images. 

<P>
<B>Cleaning rows or columns</B> --
Since CCDs are discrete row and column devices, they often exhibit defects
which effect an entire row or column. These can often be removed with the
commands: <BLOCKQUOTE>
<TT>MODIFY/COLUMN INPUT OUTPUT [C or V] [columns]
<BR>
MODIFY/ROW INPUT OUTPUT [C or V] [rows]</TT></BLOCKQUOTE>These commands require an input frame, and an output frame. The parameter 
<TT>C</TT> or <TT>V</TT> determines whether the routine computes and adds a constant
to the indicated columns/rows of the input data (option&nbsp;<TT>C</TT>), or if the
routine uses the adjacent pixel values to extrapolate data for the indicated
columns/rows (option&nbsp;<TT>V</TT>). The rows or columns specification is not
required if the input also specifies a table containing the rows or columns to
be corrected. See the detailed command description for a complete description.

<P>
<B>Cleaning areas and Removing objects</B> --
<A NAME="cleaning-areas-removing-objects">&#160;</A>A general purpose MIDAS command has been created for cleaning areas of an
image. This is particularly useful for removing the permanent defects which may
exist in the CCD-frames and which cannot be removed by the 
<TT>MODIFY/COLUMN</TT> or <TT>MODIFY/ROW</TT> commands. 
This command uses fitted surfaces to replace pixel values in the specified
areas. It would also be useful for removing stars and so forth from an image.
The command is: <BLOCKQUOTE>
<TT>MODIFY/PIXELS INPUT OUTPUT [AREA] [DEGREE] [MARK]</TT></BLOCKQUOTE>See the detailed command description in
Vol. A,  Appendix A for a description of how to use
this command and how to specify the various input parameters. 

<P>
The input parameter can be specified as <TT>CURSOR</TT>, and then the currently
displayed image will then be used to interactively clean a resulting image
with the cleaning area specified by the cursor positions.

<P>
<B>CCD specific cleaning</B> --
<A NAME="ccd-specific-cleaning">&#160;</A>A visual inspection of CCD-frames reveals bad pixel areas which result from
defective sensors. Often these elements produce an abnormally large amount of
dark current and are so bright that charge spills over to neighbour elements
causing streaking or hot spots. Since the CCD sensors are linked in the
vertical direction, the surplus charge will tend to spread along the columns. 

<P>
Many of these defects are permanent i.e. they appear on every CCD-frame at
the same position. Thus the Dark-subtraction should (in principle) remove
them. However, this is often not the case since the manifestations of these
defects depend on exposure levels and temperature among other things. So after
Dark-subtraction a hot spot residual may be present. 

<P>
A second instrumental fault are the low-sensitivity columns. The origin of
cold columns are probably defects in the horizontal shift register which
collect and shift the charge after exposure. The DATA of COLD-COLUMNS is NOT
LOST. Their pixel values are only lower by a constant value  than the
``normal'', neighbouring columns. 

<P>
The division of the SCIE- by the FLAT-frame doesn't always remove the cold
columns. The sky levels of these frames usually do not match, thus the
flatfielding gives different ratios for cold- and normal-columns. Even if
the sky-background levels agree, cold lines lying over sources won't
disappear after FLAT-field correction. 

<P>
The MIDAS functions discussed above are designed to correct the effects of
these cold columns, hot spots and other defects. In the case of cold columns,
it is usually possible to recover the data with the <TT>MODIFY/COLUMN</TT>
command using the <TT>C</TT> option. 
For the hot spots and other defects, the <TT>MODIFY/PIXEL</TT> command can be
used to replace the bad areas with a best estimate surface. This technique
will produce cosmetically clean images, but will not recover the data as the
<TT>MODIFY/COLUMN</TT> does. 
To use the <TT>MODIFY/PIXEL</TT> command, the following procedure can be used
once a CCD-image has been loaded on the Display monitor: <BLOCKQUOTE>
<TT>DRAW/RECTANGLE CURSOR table</TT></BLOCKQUOTE>where <TT>table</TT> is the name of table in which to store the start- and
end-points of the rectangles. 
The resulting table is reusable and can be saved for future use. It may be
useful to create a set of tables, since the size of the hot spots varies with
temperature and exposure time. 
This table may then be used by the command:<BLOCKQUOTE>
<TT>MODIFY/PIXELS inputs output [par3] [par4]</TT></BLOCKQUOTE>to replace the pixels inside the given rectangles via a 2-dimensional surface
interpolation. 
A 
<!-- MATH: $\kappa\times\sigma$ -->
<IMG
 WIDTH="58" HEIGHT="39" ALIGN="MIDDLE" BORDER="0"
 SRC="img945.gif"
 ALT="$\kappa\times\sigma$">-clipping is used to fit a surface to the underlying
background which can be the sky or an extended source. 

<P>
Selecting <TT>inputs</TT> = ``inframe,intable'' instead of <TT>CURSOR</TT> leads to
the reading of the surface world coordinates x-st,x-end,y-st,y-end for
`inframe' from the MIDAS table `intable.' 
The columns must be labelled <TT>XSTART</TT>, <TT>XEND</TT>, <TT>YSTART</TT>, and 
<TT>YEND</TT>.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html7033"
 HREF="node449.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html7030"
 HREF="node441.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html7024"
 HREF="node447.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html7032"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html7034"
 HREF="node449.html">Using the COMPUTE Command</A>
<B> Up:</B> <A NAME="tex2html7031"
 HREF="node441.html">CCD Detectors</A>
<B> Previous:</B> <A NAME="tex2html7025"
 HREF="node447.html">Averaging and Merging Frames</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-15</I>
</ADDRESS>
</BODY>
</HTML>