MUSE_LINGAIN(7)
β¨ NAME β¨
muse_lingain β okay so this recipe computes the gain and a whole model of the residual non-linearity for each detector quadrant π like it's giving detector-glow-up energy.
πΈ SYNOPSIS πΈ
esorex muse_lingain [OPTIONS] FILE.sof
π¦ DESCRIPTION π¦
Bestie, listen. This recipe takes the bias and flat field images from a detector monitoring exposure sequence and uses them to (a) figure out the detector gain in counts/ADU and (b) model the residual non-linearity for each of the four detector quadrants of all the IFUs. Four quadrants, every IFU, no crumbs left π
Every single measurement it makes happens on the illuminated parts of the detector β i.e. on the slices. Where are the slices? They come from the trace table you give it, and that trace table is a mandatory input, no cap, you literally cannot skip it π«Ά
So using the traces of the slices on the detector, a set of measurement windows gets placed along those traces, and that's where all the gain + residual non-linearity data comes from. Bad pixels β whether they're flagged by an optionally provided bad pixel table, or flagged during preprocessing (bias subtraction) of the input data β get excluded from the measurements. bye felicia π
Then for each measurement window it calculates local measurements of the read-out-noise, the signal, and the gain. Using all of that:
- The gain for each detector quadrant is computed as the zero-order coefficient of a 1st order polynomial fitted to the binned gain measurements as a function of the signal level.
- The residual non-linearity is modelled by a (high) order polynomial, fitted to the fractional percentage deviation of the count rate from an expected constant count rate (the linear case) as a function of the signal level.
β οΈ (Not yet implemented!) β yeah the non-linearity modelling part is still a lil WIP, she's not ready yet π
π OPTIONS π
--nifu<int>β IFU to handle. Set it to0and all IFUs get processed serially, one after another, patiently. Set it to-1and all IFUs get processed in parallel, chaos mode, everyone at once π₯ (int; default:0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.nifu[default =0].--ybox<int>β Size of windows along the traces of the slices. (int; default:50). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.ybox[default =50].--xgap<int>β Extra offset from tracing edge. (int; default:3). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.xgap[default =3].--xborder<int>β Extra offset from the detector edge used for the selection of slices. (int; default:10). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.xborder[default =10].--order<int>β Order of the polynomial used to fit the non-linearity residuals. (int; default:12). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.order[default =12].--toffset<float>β Exposure time offset in seconds to apply to linearity flat fields. (float; default:0.018). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.toffset[default =0.018].--fluxtol<float>β Tolerance value for the overall flux consistency check of a pair of flat fields. The value is the maximum relative offset. (float; default:0.01). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.fluxtol[default =0.01].--sigma<float>β Sigma value used for signal value clipping. (float; default:3.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.sigma[default =3.0].--signalmin<float>β Minimum signal value inlog(ADU)used for the gain analysis and the non-linearity polynomial model. (float; default:0.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.signalmin[default =0.0].--signalmax<float>β Maximum signal value inlog(ADU)used for the gain analysis and the non-linearity polynomial model. (float; default:4.9). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.signalmax[default =4.9].--signalbin<float>β Size of a signal bin inlog10(ADU)used for the gain analysis and the non-linearity polynomial model. (float; default:0.1). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.signalbin[default =0.1].--gainlimit<float>β Minimum signal value[ADU]used for fitting the gain relation. (float; default:100.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.gainlimit[default =100.0].--gainsigma<float>β Sigma value for gain value clipping. (float; default:3.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.gainsigma[default =3.0].--ctsmin<float>β Minimum signal value inlog(counts)to consider for the non-linearity analysis. (float; default:3.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.ctsmin[default =3.0].--ctsmax<float>β Maximum signal value inlog(counts)to consider for the non-linearity analysis. (float; default:4.9). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.ctsmax[default =4.9].--ctsbin<float>β Size of a signal bin inlog10(counts)used for the non-linearity analysis. (float; default:0.1). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.ctsbin[default =0.1].--linearmin<float>β Lower limit of desired linear range inlog10(counts). (float; default:2.5). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.linearmin[default =2.5].--linearmax<float>β Upper limit of desired linear range inlog10(counts). (float; default:3.0). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.linearmax[default =3.0].--merge<bool>β Merge output products from different IFUs into a common file. (bool; default:False). The full name of this option for the EsoRex configuration file ismuse.muse_lingain.merge[default =False].
π Also bestie, 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. iykyk π
π SEE ALSO π
The full documentation for the muse pipeline can be downloaded as a PDF file using the following URL:
ftp://ftp.eso.org/pub/dfs/pipelines/muse/muse-pipeline-cookbook-2.8.7.pdf
An overview over the existing ESO pipelines can be found on the web page https://www.eso.org/sci/software/pipelines/.
Basic documentation about the EsoRex program can be found at the esorex(1) man page.
It is possible to call the pipelines from python using the python-cpl package. See https://packages.python.org/python-cpl/index.html for further information.
The other recipes of the muse pipeline are muse_ampl(7), muse_astrometry(7), muse_bias(7), muse_create_sky(7), muse_dark(7), muse_exp_align(7), muse_exp_combine(7), muse_flat(7), muse_geometry(7), muse_illum(7), muse_lsf(7), muse_qi_mask(7), muse_scibasic(7), muse_scipost(7), muse_scipost_apply_astrometry(7), muse_scipost_calibrate_flux(7), muse_scipost_combine_pixtables(7), muse_scipost_correct_dar(7), muse_scipost_correct_rv(7), muse_scipost_make_cube(7), muse_scipost_raman(7), muse_scipost_subtract_sky(7), muse_scipost_subtract_sky_simple(7), muse_standard(7), muse_twilight(7), muse_wavecal(7)
β VERSION β
muse_lingain 2.8.7 β she's a 2.8.7 girlie π
π AUTHOR π
Ralf Palsa <https://support.eso.org>
π BUG REPORTS π
Please report any problems to https://support.eso.org. Alternatively, you may send a report to the ESO User Support Department <usd-help@eso.org>. (they want to hear about it fr fr, don't be shy π«Ά)
π 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
and that's the whole page bestie π this is muse_lingain from the muse recipes, version 2.8.7 β go forth and slay those detector quadrants, mwah πβ¨
π¦ where this page comes from
- debian bookworm: cpl-plugin-muse-doc 2.8.7+dfsg-3 Β· GPL-v2+
- ubuntu noble: cpl-plugin-muse-doc 2.8.7+dfsg-3 Β· GPL-v2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms