<!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>Estimating the Sky Background</TITLE> <META NAME="description" CONTENT="Estimating the Sky Background"> <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="node518.html"> <LINK REL="previous" HREF="node513.html"> <LINK REL="up" HREF="node501.html"> <LINK REL="next" HREF="node518.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html7907" HREF="node518.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html7904" HREF="node501.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html7898" HREF="node516.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html7906" 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="tex2html7908" HREF="node518.html">Extracting the Spectrum</A> <B> Up:</B> <A NAME="tex2html7905" HREF="node501.html">A Typical Session: Cook-book</A> <B> Previous:</B> <A NAME="tex2html7899" HREF="node516.html">Not Resampling the Data</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION003036000000000000000"> </A> <A NAME="fit-sky"> </A> <BR> Estimating the Sky Background </H2> <P> The sky is measured in two regions usually located below and above the object spectrum and which pixel boundary limits are stored in the keywords <!-- MATH: $\fbox{LOWSKY}$ --> <IMG WIDTH="112" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1042.gif" ALT="\fbox{LOWSKY}"> and <!-- MATH: $\fbox{UPPSKY}$ --> <IMG WIDTH="105" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1043.gif" ALT="\fbox{UPPSKY}">. The algorithm removes the cosmic rays from the sky spectrum before interpolation, using the CCD detector parameters <!-- MATH: $\fbox{RON}$ --> <IMG WIDTH="63" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1044.gif" ALT="\fbox{RON}"> for the read-out-noise, <!-- MATH: $\fbox{GAIN}$ --> <IMG WIDTH="72" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1045.gif" ALT="\fbox{GAIN}"> for the gain, <!-- MATH: $\fbox{SIGMA}$ --> <IMG WIDTH="88" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1046.gif" ALT="\fbox{SIGMA}"> as threshold of the kappa-sigma clipping and 2* <!-- MATH: $\fbox{RADIUS}$ --> <IMG WIDTH="100" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1047.gif" ALT="\fbox{RADIUS}">+1 as size of the rejection window. The sky is fitted along the columns of the spectrum by a polynomial of degree <!-- MATH: $\fbox{SKYORD}$ --> <IMG WIDTH="109" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1048.gif" ALT="\fbox{SKYORD}">. Unique or independent spatial profiles are computed depending of the value of the parameter <!-- MATH: $\fbox{SKYMOD}$ --> <IMG WIDTH="113" HEIGHT="29" ALIGN="BOTTOM" BORDER="0" SRC="img1049.gif" ALT="\fbox{SKYMOD}">. Sky estimation parameters are displayed together with extraction parameters by: <BR> <BR> Midas...> <TT>SHOW/LONG e</TT>. <BR> <BR> The commands: <BR> <BR> Midas...> <TT>SET/LONG LOWSKY=50,180 UPPSKY=220,350</TT> <BR> Midas...> <TT>SKYFIT/LONG ccd0056 sky56</TT> <BR> <BR> generate an image <B>sky56.bdf</B> of which size is identical to the input image <B>ccd0056.bdf</B> and corresponding to the interpolated sky background. Sky subtraction is performed with: <BR> <BR> Midas...> <TT>COMPUTE/IMAGE corr56 = ccd0056 - sky56</TT> <P> <BR><HR> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-15</I> </ADDRESS> </BODY> </HTML>