Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 37ce2601040f8edc2329d4714238376a > files > 3836

eso-midas-doc-13SEPpl1.2-3.mga5.i586.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>Removal of particle hits</TITLE>
<META NAME="description" CONTENT="Removal of particle hits">
<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="node152.html">
<LINK REL="previous" HREF="node150.html">
<LINK REL="up" HREF="node145.html">
<LINK REL="next" HREF="node152.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html3330"
 HREF="node152.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html3327"
 HREF="node145.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html3321"
 HREF="node150.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html3329"
 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="tex2html3331"
 HREF="node152.html">Background Definition</A>
<B> Up:</B> <A NAME="tex2html3328"
 HREF="node145.html">Echelle Spectra</A>
<B> Previous:</B> <A NAME="tex2html3322"
 HREF="node150.html">Order Definition</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001130000000000000000">&#160;</A><A NAME="7181">&#160;</A>
<A NAME="remove-particle-hits">&#160;</A>
<BR>
Removal of particle hits
</H1>
Cosmic ray<A NAME="7183">&#160;</A> events pose a serious problem in long <TT>CCD</TT> exposures. Their 
removal is a rather delicate step, because in high-contrast images 
(such as well-exposed echelle spectra) there is always a danger of 
damaging the scientific contents of the frame. Particle hits can be    
removed from scientific exposures by splitting the exposure and comparing
spectra of the same target obtained under the same instrumental configuration. 
Offsets of the target resulting from the positioning of the target on the
entrance slit of the spectrograph and variations of exposure time must be
accounted for. Commands <TT>AVERAGE/IMAGE</TT> and <TT>AVERAGE/WEIGHT</TT> offer 
number of options to compare the images and reject particle hits. In 
the case of 
echelle spectra of sources with very little variation of the spectral 
information along the slit, one can also exploit the knowledge provided 
by the order definition as to where in the frame the relevant data is located. 

<P>
The removal of unwanted spikes, above an otherwise featureless background 
such as the inter-order space of echelle spectra, 
is done most easily with a median filter. Therefore, in a first step a median 
filter is applied to the entire frame. This then enables the true background 
to be determined as described in Section `Background Definition' of this 
chapter. The subtraction of the background calculated 
completes the second step, and, as far as the inter-order space 
is concerned, the final result is reached already. The removal of cosmics from 
the object spectrum forms the third step 
and is restricted to the regions covered by the spectral orders 
in the background-corrected, but otherwise raw frame. This step comprises 
the following operations performed within a sliding (along and separately 
for each spectral order) window of user-specified width: 
<UL>
<LI>
For all <I>x</I><SUB><I>i</I></SUB> of the window, normalize the spatial profile to the total 
flux in the associated slice (i.e. all <I>y</I><SUB><I>j</I></SUB> of the order considered).
<LI>
Form the `true' spatial profile as the median over the individual profiles 
at all <I>x</I><SUB><I>i</I></SUB> in the window.
<LI>
For all pixels (
<!-- MATH: $x_{c}, y_{j}$ -->
<I>x</I><SUB><I>c</I></SUB>, <I>y</I><SUB><I>j</I></SUB>) in the central slice, <I>c</I>, of the window 
compare their re-normalised flux, <I>f</I><SUB><I>c</I>,<I>j</I></SUB>, with the properly scaled 
contents <I>m</I><SUB><I>j</I></SUB> of 
pixel <I>j</I> in the median profile. If the difference exceeds the expected 
statistical error of <I>f</I><SUB><I>i</I>,<I>j</I></SUB> (calculated from the number of 
photons detected and the readout noise) by a user-specified factor, 
replace <I>f</I><SUB><I>c</I>,<I>j</I></SUB> with <I>m</I><SUB><I>j</I></SUB>. 
</UL> 
If the threshold for substitution by the median is set properly 
(<IMG
 WIDTH="46" HEIGHT="54" ALIGN="BOTTOM" BORDER="0"
 SRC="img287.gif"
 ALT="$\sim$">4&nbsp;<IMG
 WIDTH="44" HEIGHT="54" ALIGN="BOTTOM" BORDER="0"
 SRC="img288.gif"
 ALT="$\sigma$">)
and the spectral information within the spatial 
profile does not change (point sources are best), this 
procedure does not redistribute the flux or dilute the point spread 
function. 

<P>
These three steps are the backbone of command <TT>FILTER/ECHELLE</TT>.
The final output frame is the merger of the median-filtered
inter-order domains with the spectral orders after having been
subjected to step three. Note that the background has been subtracted
already. A keyword <TT>BACKGROUND</TT> with contents <TT>SUBTRACTED</TT> is
appended to the frame as a flag to subsequent high-level procedures so
as not to have to go through the very time consuming step of the
background modeling again. Delete that descriptor or change its contents if
re-modeling of the residual background is desired.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html3330"
 HREF="node152.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html3327"
 HREF="node145.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html3321"
 HREF="node150.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html3329"
 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="tex2html3331"
 HREF="node152.html">Background Definition</A>
<B> Up:</B> <A NAME="tex2html3328"
 HREF="node145.html">Echelle Spectra</A>
<B> Previous:</B> <A NAME="tex2html3322"
 HREF="node150.html">Order Definition</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-15</I>
</ADDRESS>
</BODY>
</HTML>