GIMASTERFLAT(7)

πŸ“¦
version 2.16.10 Β· 2 versions
, in debian bookworm, ubuntu noble

GIMASTERFLAT(7) πŸ’– giraf recipes πŸ’–

okay bestie, welcome to the glow-up of GIMASTERFLAT(7) β€” it lives in section 7 of the manual, it's part of the giraf recipes family, and it's here to make your fiber master flat field and your localization mask. yes, both. she's multi-talented. πŸ’…


✨ NAME ✨

gimasterflat β€” Create the fiber master flat field and the localization mask. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

esorex gimasterflat [OPTIONS] FILE.sof

🌸 DESCRIPTION 🌸

For detailed information please refer to the GIRAFFE pipeline user manual. πŸ“–

It is available at http://www.eso.org/pipelines. πŸ‘‘


πŸ’– OPTIONS πŸ’–

no cap, there are a LOT of these. every single one matters. let's get into it, bestie. 🫢

  • --fiber-splist <str> β€” Index list of spectra to use for localization (e.g. 2,10,30-40,55). (str; default: ´´). The full name of this option for the EsoRex configuration file is giraffe.fibers.spectra [default = ].
  • --fiber-nspec <int> β€” Number of spectra to localize. (int; default: 0). The full name of this option for the EsoRex configuration file is giraffe.fibers.nspectra [default = 0].
  • --remove-bias <bool> β€” Enable bias removal (bool; default: True). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.remove [default = True].
  • --bsremove-method <str> β€” Bias removal method (str; default: Β΄PROFILEΒ΄). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.method [default = PROFILE].
  • --bsremove-areas <str> β€” Bias areas to use (Xl0:Xr0:Yl0:Yr0, ... ,Xln:Xrn:Yln:Yrn) (str; default: Β΄5:40:0:4095Β΄). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.areas [default = 5:40:0:4095].
  • --bsremove-sigma <float> β€” Sigma Clipping: sigma threshold factor (float; default: 2.5). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.sigma [default = 2.5].
  • --bsremove-niter <int> β€” Sigma Clipping: maximum number of iterations (int; default: 5). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.iterations [default = 5].
  • --bsremove-mfrac <float> β€” Sigma Clipping: minimum fraction of points accepted/total [0.0..1.0] (float; default: 0.8). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.fraction [default = 0.8].
  • --bsremove-xorder <int> β€” Order of X polynomial fit (CURVE method only) (int; default: 1). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.xorder [default = 1].
  • --bsremove-yorder <int> β€” Order of Y polynomial fit (CURVE method only) (int; default: 1). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.yorder [default = 1].
  • --bsremove-xstep <int> β€” Sampling step along X (CURVE method only) (int; default: 1). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.xstep [default = 1].
  • --bsremove-ystep <int> β€” Sampling step along Y (CURVE method only) (int; default: 1). The full name of this option for the EsoRex configuration file is giraffe.biasremoval.ystep [default = 1].
  • --sloc-mode <str> β€” Localization mode: Use all spectra or the 5 SIWC spectra (str; default: Β΄allΒ΄). The full name of this option for the EsoRex configuration file is giraffe.localization.mode [default = all].
  • --sloc-start <int> β€” Bin along x-axis (int; default: -1). The full name of this option for the EsoRex configuration file is giraffe.localization.start [default = -1].
  • --sloc-retries <int> β€” Initial localization detection xbin retries. (int; default: 10). The full name of this option for the EsoRex configuration file is giraffe.localization.retries [default = 10].
  • --sloc-binsize <int> β€” Initial localization detection xbin size. (int; default: -1). The full name of this option for the EsoRex configuration file is giraffe.localization.binsize [default = -1].
  • --sloc-ewidth <float> β€” Localization detection extra width. (float; default: 1.0). The full name of this option for the EsoRex configuration file is giraffe.localization.ewidth [default = 1.0].
  • --sloc-ywidth <int> β€” Full width [pxl] of the equilizing filter (distance between two adjacent fibers). (int; default: -1). The full name of this option for the EsoRex configuration file is giraffe.localization.ywidth [default = -1].
  • --sloc-center <str> β€” Method used for mask center computation. (str; default: Β΄centroidΒ΄). The full name of this option for the EsoRex configuration file is giraffe.localization.center [default = centroid].
  • --sloc-norm <bool> β€” Enable spectrum normalization along the dispersion axis. (bool; default: False). The full name of this option for the EsoRex configuration file is giraffe.localization.normalize [default = False].
  • --sloc-noise <float> β€” Threshold multiplier. (float; default: 7.0). The full name of this option for the EsoRex configuration file is giraffe.localization.noise [default = 7.0].
  • --sloc-threshold <str> β€” Selects thresholding algorithm: local, row or global (str; default: Β΄localΒ΄). The full name of this option for the EsoRex configuration file is giraffe.localization.threshold [default = local].
  • --sloc-ron <float> β€” New bias sigma (RON) value for dark subtraction (float; default: -1.0). The full name of this option for the EsoRex configuration file is giraffe.localization.ron [default = -1.0].
  • --sloc-yorder <int> β€” Order of Chebyshev polynomial fit. (int; default: 4). The full name of this option for the EsoRex configuration file is giraffe.localization.yorder [default = 4].
  • --sloc-worder <int> β€” Order of Chebyshev 2D polynomial fit. (int; default: 2). The full name of this option for the EsoRex configuration file is giraffe.localization.worder [default = 2].
  • --sloc-sigma <float> β€” Localization clipping: sigma threshold factor (float; default: 2.5). The full name of this option for the EsoRex configuration file is giraffe.localization.sigma [default = 2.5].
  • --sloc-niter <int> β€” Localization clipping: number of iterations (int; default: 5). The full name of this option for the EsoRex configuration file is giraffe.localization.iterations [default = 5].
  • --sloc-mfrac <float> β€” Localization clipping: minimum fraction of points accepted/total. (float; default: 0.9). The full name of this option for the EsoRex configuration file is giraffe.localization.fraction [default = 0.9].
  • --psf-model <str> β€” PSF profile model: psfexpΒ΄, psfexp2Β΄ (str; default: Β΄psfexp2Β΄). The full name of this option for the EsoRex configuration file is giraffe.psf.model [default = psfexp2].
  • --psf-norm <bool> β€” Use normalized pixel values. (bool; default: False). The full name of this option for the EsoRex configuration file is giraffe.psf.normalize [default = False].
  • --psf-binsize <int> β€” Size of bin along dispersion axis (int; default: 64). The full name of this option for the EsoRex configuration file is giraffe.psf.binsize [default = 64].
  • --psf-maxwidth <float> β€” Maximum width of the PSF profile. (float; default: 16.0). The full name of this option for the EsoRex configuration file is giraffe.psf.maxwidth [default = 16.0].
  • --psf-width <float> β€” Initial width of the PSF profile. (float; default: 0.0). The full name of this option for the EsoRex configuration file is giraffe.psf.width [default = 0.0].
  • --psf-exponent <float> β€” Exponent of the exponential PSF profile (will not be fitted if > 0). (float; default: -3.0). The full name of this option for the EsoRex configuration file is giraffe.psf.exponent [default = -3.0].
  • --psf-pfniter <int> β€” Maximum number of iterations used for the fit of the fiber PSF profile. (int; default: 120). The full name of this option for the EsoRex configuration file is giraffe.psf.profile.iterations [default = 120].
  • --psf-pfntest <int> β€” Maximum number of tests used for the fit of the fiber PSF profile (int; default: 7). The full name of this option for the EsoRex configuration file is giraffe.psf.profile.tests [default = 7].
  • --psf-pfdchisq <float> β€” Minimum chi-square difference used for the fit of the fiber PSF profile. (float; default: 0.001). The full name of this option for the EsoRex configuration file is giraffe.psf.profile.dchisquare [default = 0.001].
  • --psf-prmfit <bool> β€” 2D fit of the PSF profile parameters using a Chebyshev polynomial model. (bool; default: False). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.fit [default = False].
  • --psf-yorder <int> β€” Order of Chebyshev polynomial fit. (int; default: 4). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.yorder [default = 4].
  • --psf-worder <int> β€” Order of Chebyshev 2D polynomial fit. (int; default: 4). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.worder [default = 4].
  • --psf-sigma <float> β€” PSF parameter fitting: sigma threshold factor (float; default: 3.5). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.sigma [default = 3.5].
  • --psf-niter <int> β€” PSF parameter fitting: number of iterations (int; default: 10). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.iterations [default = 10].
  • --psf-mfrac <float> β€” PSF parameter fitting: minimum fraction of points accepted/total. (float; default: 0.8). The full name of this option for the EsoRex configuration file is giraffe.psf.parameters.fraction [default = 0.8].
  • --extr-method <str> β€” Extraction method: Β΄SUMΒ΄, Β΄HORNEΒ΄ or Β΄OPTIMALΒ΄ (str; default: Β΄SUMΒ΄). The full name of this option for the EsoRex configuration file is giraffe.extraction.method [default = SUM].
  • --extr-ron <float> β€” New bias sigma (RON) value for bias and dark corrected image (float; default: -1.0). The full name of this option for the EsoRex configuration file is giraffe.extraction.ron [default = -1.0].

okay that's the options section and she ATE, ngl. πŸ’… more coming, bestie β€” don't go anywhere. 🌈

  • --extr-psfmodel <str> β€” your PSF profile model pick, bestie. The options are psfexp and psfexp2 (str; default: psfexp2). Full EsoRex config name: giraffe.extraction.psf.model [default = psfexp2].
  • --extr-psfsigma <float> β€” the sigma clipping threshold, aka Horne's sigma, used to reject data points while fitting the PSF. It's the bouncer for bad pixels and cosmics 🚫✨ (float; default: 7.0). Full EsoRex config name: giraffe.extraction.psf.sigma [default = 7.0].
  • --extr-psfniter <int> β€” max number of iterations for fitting that PSF profile. (int; default: 2). Full EsoRex config name: giraffe.extraction.psf.iterations [default = 2].
  • --extr-hewidth <int> β€” Horne extraction method moment: how many extra pixels get tacked onto the fiber half-width. (int; default: 2). Full EsoRex config name: giraffe.extraction.horne.extrawidth [default = 2].
  • --extr-hmingood <int> β€” Horne extraction method moment: the minimum number of points used for the profile fit. It sets the lower limit of data points for pixel rejection. (int; default: 3). Full EsoRex config name: giraffe.extraction.horne.mingood [default = 3].
  • --extr-omfrac <float> β€” Optimal extraction method moment: the minimum fraction of data points used to fit the fiber profiles. It sets the lower limit for pixel rejection. (float; default: 0.9). Full EsoRex config name: giraffe.extraction.optimal.fraction [default = 0.9].
  • --extr-owfactor <float> β€” Optimal extraction method moment: the factor the fiber PSF half width gets multiplied by. Any adjacent spectra inside that area are assumed to be affecting the spectrum you're extracting πŸ‘€ (float; default: 3.0). Full EsoRex config name: giraffe.extraction.optimal.wfactor [default = 3.0].
  • --extr-obkgorder <int> β€” Optimal extraction method moment: the order of the polynomial background model, which gets fitted for each wavelength bin along the spatial direction. (int; default: 2). Full EsoRex config name: giraffe.extraction.optimal.bkgorder [default = 2].
  • --transmission <bool> β€” controls the relative fiber transmission computation. (bool; default: True). Full EsoRex config name: giraffe.masterflat.transmission [default = True].
  • --slight <bool> β€” controls the scattered light model computation. (bool; default: False). Full EsoRex config name: giraffe.masterflat.slight [default = False].
  • --slight-model <str> β€” the name of the scattered light model to use. (str; default: polynom). Full EsoRex config name: giraffe.slight.model.name [default = polynom].
  • --slight-order <str> β€” the scattered light model fit X and Y order. (str; default: 4,2). Full EsoRex config name: giraffe.slight.model.order [default = 4,2].
  • --slight-xstep <int> β€” interspectrum region sampling step along the dispersion direction. (int; default: 10). Full EsoRex config name: giraffe.slight.xstep [default = 10].
  • --slight-ystep <int> β€” interspectrum region sampling step along the spatial direction. (int; default: 1). Full EsoRex config name: giraffe.slight.ystep [default = 1].
  • --slight-xslice <str> β€” interspectrum region sampling step along the dispersion direction, but for one specific region. It overrides xstep for that given region, no cap πŸ’… (str; default: none). Full EsoRex config name: giraffe.slight.xslice [default = none].
  • --slight-ewidth <float> β€” extra width [pixels] added to both sides of a spectrum trace. (float; default: 0.5). Full EsoRex config name: giraffe.slight.ewidth [default = 0.5].
  • --slight-iswidth <int> β€” the minimum width [pixels] required for interspectrum regions. (int; default: 2). Full EsoRex config name: giraffe.slight.iswidth [default = 2].
  • --slight-istrim <bool> β€” turns off using the first and last interspectrum region. (bool; default: True). Full EsoRex config name: giraffe.slight.istrim [default = True].
  • --slight-phff <bool> β€” use photometric flat field correction. (bool; default: False). Full EsoRex config name: giraffe.slight.phffcorrection [default = False].
  • --slight-remove <bool> β€” remove scattered light from the input frame. (bool; default: False). Full EsoRex config name: giraffe.slight.remove [default = False].
okay so real talk β€” you can make a configuration file holding all these options plus some suitable default values πŸ’–. Just go check the deets from the esorex --help command, bestie.

🌈 SEE ALSO 🌈

The whole entire documentation for the giraf pipeline can be downloaded as a PDF, literally right here:

ftp://ftp.eso.org/pub/dfs/pipelines/giraffe/giraf-pipeline-manual-2.11.pdf

Wanna see an overview of all the existing ESO pipelines? It's on this web page:

https://www.eso.org/sci/software/pipelines/

Basic documentation about the EsoRex program itself? That's over at the esorex (1) man page, slay.

And yes, you can call the pipelines from python using the python-cpl package 🐍✨. Peep https://packages.python.org/python-cpl/index.html for more info.

The other recipes of the giraf pipeline, in all their glory:

  • giframestack(7)
  • gimasterbias(7)
  • gimasterdark(7)
  • giscience(7)
  • gistandard(7)
  • giwavecalibration(7)

🌸 VERSION 🌸

gimasterflat 2.16.10


πŸ‘‘ AUTHOR πŸ‘‘

Giraffe Pipeline <https://support.eso.org/>


πŸ› BUG REPORTS πŸ›

Please report any problems to https://support.eso.org/. Or, if you'd rather, you may send a report to the ESO User Support Department <usd-help@eso.org> πŸ’Œ.


πŸ’œ LICENSE πŸ’œ

This file is part of the GIRAFFE Instrument Pipeline Copyright (C) 2002-2014 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 02110-1301 USA

and that's a wrap on the whole page 🫢 it's gimasterflat, version 2.16.10, living its best life as the GIMASTERFLAT(7) man page β€” go forth and master those flats, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from