FLAMES_CAL_WAVECAL(7)
π FLAMES_CAL_WAVECAL π
okay so bestie, gather round, because this is the flames_cal_wavecal manual page from the uves recipes section, and it's a big one β so big it comes in two parts. This is part one. Buckle up. π
β¨ NAME β¨
flames_cal_wavecal β performs the wavelength calibration. That's it, that's the whole job. Slay. π
π SYNOPSIS π
esorex flames_cal_wavecal [OPTIONS] FILE.sof
π¦ DESCRIPTION π¦
So what's actually happening here? The recipe performs a wavelength calibration for each extraction window. Yes. Each. One. π€
Conceptually (love a conceptual moment), each chip contains a number of order lines, each of which contains a number of fibre traces, each of which contains a number of extraction windows. It's giving nesting dolls, fr fr. For FLAMES/UVES data there are multiple traces per order but only one extraction window per trace. π«Ά
The number of traces is defined in the order table, while the geometry of the extraction windows is specified by recipe parameters (see below, bestie, keep scrolling). β¨
π Expected input
Expected input for this recipe is:
- an arc lamp frame,
FIB_ARC_LAMP_RED FIB_ORDEF_TABLE_(REDL|REDU)Β΄guessΒ΄line table(s) for each chip,FIB_LIN_GUE_(REDL|REDU)- a wavelength catalogue table,
LINE_REFER_TABLE - and optionally a wavelength table of bright lines,
LINE_INTMON_TABLE, used only for computing Quality Control parameters
π The output line table
The output line table(s), FIB_LINE_TABLE_(REDL|REDU), contains the following columns β and I'm listing every single one, no skips, no cap:
Xβ Horizontal position (from Gaussian fit) of detected linedXβ Uncertainty (one sigma) ofXYnewβ Vertical position of detected lineXWidthβ Width (in pixels) of detected line from Gaussian fitPeakβ Intensity of detected lineBackgroundβ Fitted background (ADU) of detected lineSlopeβ Linear background slope (ADU/pixel) of detected line from Gaussian fitIntensityβ Intensity of detected line scaled to unit exposure time. (This column only present if aLINE_INTMON_TABLEis provided.)Orderβ Absolute order number of detected lineYβ Relative order number of detected line (itΒ΄s not a very descriptive column name π)WaveCβ Wavelength of this line (computed using the resulting dispersion relation)dLambdaCβ Uncertainty (one sigma) ofΒ΄WaveCΒ΄Pixelβ The width in w.l.u. of a pixel (computed locally)Residualβ Residual (in w.l.u.) of this lineResidual_pixβ Residual (in pixels) of this lineLambda_candidateβ Nearest line in cataloguedLambda_cat_sqβ Squared distance to nearest catalogue linedLambda_nn_sqβ Squared distance to nearest neighbour multiplied byALPHAIdentβ The wavelength associated with this emission line, or invalid if this line was not identifieddIdentβ Uncertainty of catalogue wavelengthSelectβ1if the line was identified,0otherwiseNLinSolβ1if the line was identified and accepted for the polynomial fit,0otherwiseIntensityβ Intensity of detected line scaled to unit exposure time. (This column is present only if aLINE_INTMON_TABLEis provided.)
π The other extensions
The 2nd table extension contains the dispersion relation (a 2d polynomial). Iconic.
The 3rd table extension contains the map from (pixel, pixel)-space to physical order numbers (used internally by the calibration recipe; another 2d polynomial). Two polynomials, two extensions, very main character energy. β¨
If there is more than one extraction window, the results of each calibration is stored in subsequent table extensions of the same FITS file. For example, extensions 4, 5 and 6 would contain the resulting line table (and its two associated polynomials) for the second extraction window.
The results for the calibration of the nΒ΄th extraction window is stored in extensions(3*n - 2)to3*n. Write that down. Tattoo it. π
π OPTIONS π
π Identification & polynomial vibes
--alpha<float>β The parameter that controls the distance to the nearest neighbours (float; default:0.1). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.identify.alpha[default =0.1].--degree<int>β Degrees of the global 2d dispersion polynomial. If a negative number is specified, the polynomial degrees are automatically selected by starting from(1, 1)and inreasing the degrees as long as the RMS residual decreases significantly (int; default:4). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.identify.degree[default =4].--kappa<float>β Lines with residuals more thenkappastdev are rejected from the final fit (float; default:4.0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.calibrate.kappa[default =4.0].--maxerror<float>β This parameter controls the graceful exit of the identification loop. If the RMS of the global fit exceeds this value (pix) the iteration stops (float; default:20.0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.identify.maxerror[default =20.0].
πΈ Line searching
--maxlines<int>β Maximum number of lines to detect. If zero, the default value (1600for BLUE/REDL chip;1400for REDU chip) is used. (int; default:0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.search.maxlines[default =0].--minlines<int>β Minimum number of lines to detect. If zero, the default value (1100for BLUE/REDL chips;1000for REDU chip) is used. (int; default:0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.search.minlines[default =0].
π§ Extraction windows geometry
--length<float>β Length (in pixels) of each extraction window. This parameter is also equal to the seperation of adjacent window centers, causing the extraction windows to always be aligned. The parameter is automatically adjusted according to the binning of the input raw frame. If negative, the extraction window length is determined automatically to cover the full slit (float; default:7.0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.length[default =7.0].--nwindows<int>β Number of extraction windows per trace. The windows will be aligned (i.e. no overlap and no spacing between adjacent windows). Unless an offset is specified, the middle window(s) is centered on the trace (int; default:1). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.nwindows[default =1].--offset<float>β A global offset (in pixels) of all extraction windows (float; default:0.0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.offset[default =0.0].
π₯ Extraction behaviour
--extract.best<bool>β (optimal extraction only) Iffalse(fastest), the spectrum is extracted only once. Iftrue(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 isflames_cal_wavecal.extract.best[default =True].--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 isflames_cal_wavecal.extract.chunk[default =32].--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(where sigma is 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 isflames_cal_wavecal.extract.kappa[default =10.0].--extract.method<str>β Extraction method. (2d/optimalnot supported byuves_cal_wavecal,weightedsupported only byuves_cal_wavecal,2dnot supported byuves_cal_response) (str; default:Β΄averageΒ΄). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.extract.method[default =average].--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 isflames_cal_wavecal.extract.oversample[default =-1].--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 isflames_cal_wavecal.extract.profile[default =auto].--extract.skymethod<str>β In optimal extraction mode, the sky subtraction method to use.Β΄medianΒ΄estimates the sky as the median of pixels along the slit (ignoring pixels close to the object), whereasΒ΄optimalΒ΄does 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 isflames_cal_wavecal.extract.skymethod[default =optimal].
β Debug
--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].
okay bestie that's the first chunk and there is more where that came fromβ¦ π
--plotter <str>β Any plots the recipe makes get redirected to the command you drop here. The plotting command must contain the substringgnuplotand must be able to parse gnuplot syntax on its standard input. Valid examples of such a command may includegnuplot -persistandcat > 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 tono(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].--range <int>β Width (pix) of search window is2*range + 1. This parameter is automatically adjusted according to binning. (int; default:8). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.search.range [default = 8].--rebin.scale <bool>β Whether or not to multiply by the factordx/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. Therefore this parameter should beTRUE(for response and science data) only ifreduce.ffmethd = no. (bool; default:False). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.rebin.scale [default = False].--rebin.wavestep <float>β The bin size used for BLUE/REDL data (in w.l.u.) in wavelength space. If 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 isflames_cal_wavecal.rebin.wavestep [default = -1.0].--rebin.wavestep_redu <float>β The bin size used for REDU data (in w.l.u.) in wavelength space. If 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 isflames_cal_wavecal.rebin.wavestep_redu [default = -1.0].--shiftmax <float>β The maximum shift (pix) in either direction compared to guess solution. This parameter is automatically corrected for binning (float; default:10.0). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.first.shiftmax [default = 10.0].--shiftstep <float>β The step size (pix) used when searching for the optimum shift. This parameter is automatically corrected for binning (float; default:0.1). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.first.shiftstep [default = 0.1].--shifttoler <float>β Tolerance (pix) when matching shifted lines. This parameter is not adjusted according to binning (float; default:0.05). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.first.shifttoler [default = 0.05].--tolerance <float>β Tolerance of fit. If positive, the tolerance is in pixel units. If negative,abs(tolerance)is in wavelength units. Lines with residuals worse than the tolerance are excluded from the final fit. Unlike in previous versions, this parameter is not corrected for CCD binning. This rejection based on the absolute residual in pixel can be effectively disabled by setting the tolerance to a very large number (e.g.9999). In that case outliers will be rejected using only kappa sigma clipping. (float; default:0.6). The full name of this option for the EsoRex configuration file isflames_cal_wavecal.calibrate.tolerance [default = 0.6].
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_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_obs_scired(7), uves_utl_ima_arith(7), uves_utl_remove_crh_single(7)
π VERSION π
flames_cal_wavecal 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
That's the whole page, bestie β flames_cal_wavecal version 6.1.8, page FLAMES_CAL_WAVECAL(7), and that's the footer energy. π«Άβ¨π
π¦ 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