.TH MUSE_DARK "7" "2.8.7" "muse_dark" "muse recipes" .SH NAME muse_dark \- Combine several separate dark images into one master dark file and locate hot pixels. .SH SYNOPSIS esorex .B muse_dark [OPTIONS] FILE.sof .SH DESCRIPTION This recipe combines several separate dark images into one master dark file. The master dark contains the combined pixel values of the raw dark exposures, with respect to the image combination method used and normalization time specified. Processing trims the raw data and records the overscan statistics, subtracts the bias (taking account of the overscan, if \-\-overscan is not "none") from each raw input image, converts them from adu to count, scales them according to their exposure time, and combines them using input parameters. Hot pixels are then identified using image statistics and marked in the data quality extension. The combined image is normalized to 1 hour exposure time. QC statistics are computed on the output master dark. If \-\-model=true, a smooth polynomial model of the combined master dark is computed, created from several individual 2D polynomials to describe different features visible in MUSE dark frames. It is only advisable to use this, if the master dark is the result of at least 50 individual long dark exposures. .SH OPTIONS .TP \fB\-\-nifu\fR \fI\fR IFU to handle. If set to 0, all IFUs are processed serially. If set to \-1, all IFUs are processed in parallel. (int; default: 0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.nifu\fR [default = \fI0\fR]. .TP \fB\-\-overscan\fR \fI\fR If this is "none", stop when detecting discrepant overscan levels (see ovscsigma), for "offset" it assumes that the mean overscan level represents the real offset in the bias levels of the exposures involved, and adjusts the data accordingly; for "vpoly", a polynomial is fit to the vertical overscan and subtracted from the whole quadrant. (str; default: \'vpoly\'). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.overscan\fR [default = \fIvpoly\fR]. .TP \fB\-\-ovscreject\fR \fI\fR This influences how values are rejected when computing overscan statistics. Either no rejection at all ("none"), rejection using the DCR algorithm ("dcr"), or rejection using an iterative constant fit ("fit"). (str; default: \'dcr\'). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.ovscreject\fR [default = \fIdcr\fR]. .TP \fB\-\-ovscsigma\fR \fI\fR If the deviation of mean overscan levels between a raw input image and the reference image is higher than |ovscsigma x stdev|, stop the processing. If overscan="vpoly", this is used as sigma rejection level for the iterative polynomial fit (the level comparison is then done afterwards with |100 x stdev| to guard against incompatible settings). Has no effect for overscan="offset". (float; default: 30.0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.ovscsigma\fR [default = \fI30.0\fR]. .TP \fB\-\-ovscignore\fR \fI\fR The number of pixels of the overscan adjacent to the data section of the CCD that are ignored when computing statistics or fits. (int; default: 3). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.ovscignore\fR [default = \fI3\fR]. .TP \fB\-\-combine\fR \fI\fR Type of image combination to use. (str; default: \'sigclip\'). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.combine\fR [default = \fIsigclip\fR]. .TP \fB\-\-nlow\fR \fI\fR Number of minimum pixels to reject with minmax. (int; default: 1). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.nlow\fR [default = \fI1\fR]. .TP \fB\-\-nhigh\fR \fI\fR Number of maximum pixels to reject with minmax. (int; default: 1). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.nhigh\fR [default = \fI1\fR]. .TP \fB\-\-nkeep\fR \fI\fR Number of pixels to keep with minmax. (int; default: 1). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.nkeep\fR [default = \fI1\fR]. .TP \fB\-\-lsigma\fR \fI\fR Low sigma for pixel rejection with sigclip. (float; default: 3.0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.lsigma\fR [default = \fI3.0\fR]. .TP \fB\-\-hsigma\fR \fI\fR High sigma for pixel rejection with sigclip. (float; default: 3.0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.hsigma\fR [default = \fI3.0\fR]. .TP \fB\-\-scale\fR \fI\fR Scale the individual images to a common exposure time before combining them. (bool; default: True). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.scale\fR [default = \fITrue\fR]. .TP \fB\-\-normalize\fR \fI\fR Normalize the master dark to this exposure time (in seconds). To disable normalization, set this to a negative value. (float; default: 3600.0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.normalize\fR [default = \fI3600.0\fR]. .TP \fB\-\-hotsigma\fR \fI\fR Sigma level, in terms of median deviation above the median dark level, above which a pixel is detected and marked as \'hot\'. (float; default: 5.0). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.hotsigma\fR [default = \fI5.0\fR]. .TP \fB\-\-model\fR \fI\fR Model the master dark using a set of polynomials. (bool; default: False). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.model\fR [default = \fIFalse\fR]. .TP \fB\-\-merge\fR \fI\fR Merge output products from different IFUs into a common file. (bool; default: False). The full name of this option for the EsoRex configuration file is \fBmuse.muse_dark.merge\fR [default = \fIFalse\fR]. .PP Note that it is possible to create a configuration file containing these options, along with suitable default values. Please refer to the details provided by the 'esorex \-\-help' command. .SH SEE ALSO The full documentation for the muse pipeline can be downloaded as a PDF file using the following URL: .IP .B ftp://ftp.eso.org/pub/dfs/pipelines/muse/muse\-pipeline\-cookbook\-2.8.7.pdf .PP An overview over the existing ESO pipelines can be found on the web page \fBhttps://www.eso.org/sci/software/pipelines/\fR. .PP Basic documentation about the EsoRex program can be found at the esorex (1) man page. .PP It is possible to call the pipelines from python using the python\-cpl package. See \fBhttps://packages.python.org/python\-cpl/index.html\fR for further information. .PP The other recipes of the muse pipeline are .IR muse_ampl (7), .IR muse_astrometry (7), .IR muse_bias (7), .IR muse_create_sky (7), .IR muse_exp_align (7), .IR muse_exp_combine (7), .IR muse_flat (7), .IR muse_geometry (7), .IR muse_illum (7), .IR muse_lingain (7), .IR muse_lsf (7), .IR muse_qi_mask (7), .IR muse_scibasic (7), .IR muse_scipost (7), .IR muse_scipost_apply_astrometry (7), .IR muse_scipost_calibrate_flux (7), .IR muse_scipost_combine_pixtables (7), .IR muse_scipost_correct_dar (7), .IR muse_scipost_correct_rv (7), .IR muse_scipost_make_cube (7), .IR muse_scipost_raman (7), .IR muse_scipost_subtract_sky (7), .IR muse_scipost_subtract_sky_simple (7), .IR muse_standard (7), .IR muse_twilight (7), .IR muse_wavecal (7) .SH VERSION muse_dark 2.8.7 .SH AUTHOR Peter Weilbacher .SH BUG REPORTS Please report any problems to https://support.eso.org. Alternatively, you may send a report to the ESO User Support Department . .SH LICENSE This file is part of the MUSE Instrument Pipeline Copyright (C) 2005, 2019 European Southern Observatory This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111\-1307 USA