UVES_OBS_SCIRED(7)
UVES_OBS_SCIRED π β¨
okay bestie, welcome to the uves_obs_scired glow-up β this is section 7 of the manual (a recipe page, iykyk), and it is literally the whole entire vibe of reducing a science frame. grab a strawberry π and let's go.
πΈ NAME πΈ
uves_obs_scired β Reduces a science frame π
β¨ SYNOPSIS β¨
esorex uves_obs_scired [OPTIONS] FILE.sof
that's it. that's the whole entrance. esorex runs it, you feed it a .sof file, and she works. π
π¦ DESCRIPTION π¦
so this recipe reduces a science frame β and when I say "a science frame" I mean any one of these girlies: SCIENCE_BLUE or SCIENCE_RED, or SCI_POINT_BLUE or SCI_POINT_RED, or SCI_EXTND_BLUE or SCI_EXTND_RED or SCI_SLICER_BLUE or SCI_SLICER_RED. π
she does this using a combination of steps β which ones actually happen depends on the recipe parameters and which input frames you gave her, no cap:
- bias subtraction,
- dark subtraction,
- background subtraction,
- extraction/cosmic ray removal,
- flat field correction,
- wavelength rebinning,
- sky subtraction,
- order merging,
- response correction (if response curve is provided).
additional input for this recipe is: order table(s) for each chip, ORDER_TABLE_xxxx (where xxxx = 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, optionally an instrument response table, INSTR_RESPONSE_FINE_xxx, optionally an master response table, MASTER_RESPONSE_xxx, and optionally a table describing the atmospheric extinction, EXTCOEFF_TABLE.
for each chip (xxxx = BLUE, REDL, REDU) the recipe produces a combination of these products, and yes she is serving all of them:
RED_SCIENCE_xxxxβ Reduced science spectrumMERGED_SCIENCE_xxxxβ Merged spectrum, no sky subtractionWCALIB_SCIENCE_xxxxβ Extracted, wavelength calibrated frame in (wavelength, order) spaceWCALIB_FF_SCIENCE_xxxxβ Extracted, flat-fielded, wave.cal. frame in (wavelength, order) space (Only if flatfielding done)WCALIB_FLAT_OBJ_xxxxβ Extracted, wavelength calibrated flat field in (wavelength, order) space (Only if flatfielding done)ERRORBAR_SCIENCE_xxxxβ Error bars ofRED_SCIENCE_xxxxVARIANCE_SCIENCE_xxxxβ Variance of extracted, flatfielded object in (pixel, order) spaceORDER_TRACE_xxxxβ Table describing the spatial profileFLUXCAL_SCIENCE_xxxxβ Flux-calibrated science spectrumFLUXCAL_ERROR_xxxxβ Error bars ofFLUXCAL_SCIENCE_xxxxBKG_SCI_xxxxβ The subtracted background imageCRMASK_xxxxβ List of cosmic ray hitsMERGED_SKY_xxxxβ The merged sky spectrumEXT_2D_SCIENCE_xxxxβ The 2d extracted spectrumFF2D_SCIENCE_xxxxβ The 2d extracted, flat-fielded spectrumWCAL2D_SCIENCE_xxxxβ The 2d extracted, flat-fielded, wave.cal. spectrumMER2D_SCIENCE_xxxxβ The 2d reduced, flux-calibrated (if possible) science spectrum
okay so like, that's a LOT of output files and honestly? she ate. π½οΈ
π OPTIONS π
one bullet per option, bestie, we are not skipping a single one π«Ά
--clean_traps<bool> β Clean detector traps. IfTRUEdetector traps are interpolated. The bad pixels are replaced by the average of thenearest good pixels in the same column, or simply marked as bad. The positions of bad pixels are hard-coded (as function of UVES chip). (bool; default:False). The full name of this option for the EsoRex configuration file isuves_obs_scired.clean_traps[default =False].--debug<bool> β Whether or not to save intermediate results to local directory (bool; default:False). The full name of this option for the EsoRex configuration file isuves.debug[default =False].--plotter<str> β Any plots produced by the recipe are redirected to the command specified by this parameter. The plotting command must contain the substring Β΄gnuplotΒ΄ and must be able to parse gnuplot syntax on its standard input. Valid examples of such a command may include Β΄gnuplot -persistΒ΄ and Β΄cat > mygnuplot$$.gpΒ΄. A finer control of the plotting options can be obtained by writing an executable script, e.g.my_gnuplot.pl, that executes gnuplot after setting the desired gnuplot options (e.g.set terminal pslatex color). To turn off plotting, set this parameter to Β΄noΒ΄ (str; default: Β΄noΒ΄). The full name of this option for the EsoRex configuration file isuves.plotter[default =no].--process_chip<str> β For RED arm data process theredl,redu, or both chip(s) (str; default: Β΄bothΒ΄). The full name of this option for the EsoRex configuration file isuves.process_chip[default =both].--reduce.backsub.mmethod<str> β Background measuring method. If equal to Β΄medianΒ΄ the background is sampled using the median of a subwindow. If Β΄minimumΒ΄, the subwindow minimum value is used. If Β΄noΒ΄, no background subtraction is done. (str; default: Β΄medianΒ΄). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.backsub.mmethod[default =median].--reduce.backsub.npoints<int> β This is the number of columns in interorder space used to sample the background. (int; default:82). The full name of this option for the EsoRex configuration file isuves_obs_scired.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. (int; default:2). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.backsub.radiusy[default =2].--reduce.backsub.sdegree<int> β Degree of interpolating splines. Currently only degree =1is supported (int; default:1). The full name of this option for the EsoRex configuration file isuves_obs_scired.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). Here, Β΄image_widthΒ΄ is the image width after binning. If negative, the default values are used: (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. (float; default:-1.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.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). Here, Β΄image_heightΒ΄ is the image height after binning. If negative, the default values 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. (float; default:-1.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.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 is extracted twice, the second time using improved variance estimates based on the first iteration. Better variance estimates slightly improve the obtained signal to noise but at the cost of increased execution time (bool; default:True). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.extract.best[default =True].--reduce.extract.chunk<int> β In optimal extraction mode, the chunk size (in pixels) used for fitting the analytical profile (a fit of the analytical profile to single bins would suffer from low statistics). (int; default:32). The full name of this option for the EsoRex configuration file isuves_obs_scired.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*sigma(wheresigmais the uncertainty of the pixel flux) from the inferred spatial profile, its weight is set to zero. Range:[-1,100]. If this parameter is negative, no rejection is performed. (float; default:10.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.extract.kappa[default =10.0].--reduce.extract.method<str> β Extraction method. (2d/optimalnot supported byuves_cal_wavecal,weightedsupported only byuves_cal_wavecal,2dnot supported byuves_cal_response) (str; default: Β΄optimalΒ΄). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.extract.method[default =optimal].--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(int; default:-1). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.extract.oversample[default =-1].--reduce.extract.profile<str> β In optimal extraction mode, the kind of profile to use. Β΄gaussΒ΄ gives a Gaussian profile, Β΄moffatΒ΄ gives a Moffat profile withbeta=4and a possible linear sky contribution. Β΄virtualΒ΄ uses a virtual resampling algorithm (i.e. measures and uses the actual object profile). Β΄constantΒ΄ assumes a constant spatial profile and allows optimal extraction of wavelength calibration frames. Β΄autoΒ΄ will automatically select the best method based on the estimated S/N of the object. For low S/N, Β΄moffatΒ΄ or Β΄gaussΒ΄ are recommended (for robustness). For high S/N, Β΄virtualΒ΄ is recommended (for accuracy). In the case of virtual resampling, a precise determination of the order positions is required; therefore the order-definition is 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_obs_scired.reduce.extract.profile[default =auto].
okay bestie that's part 1 and I am NOT done yet β more of this page is coming, so stay perched π
--reduce.extract.skymethod <str>β bestie, in optimal extraction mode this is the sky subtraction method you're rolling with. Set it tomedianand the sky gets estimated as the median of the pixels along the slit (and it just like, ignores the pixels hanging out near the object, rude but fair). Set it tooptimaland it does a chi square minimization along the slit to get the best combined object + sky levels π . Theoptimalone gives you the most accurate sky determination ever, but it's also a lil slower thanmedian(str; default:optimal). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.extract.skymethod[default = optimal].--reduce.ffmethod <str>β flat-fielding method, the moment we've all been waiting for β¨. If you set it topixel, flat-fielding happens in pixel-pixel space (so, before extraction). If you set it toextract, flat-fielding gets performed in pixel-order space (i.e. after extraction, iykyk). And if you set it tono, there's no flat-field correction at all β in which casereduce.rebin.scaleshould be set to true to keep the flux conserved (both for response and science data) (str; default:extract). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.ffmethod[default = extract].--reduce.merge <str>β the order merging method π«Ά. If it'soptimal, the flux in the overlapping region gets set to the (optimally computed, using the uncertainties) average of single order spectra. If it'ssum, the flux in the overlapping region is computed as the sum of the single order spectra. If it'snoappendthe 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_obs_scired.reduce.merge[default = optimal].--reduce.merge_delt1 <float>β order merging left hand (short wavelength) cut βοΈ. So the whole point here: to reduce the amount of order overlapping regions, we're allowed to cut short and long wavelength ranges. This may reduce the ripple that might get introduced by the order merging (not the ripple, no). 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_obs_scired.reduce.merge_delt1[default = 0.0].--reduce.merge_delt2 <float>β order merging right hand (long wavelength) cut βοΈ same energy, other side. Again, to reduce the amount of order overlapping regions we allow cutting short and long wavelength ranges, and this may reduce the ripple possibly introduced by the order merging. Suggested values is4(float; default: 0.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.merge_delt2[default = 0.0].--reduce.objoffset <float>β offset (in pixels) of the extraction slit with respect to the 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 β and in that case the offset is automatically determined by measuring the actual object position (she measures, she provides). (float; default: 0.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.objoffset[default = 0.0].--reduce.objslit <float>β object window size (in pixels), and it's ignored for optimal extraction, so don't even worry about it there. The value must be smaller than the total slit length. If it's 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, and 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_obs_scired.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 therefore 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_obs_scired.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 it's negative, a step size of2/3 * ( average pixel size )is used. (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.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 it's negative, a step size of2/3 * ( average pixel size )is used. (float; default: -1.0). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.rebin.wavestep_redu[default = -1.0].--reduce.skysub <bool>β do sky-subtraction? (only applicable to linear and average extractions, bestie) (bool; default: True). The full name of this option for the EsoRex configuration file isuves_obs_scired.reduce.skysub[default = True].--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_obs_scired.reduce.slitlength[default = -1.0].--reduce.tiltcorr <bool>β if enabled (recommended, and yes bestie it is the vibe), 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_obs_scired.reduce.tiltcorr[default = True].
Okay and one more lil note before we move on: 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_tflat(7), uves_cal_wavecal(7), uves_obs_redchain(7), uves_utl_ima_arith(7), uves_utl_remove_crh_single(7) β the whole squad, fr fr π
π« VERSION π«
uves_obs_scired 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 a wrap bestie!! π this whole page is uves_obs_scired version 6.1.8, dated 6.1.8 (the man page footer keeps it real with the recipe name on the left, the version in the middle and UVES_OBS_SCIRED(7) on the right) β slay, go read your spectra πβ¨
π¦ 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