UVES_CAL_TFLAT(7)
π UVES_CAL_TFLAT π
okay bestie, welcome to UVES_CAL_TFLAT(7) β yeah, that's the manual page, and yeah, it lives in the uves recipes corner of the manual universe. this one's about uves_cal_tflat, and it's a whole journey. grab a strawberry π, we're doing this.
β¨ NAME β¨
uves_cal_tflat β reduces a TFLAT frame. that's it, that's the whole name. slay.
π¦ SYNOPSIS π¦
esorex uves_cal_tflat [OPTIONS] FILE.sof
like, that's the vibe. esorex, the recipe name, whatever [OPTIONS] you're feeling, and your .sof file. periodt.
πΈ DESCRIPTION πΈ
so this recipe reduces a TFLAT_xxx frame, where xxx is either BLUE or RED. it does the whole thing in two moves:
- it combines all the provided TFLAT frames into one
MASTER_TFLATframe, then - it does a totally normal science reduction on the first input TFLAT frame.
the input frames you're feeding it are raw TFLAT_xxx frames, and also:
- order table(s) for each chip,
ORDER_TABLE_xxxx(wherexxxx=BLUE,REDL,REDU) - line table(s) for each chip,
LINE_TABLE_xxxx - a master bias frame,
MASTER_BIAS_xxxx - a master flat,
MASTER_FLAT_xxxx
that's the roster. no cap. π
π OPTIONS π
bestie there are a LOT of these and i'm not skipping a single one. every option also has a full name for the EsoRex configuration file, and i'm giving you both, because that's the whole point. π«Ά
--backsub.mmethod <str>β the background measuring method. if it'smedian, the background gets sampled using the median of a subwindow. if it'sminimum, it uses the subwindow's minimum value instead. if it'sno, no background subtraction happens at all. (type:str; default:median.) full name for the EsoRex config file:uves_cal_tflat.backsub.mmethod [default = median].--backsub.npoints <int>β the number of columns in interorder space that get used to sample the background. (type:int; default:82.) full name for the EsoRex config file:uves_cal_tflat.backsub.npoints [default = 82].--backsub.radiusy <int>β the height, in pixels, of the background sampling window, and it's(2*radiusy + 1). heads up: this parameter is not corrected for binning. (type:int; default:2.) full name for the EsoRex config file:uves_cal_tflat.backsub.radiusy [default = 2].--backsub.sdegree <int>β the degree of the interpolating splines. rn onlydegree = 1is supported. (type:int; default:1.) full name for the EsoRex config file:uves_cal_tflat.backsub.sdegree [default = 1].--backsub.smoothx <float>β if spline interpolation is being used to measure the background, the x-radius of the post-smoothing window is(smoothx * image_width). andimage_widthhere means the image width after binning. if it's negative, the default values kick in:(25.0/4096)for blue flat-field frames,(50.0/4096)for red flat-field frames,(300.0/4096)for blue science frames, and(300.0/4096)for red science frames. (type:float; default:-1.0.) full name for the EsoRex config file:uves_cal_tflat.backsub.smoothx [default = -1.0].--backsub.smoothy <float>β same deal but the y-axis: if spline interpolation is used to measure the background, the y-radius of the post-smoothing window is(smoothy * image_height), whereimage_heightis the image height after binning. if it's negative, defaults are used:(100.0/2048)for blue flat-field frames,(300.0/2048)for red flat-field frames,(200.0/2048)for blue science frames, and(500.0/2048)for red science frames. (type:float; default:-1.0.) full name for the EsoRex config file:uves_cal_tflat.backsub.smoothy [default = -1.0].--clean_traps <bool>β clean detector traps. ifTRUE, detector traps get interpolated. the bad pixels are replaced by the average of the nearest good pixels in the same column, or they're simply marked as bad. the positions of bad pixels are hard-coded (as a function of the UVES chip). (type:bool; default:False.) full name for the EsoRex config file:uves_cal_tflat.clean_traps [default = False].--debug <bool>β whether or not to save intermediate results to the local directory. (type:bool; default:False.) full name for the EsoRex config file:uves.debug [default = False].--norm_method <str>β the method used to build the master frame. (type:str; default:explevel.) full name for the EsoRex config file:uves_cal_tflat.norm_method [default = explevel].--plotter <str>β any plots the recipe makes get redirected to whatever command you put here. the plotting command must contain the substringgnuplot, and it has to be able to parse gnuplot syntax on its standard input. valid examples includegnuplot -persistandcat > mygnuplot$$.gp. if you want finer control over the plotting options, write an executable script β likemy_gnuplot.plβ that runs gnuplot after setting the gnuplot options you want (e.g.set terminal pslatex color). to turn plotting off completely, set this parameter tono. (type:str; default:no.) full name for the EsoRex config file:uves.plotter [default = no].--process_chip <str>β for RED arm data, process theredlchip, thereduchip, orboth. (type:str; default:both.) full name for the EsoRex config file:uves.process_chip [default = both].--reduce.backsub.mmethod <str>β background measuring method. if it'smedian, the background is sampled using the median of a subwindow. if it'sminimum, the subwindow minimum value is used. if it'sno, no background subtraction is done. (type:str; default:median.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.mmethod [default = median].--reduce.backsub.npoints <int>β the number of columns in interorder space used to sample the background. (type:int; default:82.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.npoints [default = 82].--reduce.backsub.radiusy <int>β the height (in pixels) of the background sampling window is(2*radiusy + 1). this parameter is not corrected for binning. (type:int; default:2.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.radiusy [default = 2].--reduce.backsub.sdegree <int>β degree of interpolating splines. currently onlydegree = 1is supported. (type:int; default:1.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.sdegree [default = 1].--reduce.backsub.smoothx <float>β if spline interpolation is used to measure the background, the x-radius of the post-smoothing window is(smoothx * image_width), whereimage_widthis the image width after binning. if negative, the defaults are:(25.0/4096)for blue flat-field frames,(50.0/4096)for red flat-field frames,(300.0/4096)for blue science frames and(300.0/4096)for red science frames. (type:float; default:-1.0.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.smoothx [default = -1.0].--reduce.backsub.smoothy <float>β if spline interpolation is used to measure the background, the y-radius of the post-smoothing window is(smoothy * image_height), whereimage_heightis the image height after binning. if negative, the defaults are:(100.0/2048)for blue flat-field frames,(300.0/2048)for red flat-field frames,(200.0/2048)for blue science frames and(500.0/2048)for red science frames. (type:float; default:-1.0.) full name for the EsoRex config file:uves_cal_tflat.reduce.backsub.smoothy [default = -1.0].--reduce.extract.best <bool>β (optimal extraction only) if false (fastest), the spectrum is extracted only once. if true (best), the spectrum gets extracted twice β the second time using improved variance estimates based on the first iteration. better variance estimates slightly improve the signal to noise you get, but at the cost of increased execution time. (type:bool; default:True.) full name for the EsoRex config file:uves_cal_tflat.reduce.extract.best [default = True].--reduce.extract.chunk <int>β in optimal extraction mode, the chunk size (in pixels) used for fitting the analytical profile. why? because fitting the analytical profile to single bins would suffer from low statistics. (type:int; default:32.) full name for the EsoRex config file:uves_cal_tflat.reduce.extract.chunk [default = 32].--reduce.extract.kappa <float>β in optimal extraction mode, this is the threshold for bad (i.e. hot/cold) pixel rejection. if a pixel deviates more thankappa*sigmafrom the inferred spatial profile (wheresigmais the uncertainty of the pixel flux), its weight gets set to zero. range:[-1,100]. if this parameter is negative, no rejection is performed. (type:float; default:10.0.) full name for the EsoRex config file:uves_cal_tflat.reduce.extract.kappa [default = 10.0].--reduce.extract.method <str>β extraction method. important caveats here bestie, read carefully:2d/optimalare not supported byuves_cal_wavecal,weightedis supported only byuves_cal_wavecal, and2dis not supported byuves_cal_response. (type:str; default:average.) full name for the EsoRex config file:uves_cal_tflat.reduce.extract.method [default = average].--reduce.extract.oversample <int>β the oversampling factor used for the virtual resampling algorithm. if negative, the value5is used for S/N<=200, and the value10is used if the estimated S/N is> 200. (type:int; default:-1.) full name for the EsoRex config file:uves_cal_tflat.reduce.extract.oversample [default = -1].--reduce.extract.profile <str>β okay so when you're in optimal extraction mode, this is the vibe of the profile you wanna use.gaussgives you a Gaussian profile.moffatgives you a Moffat profile with beta=4 plus a possible linear sky contribution.virtualuses a virtual resampling algorithm (like, it measures and then uses the actual object profile).constantassumes a constant spatial profile and lets you do optimal extraction of wavelength calibration frames.autowill automatically pick the best method based on the estimated S/N of the object. For low S/N,moffatorgaussare recommended (for robustness, bestie πͺ). For high S/N,virtualis recommended (for accuracy β¨). Heads up: with virtual resampling you need a precise determination of the order positions, so the order-definition gets repeated using the (assumed non-low S/N) science frame. (str; default:auto). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.extract.profile[default = auto].--reduce.extract.skymethod <str>β in optimal extraction mode, the sky subtraction method to use.medianestimates the sky as the median of pixels along the slit (ignoring pixels close to the object), whereasoptimaldoes a chi square minimization along the slit to obtain the best combined object and sky levels. The optimal method gives the most accurate sky determination but is also a bit slower than the median method (str; default:optimal). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.extract.skymethod[default = optimal].--reduce.ffmethod <str>β flat-fielding method, bestie. If you set it topixel, flat-fielding is done in pixel-pixel space (before extraction); if you set it toextract, flat-fielding is performed in pixel-order space (i.e. after extraction). If you set it tono, no flat-field correction is done at all β and in that casereduce.rebin.scaleshould be set to true to ensure flux conservation (both for response and science data) (str; default:extract). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.ffmethod[default = extract].--reduce.merge <str>β order merging method π«Ά. Ifoptimal, the flux in the overlapping region is set to the (optimally computed, using the uncertainties) average of single order spectra. Ifsum, the flux in the overlapping region is computed as the sum of the single order spectra. Ifnoappendthe spectrum is simply rebinned but not merged. If flat-fielding is done, methodoptimalis recommended, otherwisesum. (str; default:optimal). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.merge[default = optimal].--reduce.merge_delt1 <float>β order merging left hand (short wavelength) cut βοΈ. To reduce the amount of order overlapping regions we allow to cut short and long wavelength ranges. This may reduce the ripple possibly introduced by the order merging. Suggested values are: 10 (W<=390), 12 (390<W<=437, 520<W<=564), 14 (437<W<=520, 564<W) (float; default: 0.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.merge_delt1[default = 0.0].--reduce.merge_delt2 <float>β order merging right hand (long wavelength) cut βοΈ. To reduce the amount of order overlapping regions we allow to cut short and long wavelength ranges. This may reduce the ripple possibly introduced by the order merging. Suggested values is 4 (float; default: 0.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.merge_delt2[default = 0.0].--reduce.objoffset <float>β offset (in pixels) of extraction slit with respect to center of order. For optimal extraction the full slit is offset. For linear/average extraction,reduce.objoffsetis ignored ifreduce.objslit[default -1.0] is negative. In this case the offset is automatically determined by measuring the actual object position. (float; default: 0.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.objoffset[default = 0.0].--reduce.objslit <float>β object window size (in pixels), ignored for optimal extraction π. The value must be smaller than the total slit length. If negative, the default value (half of full slit length) is used. The upper and lower sky windows are defined as the part of the full slit (if any) outside the object window. The center of the object window is determined by the offset parameter. (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.objslit[default = -1.0].--reduce.rebin.scale <bool>β whether or not to multiply by the factor dx/dlambda (pixels per wavelength) during the rebinning to conserve the flux. This option is disabled as default because applying the flat field correction already ensures flux conservation. So like, this parameter should be TRUE (for response and science data) only ifreduce.ffmethd= no. (bool; default: False). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.rebin.scale[default = False].--reduce.rebin.wavestep <float>β the bin size used for BLUE/REDL data (in w.l.u.) in wavelength space. If negative, a step size of 2/3 * ( average pixel size ) is used. (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.rebin.wavestep[default = -1.0].--reduce.rebin.wavestep_redu <float>β the bin size used for REDU data (in w.l.u.) in wavelength space. If negative, a step size of 2/3 * ( average pixel size ) is used. (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.rebin.wavestep_redu[default = -1.0].--reduce.skysub <bool>β do sky-subtraction (only applicable to linear and average extractions)? (bool; default: False). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.skysub[default = False].--reduce.slitlength <float>β extraction slit length (in pixels). If negative, the value inferred from the raw frame header is used (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.slitlength[default = -1.0].--reduce.tiltcorr <bool>β if enabled (recommended π ), the provided dispersion solutions obtained at different slit positions are interpolated linearly at the actually measured position of the object/sky. Line tilt correction is currently not supported for 2d extraction, in which case the dispersion solution obtained at the middle of the slit is always used. (bool; default: True). The full name of this option for the EsoRex configuration file isuves_cal_tflat.reduce.tiltcorr[default = True].
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. π
π SEE ALSO π
The full documentation for the uves pipeline can be downloaded as a PDF file using the following URL:
ftp://ftp.eso.org/pub/dfs/pipelines/uves/uves-pipeline-manual-6.1.8.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 uves pipeline are flames_cal_mkmaster(7), flames_cal_orderpos(7), flames_cal_predict(7), flames_cal_prep_sff_ofpos(7), flames_cal_wavecal(7), flames_obs_redchain(7), flames_obs_scired(7), flames_utl_unpack(7), uves_cal_cd_align(7), uves_cal_mbias(7), uves_cal_mdark(7), uves_cal_mflat(7), uves_cal_mflat_combine(7), uves_cal_mkmaster(7), uves_cal_orderpos(7), uves_cal_predict(7), uves_cal_response(7), uves_cal_wavecal(7), uves_obs_redchain(7), uves_obs_scired(7), uves_utl_ima_arith(7), uves_utl_remove_crh_single(7).
π VERSION π
uves_cal_tflat 6.1.8
π AUTHOR π
Jonas M. Larsen <cpl@eso.org>
π BUG REPORTS π
Please report any problems to cpl@eso.org. Alternatively, you may send a report to the ESO User Support Department <usd-help@eso.org>.
π LICENSE π
This file is part of the FLAMES/UVES Pipeline Copyright (C) 2004, 2005, 2006, 2007 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!! π you just read uves_cal_tflat version 6.1.8, page UVES_CAL_TFLAT(7) β go forth and flat-field like the main character you are πβ¨π¦
π¦ where this page comes from
- debian bookworm: cpl-plugin-uves-doc 6.1.8+dfsg-2 Β· GPL-v2+
- ubuntu noble: cpl-plugin-uves-doc 6.1.8+dfsg-2build3 Β· GPL-v2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms