FLAMES_OBS_REDCHAIN(7)
๐ FLAMES_OBS_REDCHAIN(7) ๐
okay bestie, welcome to the uves recipes manual page for flames_obs_redchain โจ this is part 1 of 5, so we are not signing off, we are just getting started. Grab a snack ๐ and let's get into the lore.
โจ NAME โจ
flames_obs_redchain โ runs the full UVES-FIBRE reduction chain ๐
๐ฆ SYNOPSIS ๐ฆ
esorex flames_obs_redchain [OPTIONS] FILE.sof
๐ DESCRIPTION ๐
okay so this recipe does a complete science reduction ๐ฅ. It runs all the necessary calibration recipes depending on the availability of raw/processed calibration frames, periodt.
Input frames are all UVES-FIBER raw and reference frames: formatchecks, FIB_ARC_LAMP_FORM_RED, order definition frames, FIB_ORDER_FLAT_RED, biases, BIAS_RED, darks, DARK_RED, flats, SFLAT_RED, arc lamps, FIB_ARC_LAMP_RED, standard stars, FIB_STANDARD_RED, 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.
Also a reference standard star flux table, FLUX_STD_TABLE, and a table describing the atmospheric extintion, EXTCOEFF_TABLE ๐ธ.
Optionally, science frames: SCIENCE_xxx, or UVES_SCI_POINT_xxx, or UVES_SCI_EXTND_xxx, or UVES_SCI_SLICER_xxx โจ.
For further details on the data reduction and the input frame types, refer to the man page of the individual recipes, bestie ๐ซถ.
๐ OPTIONS ๐
--debug <bool>โ whether or not to save intermediate results to local directory. It's abool; default:False. The full name of this option for the EsoRex configuration file isuves.debug [default = False]. ๐พ--flames_cal_orderpos.backsubdegx <int>โ degree (in x) of polynomial used to estimate the background (mode=poly). It's anint; default:2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.backsubdegx [default = 2]. โจ--flames_cal_orderpos.backsubdegy <int>โ degree (in y) of polynomial used to estimate the background (mode=poly). It's anint; default:2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.backsubdegy [default = 2]. โจ--flames_cal_orderpos.backsubgrid <int>โ number of grid points (in x- and y-direction) used to estimate the background (mode=poly). It's anint; default:50. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.backsubgrid [default = 50]. ๐--flames_cal_orderpos.backsubkappa <float>โ the value of kappa in the one-sided kappa-sigma clipping used to estimate the background (mode=poly). It's afloat; default:4.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.backsubkappa [default = 4.0]. ๐ง--flames_cal_orderpos.backsubradiusy <int>โ the height (in pixels) of the background sampling window is(2*radiusy + 1). This parameter is not corrected for binning. It's anint; default:2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.backsubradiusy [default = 2]. ๐--flames_cal_orderpos.defpol1 <int>โ the degree of the bivarite fit (cross dispersion direction). If negative, the degree is optimized to give the best fit. It's anint; default:-1. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.reject.defpol1 [default = -1]. ๐ฆ--flames_cal_orderpos.defpol2 <int>โ the degree of the bivarite fit (order number). If negative, the degree is optimized to give the best fit. It's anint; default:-1. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.reject.defpol2 [default = -1]. ๐ฆ--flames_cal_orderpos.kappa <float>โ used for kappa-sigma clipping of the final polynomial fit. If negative, no clipping is done. It's afloat; default:4.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.reject.kappa [default = 4.0]. โ๏ธ--flames_cal_orderpos.maxgap <float>โ if the order line drops below detection threshold, the order tracing algorithm will try to jump a gap of maximum sizeยดmaxgapยดmultiplied by the image width. It's afloat; default:0.2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.trace.maxgap [default = 0.2]. ๐ณ๏ธ--flames_cal_orderpos.maxrms <float>โ when fitting the orders with straight lines, this is the maximum allowed RMS relative to the median RMS of all orders. It's afloat; default:100.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.reject.maxrms [default = 100.0]. ๐--flames_cal_orderpos.maxslope <float>โ maximum possible line slope. It's afloat; default:0.2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.hough.maxslope [default = 0.2]. ๐--flames_cal_orderpos.minslope <float>โ minimum possible line slope. This should be theยดphysicalยดslope on the chip, i.e. not taking binning factors into account, which is handled by the recipe. It's afloat; default:0.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.hough.minslope [default = 0.0]. ๐--flames_cal_orderpos.minthresh <float>โ the minimum threshold value is(min + minthres*(max - min)). Hereยดminยดandยดmaxยดare the lowest and highest pixel values in the central bin of the order. It's afloat; default:0.2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.trace.minthresh [default = 0.2]. ๐--flames_cal_orderpos.mmethod <str>โ background subtraction method. If equal toยดmedianยด, the background is sampled using the median of a sub-window. Ifยดminimumยด, the minimum sub-window value is used. Ifยดnoยด, no background subtraction is done. It's astr; default:ยดmedianยด. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.mmethod [default = median]. ๐งผ--flames_cal_orderpos.pthres <float>โ in automatic mode, or if the number of orders to detect is read from a guess table, the detection of new lines stops when the intensity of a candidate line drops to less thanยดpthresยดtimes the intensity of the previous detection. It's afloat; default:0.2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.hough.pthres [default = 0.2]. ๐--flames_cal_orderpos.radx <int>โ half X size of median filtering window. It's anint; default:2. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.radx [default = 2]. ๐ธ--flames_cal_orderpos.rady <int>โ half Y size of median filtering window. It's anint; default:1. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.rady [default = 1]. ๐ธ--flames_cal_orderpos.samplewidth <int>โ separation of sample traces (used by Hough transform) in input image. It's anint; default:50. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.hough.samplewidth [default = 50]. ๐--flames_cal_orderpos.sloperes <int>โ resolution (width in pixels) of Hough space. It's anint; default:120. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.hough.sloperes [default = 120]. โจ--flames_cal_orderpos.tracestep <int>โ the step size used when tracing the orders. It's anint; default:10. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.trace.tracestep [default = 10]. ๐ฃ--flames_cal_orderpos.use_guess_tab <int>โ if a Guess order table is provided, this parameter sets how it is used:0: No usage,1: use it to set lower/upper Y raws where order are searched,2: the order table try to fully match the guess. It's anint; default:1. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_orderpos.preproc.use_guess_tab [default = 1]. ๐ฎ--flames_cal_predict.ccd_rot_angle_off <float>โ offset on CCD rotation angle. It's afloat; default:0.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.ccd_rot_angle_off [default = 0.0]. ๐--flames_cal_predict.cd_angle_off <float>โ offset on cross disperser angle. It's afloat; default:0.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.cd_angle_off [default = 0.0]. ๐--flames_cal_predict.compute_regression_sw <bool>โ compute regression? It's abool; default:True. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.compute_regression_sw [default = True]. ๐--flames_cal_predict.def_pol1 <int>โ polynomial X deg. It's anint; default:4. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.def_pol1 [default = 4]. ๐งฎ--flames_cal_predict.def_pol2 <int>โ polynomial Y deg. It's anint; default:5. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.def_pol2 [default = 5]. ๐งฎ--flames_cal_predict.ech_angle_off <float>โ offset on echelle angle. It's afloat; default:0.0. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.ech_angle_off [default = 0.0]. ๐--flames_cal_predict.kappa <float>โ kappa value in kappa sigma clipping on RESIDUAL between YFIT and Y columns. It's afloat; default:4.5. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.kappa [default = 4.5]. โ๏ธ--flames_cal_predict.mbox_x <int>โ match box X size. It's anint; default:40. The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_cal_predict.mbox_x [default = 40]. ๐ฆ
okay bestie we're still in the options, stay with me, we're almost through theflames_cal_predictandflames_cal_prep_sff_ofposchunks and then it's wavecal hours โจ
--flames_cal_predict.mbox_y <int>โ the match box Y size, so like how tall the little box is that we go matching in. Takes an int, default is 40. EsoRex config file full name:flames_obs_redchain.flames_cal_predict.mbox_y[default = 40].--flames_cal_predict.tol <float>โ the tolerance for kappa sigma clipping on the RESIDUAL between theYFITandYcolumns. Takes a float, default is 2.0. EsoRex config file full name:flames_obs_redchain.flames_cal_predict.tol[default = 2.0].--flames_cal_predict.trans_x <float>โ detector translation along X, literally just nudging the detector sideways. Takes a float, default is 0.0. EsoRex config file full name:flames_obs_redchain.flames_cal_predict.trans_x[default = 0.0].--flames_cal_predict.trans_y <float>โ same energy but along Y, detector translation up/down. Takes a float, default is 0.0. EsoRex config file full name:flames_obs_redchain.flames_cal_predict.trans_y[default = 0.0].
๐งผ the flames_cal_prep_sff_ofpos era ๐งผ
--flames_cal_prep_sff_ofpos.bias_method <str>โ which bias subtraction method we're doing.Mfor master bias frame,Nfor no bias subtraction at all,Vto subtract a constant bias level defined by thebias_valueparameter. Takes a str, default isM. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.bias_method[default = M].--flames_cal_prep_sff_ofpos.bias_value <int>โ the bias value, and heads up, this one only applies ifbias_method = V. Takes an int, default is 200. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.bias_value[default = 200].--flames_cal_prep_sff_ofpos.clean_tmp_products <bool>โ described as "Input data format", which is a whole vibe, but that's what it says. Takes a bool, default is False. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.clean_tmp_products[default = False].--flames_cal_prep_sff_ofpos.cubify <bool>โ the cubify switch. Flip it, cubes happen. Takes a bool, default is True. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.cubify[default = True].--flames_cal_prep_sff_ofpos.ext_method <str>โ the extraction method. Takes a str, default isopt. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.ext_method[default = opt].--flames_cal_prep_sff_ofpos.fileprep <bool>โSlitff*andFibreff*file preparation. โ ๏ธ bestie listen: if the fast extraction method is used, this should be set toFALSE. Takes a bool, default is True. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.fileprep[default = True].--flames_cal_prep_sff_ofpos.filter_switch <str>โ the filter switch. Takes a str, default isnone. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.filter_switch[default = none].--flames_cal_prep_sff_ofpos.sat_thr <int>โ saturation threshold, i.e. the number where we're like "ok that pixel is cooked". Takes an int, default is 55000. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.sat_thr[default = 55000].--flames_cal_prep_sff_ofpos.save_flat_size <int>โ to be sure you use the flat part of a slit flat, you may need to subtract this bit. The default value -1 is used for automatic setting: ifWCEN=520thensave_flat_size=0, elsesave_flat_size=2. And values explicitly set by the user overwrite this rule. Takes an int, default is -1. EsoRex config file full name:flames_obs_redchain.flames_cal_prep_sff_ofpos.save_flat_size[default = -1].
๐ the flames_cal_wavecal chapter, aka the main character ๐
--flames_cal_wavecal.alpha <float>โ the parameter that controls the distance to the nearest neighbours. Takes a float, default is 0.1. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.identify.alpha[default = 0.1].--flames_cal_wavecal.degree <int>โ degrees of the global 2d dispersion polynomial. And ooh, if you specify a negative number, the polynomial degrees get auto-selected by starting from(1, 1)and increasing the degrees as long as the RMS residual decreases significantly. Takes an int, default is 4. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.identify.degree[default = 4].--flames_cal_wavecal.extract.best <bool>โ optimal extraction only, bestie. If false (the fastest option), the spectrum is extracted only once. If true (the best option), 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. Takes a bool, default is True. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.best[default = True].--flames_cal_wavecal.extract.chunk <int>โ in optimal extraction mode, the chunk size (in pixels) used for fitting the analytical profile, because apparently fitting the analytical profile to single bins would suffer from low statistics. Takes an int, default is 32. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.chunk[default = 32].--flames_cal_wavecal.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. Takes a float, default is 10.0. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.kappa[default = 10.0].--flames_cal_wavecal.extract.method <str>โ the extraction method. Important receipts here:2d/optimalare not supported byuves_cal_wavecal,weightedis supported only byuves_cal_wavecal, and2dis not supported byuves_cal_response. Takes a str, default isaverage. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.method[default = average].--flames_cal_wavecal.extract.oversample <int>โ the oversampling factor used for the virtual resampling algorithm. If negative, the value 5 is used for S/N <=200, and the value 10 is used if the estimated S/N is > 200. Takes an int, default is -1. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.oversample[default = -1].--flames_cal_wavecal.extract.profile <str>โ in optimal extraction mode, the kind of profile to use.gaussgives a Gaussian profile.moffatgives a Moffat profile withbeta=4and a possible linear sky contribution.virtualuses a virtual resampling algorithm (i.e. it measures and uses the actual object profile).constantassumes a constant spatial profile and allows optimal extraction of wavelength calibration frames.autowill automatically select the best method based on the estimated S/N of the object. For low S/N,moffatorgaussare recommended (for robustness). For high S/N,virtualis recommended (for accuracy). In the case of virtual resampling, a precise determination of the order positions is required, so the order-definition is repeated using the (assumed non-low S/N) science frame. Takes a str, default isauto. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.profile[default = auto].--flames_cal_wavecal.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. Takes a str, default isoptimal. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.extract.skymethod[default = optimal].--flames_cal_wavecal.kappa <float>โ lines with residuals more than kappa stdev get rejected from the final fit. bye felicia ๐ Takes a float, default is 4.0. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.calibrate.kappa[default = 4.0].--flames_cal_wavecal.length <float>โ length (in pixels) of each extraction window. This parameter is also equal to the separation of adjacent window centers, which causes 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. Takes a float, default is 7.0. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.length[default = 7.0].--flames_cal_wavecal.maxerror <float>โ this parameter controls the graceful exit of the identification loop. If the RMS of the global fit exceeds this value (in pix), the iteration stops. Takes a float, default is 20.0. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.identify.maxerror[default = 20.0].--flames_cal_wavecal.maxlines <int>โ maximum number of lines to detect. If zero, the default value is used, and those defaults are 1600 for the BLUE/REDL chip and 1400 for the REDU chip. Takes an int, default is 0. EsoRex config file full name:flames_obs_redchain.flames_cal_wavecal.search.maxlines[default = 0].--flames_cal_wavecal.minlines <int>โ bestie, this is the minimum number of lines we're willing to accept for detection. If you set it to zero, we just fall back to the default: 1100 for BLUE/REDL chips, and 1000 for the REDU chip. It's anint, default0. EsoRex config file name, full and unhinged:flames_obs_redchain.flames_cal_wavecal.search.minlines [default = 0].--flames_cal_wavecal.nwindows <int>โ how many extraction windows per trace, queen. And the windows are aligned โ no overlap, no gaps between neighbours, they're all sitting shoulder to shoulder ๐ . Unless you hand over an offset, the middle window(s) gets centered right on the trace. It's anint, default1. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.nwindows [default = 1].--flames_cal_wavecal.offset <float>โ a global offset, in pixels, applied to all the extraction windows. It's afloat, default0.0. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.offset [default = 0.0].--flames_cal_wavecal.range <int>โ the width of the search window in pixels is2*range + 1. And heads up, this one gets auto-adjusted according to binning, it's not just gonna sit there static. It's anint, default8. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.search.range [default = 8].--flames_cal_wavecal.rebin.scale <bool>โ okay so this is a yes/no: do we multiply by the factordx/dlambda(pixels per wavelength) while rebinning, to conserve flux? And the answer by default is no, because applying the flat field correction already conserves flux for us โ no cap ๐ซถ. So this parameter should only beTRUE(for response and science data, bestie) ifreduce.ffmethd = no. It's abool, defaultFalse. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.rebin.scale [default = False].--flames_cal_wavecal.rebin.wavestep <float>โ the bin size used for BLUE/REDL data, measured in w.l.u. in wavelength space โจ. If it's negative, a step size of2/3 * ( average pixel size )gets used instead. It's afloat, default-1.0. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.rebin.wavestep [default = -1.0].--flames_cal_wavecal.rebin.wavestep_redu <float>โ literally the same energy as the one above, except this bin size (in w.l.u., in wavelength space) is the one used for REDU data ๐ฆ. If negative,2/3 * ( average pixel size )steps in. It's afloat, default-1.0. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.rebin.wavestep_redu [default = -1.0].--flames_cal_wavecal.shiftmax <float>โ the maximum shift, in pixels, in either direction compared to the guess solution. Auto-corrected for binning, because of course it is. It's afloat, default10.0. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.first.shiftmax [default = 10.0].--flames_cal_wavecal.shiftstep <float>โ the step size, in pixels, used when hunting for the optimum shift ๐. Also auto-corrected for binning. It's afloat, default0.1. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.first.shiftstep [default = 0.1].--flames_cal_wavecal.shifttoler <float>โ the tolerance, in pixels, for matching shifted lines. And plot twist: this one is not adjusted according to binning, unlike its little friends above. It's afloat, default0.05. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.first.shifttoler [default = 0.05].--flames_cal_wavecal.tolerance <float>โ the tolerance of the fit, and here's the vibe: if it's positive, the tolerance is in pixel units. If it's negative, thenabs(tolerance)is in wavelength units. Lines whose residuals are worse than the tolerance get yeeted from the final fit ๐. And not like the previous versions, this parameter is not corrected for CCD binning. If you wanna effectively disable this whole absolute-residual-in-pixel rejection situation, set the tolerance to a very large number (like9999) โ then outliers only get rejected using kappa sigma clipping. It's afloat, default0.6. EsoRex config name:flames_obs_redchain.flames_cal_wavecal.calibrate.tolerance [default = 0.6].
okay and now we pivot into a whole different prefix, flames_obs_scired, stay with me bestie ๐
--flames_obs_scired.bias_method <str>โ the bias subtraction method. It's astr, defaultยดMยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.bias_method [default = M].--flames_obs_scired.bias_value <int>โ the bias value, and heads up, this only matters ifbias_method = V. It's anint, default200. EsoRex config name:flames_obs_redchain.flames_obs_scired.bias_value [default = 200].--flames_obs_scired.bkg_max_io_win <int>โ background window number in each full inter order. It's anint, default500. EsoRex config name:flames_obs_redchain.flames_obs_scired.bkg_max_io_win [default = 500].--flames_obs_scired.bkg_xy_win_sz_x <int>โ the x maximum size of each background window. It's anint, default6. EsoRex config name:flames_obs_redchain.flames_obs_scired.bkg_xy_win_sz_x [default = 6].--flames_obs_scired.bkg_xy_win_sz_y <int>โ the y maximum size of each background window. It's anint, default2. EsoRex config name:flames_obs_redchain.flames_obs_scired.bkg_xy_win_sz_y [default = 2].--flames_obs_scired.clean_tmp_products <bool>โ the description literally just says "Input data format" (iconic of it tbh), and it's abool, defaultFalse. EsoRex config name:flames_obs_redchain.flames_obs_scired.clean_tmp_products [default = False].--flames_obs_scired.cor_def_off <float>โ correlation center offset? (the question mark is the original's, I'm just the messenger ๐). It's afloat, default0.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.cor_def_off [default = 0.0].--flames_obs_scired.cor_def_pnt <int>โ correlation sampling points? Again, question mark is theirs. It's anint, default25. EsoRex config name:flames_obs_redchain.flames_obs_scired.cor_def_pnt [default = 25].--flames_obs_scired.cor_def_rng <float>โ correlation range size? Yes bestie, question mark. It's afloat, default6.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.cor_def_rng [default = 6.0].--flames_obs_scired.cor_max_fnd <str>โ find correlation maximum? It's astr, defaultยดYยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.cor_max_fnd [default = Y].--flames_obs_scired.corvel_iter <int>โ velocity correlation iteration number (SimCal). It's anint, default1. EsoRex config name:flames_obs_redchain.flames_obs_scired.corvel_iter [default = 1].--flames_obs_scired.cubify_sw <str>โ the cubify switch. It's astr, defaultยดNยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.cubify_sw [default = N].--flames_obs_scired.drs_base_name <str>โ base name for science products. It's astr, defaultยดfxbยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.drs_base_name [default = fxb].--flames_obs_scired.drs_ext_w_siz <float>โ integration window size, and the original says good:10, that's the value if fibre deconvolution works fine. It's afloat, default10.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.drs_ext_w_siz [default = 10.0].--flames_obs_scired.drs_k_s_thre <float>โ the kappa sigma threshold. It's afloat, default10.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.drs_k_s_thre [default = 10.0].--flames_obs_scired.drs_maxyshift <float>โ the half width of the interval to scan for correlation, used when determining the y shift. It's afloat, default3.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.drs_maxyshift [default = 3.0].--flames_obs_scired.ext_method <str>โ the extraction method. It's astr, defaultยดoptยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.ext_method [default = opt].--flames_obs_scired.filt_sw <str>โ the filter switch. It's astr, defaultยดnoneยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.filt_sw [default = none].--flames_obs_scired.merge <str>โ the order merging method, and this one actually has lore ๐. If it'sยดoptimalยด, the flux in the overlapping region gets set to the (optimally computed, using the uncertainties) average of single order spectra. If it'sยดsumยด, the flux in that overlapping region is just computed as the sum of the single order spectra. And the tea: if flat-fielding is done, methodยดoptimalยดis the recommended one โ otherwise goยดsumยด. It's astr, defaultยดoptimalยด. EsoRex config name:flames_obs_redchain.flames_obs_scired.merge [default = optimal].--flames_obs_scired.merge_delt1 <float>โ the order merging left hand (short wavelength) cut. So basically, to reduce the amount of order overlapping regions, we're allowed to cut short and long wavelength ranges โ and that may reduce the ripple that order merging possibly introduces. The suggested values are:10(W<=390),12(390<W<=437, 520<W<=564),14(437<W<=520, 564<W<860),4(W>=860). It's afloat, default-1.0. EsoRex config name:flames_obs_redchain.flames_obs_scired.merge_delt1 [default = -1.0].--flames_obs_scired.merge_delt2 <float>โ this is the order-merging right hand (long wavelength) cut. The way it works is we're allowed to chop the short and long wavelength ranges short, and that shrinks the amount of order-overlapping regions, which lowkey might tone down the ripple that order merging can sneak in. Suggested value is4for W<860, otherwise0. (float; default:-1.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_obs_scired.merge_delt2 [default = -1.0].--flames_obs_scired.pixel_thresh_max <int>โ pixel saturation threshold max, no cap. (int; default:55000). The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_obs_scired.pixel_thresh_max [default = 55000].--flames_obs_scired.pixel_thresh_min <int>โ pixel saturation threshold min. (int; default:-20). The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_obs_scired.pixel_thresh_min [default = -20].--flames_obs_scired.rebin.scale <bool>โ do we multiply by the factordx/dlambda(that's pixels per wavelength) during the rebinning to conserve the flux, or not ๐ญ. This one is disabled by default bc applying the flat field correction already handles flux conservation, so honestly it's covered. Which means 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_obs_redchain.flames_obs_scired.rebin.scale [default = False].--flames_obs_scired.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 )gets used. (float; default:-1.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.flames_obs_scired.rebin.wavestep [default = -1.0].--flames_obs_scired.rebin.wavestep_redu <float>โ same energy but for REDU data: the bin size in wavelength space (in w.l.u.). 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_obs_redchain.flames_obs_scired.rebin.wavestep_redu [default = -1.0].--plotter <str>โ any plots the recipe makes get redirected to whatever command you put here ๐จ. Your 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. Want finer control over the plotting options? Write an executable script, e.g.my_gnuplot.pl, that executes gnuplot after setting the gnuplot options you want (e.g.set terminal pslatex color). To turn plotting off entirely, 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].--scired <bool>โ whether or not to do science reduction ๐งช. If false, only master calibration frames are created. If false, either zero or all necessary calibration frames must be provided for each arm. (bool; default:True). The full name of this option for the EsoRex configuration file isflames_obs_redchain.scired [default = True].--uves_cal_mbias.clean_traps <bool>โ clean detector traps. IfTRUE, detector traps are interpolated. The bad pixels are replaced by the average of the nearest 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 isflames_obs_redchain.uves_cal_mbias.clean_traps [default = False].--uves_cal_mbias.dc_mask_x <int>โ x-size (pixel) of the mask starting at(x,y) = (1,1). (int; default:1). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.dc_mask_x [default = 1].--uves_cal_mbias.dc_mask_y <int>โ y-size (pixel) of the mask starting at(x,y) = (1,1). (int; default:1). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.dc_mask_y [default = 1].--uves_cal_mbias.khigh <float>โ kappa used to clip high level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.khigh [default = 5.0].--uves_cal_mbias.klow <float>โ kappa used to clip low level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.klow [default = 5.0].--uves_cal_mbias.niter <int>โ number of kappa sigma iterations, when method is set tomean. (int; default:5). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.niter [default = 5].--uves_cal_mbias.pd_compute <bool>โ determine Fixed Pattern Noise ๐ต๏ธ. IfTRUE, the Fixed Patter Noise power spectrum is determined (as function of UVES chip). (bool; default:False). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.pd_compute [default = False].--uves_cal_mbias.stack_method <str>โ method used to build master frame. (str; default:median). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mbias.stack_method [default = median].--uves_cal_mdark.khigh <float>โ kappa used to clip high level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.khigh [default = 5.0].--uves_cal_mdark.khigh <float>โ okay bestie yes, it's listed again, and I'm not about to edit the manpage for it ๐ same deal: kappa used to clip high level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.khigh [default = 5.0].--uves_cal_mdark.klow <float>โ kappa used to clip low level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.klow [default = 5.0].--uves_cal_mdark.klow <float>โ and here it is again, same twin energy: kappa used to clip low level values, when method is set tomean. (float; default:5.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.klow [default = 5.0].--uves_cal_mdark.niter <int>โ number of kappa sigma iterations, when method is set tomean. (int; default:5). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.niter [default = 5].--uves_cal_mdark.niter <int>โ the sequel ๐ฌ number of kappa sigma iterations, when method is set tomean. (int; default:5). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.niter [default = 5].--uves_cal_mdark.qc_dark.reg.border_x <int>โ X distance between the left hand side of the detector and the left hand side of the region [pix]. (int; default:100). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.border_x [default = 100].--uves_cal_mdark.qc_dark.reg.border_y <int>โ X distance between the left hand side of the detector and the left hand side of the region [pix]. (int; default:100). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.border_y [default = 100].--uves_cal_mdark.qc_dark.reg.box_sx <int>โ region X size [pix]. (int; default:100). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.box_sx [default = 100].--uves_cal_mdark.qc_dark.reg.box_sy <int>โ region Y size [pix]. (int; default:100). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.box_sy [default = 100].--uves_cal_mdark.qc_dark.reg.num_x <int>โ number of regions along the X axis (where mean/med/rms are computed). (int; default:4). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.num_x [default = 4].--uves_cal_mdark.qc_dark.reg.num_y <int>โ number of regions along the Y axis (where mean/med/rms are computed). (int; default:4). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.num_y [default = 4].--uves_cal_mdark.qc_dark.reg.when <int>โ when QC analysis is performed.0: on each raw frame, or1: on the master frame. (int; default:0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.qc_dark.reg.when [default = 0].--uves_cal_mdark.stack_method <str>โ method used to build master frame. (str; default:median). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.stack_method [default = median].--uves_cal_mdark.stack_method <str>โ and one more time for the people in the back ๐ฃ method used to build master frame. (str; default:median). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mdark.stack_method [default = median].--uves_cal_mflat.backsub.mmethod<str> โ the whole entire vibe for how we measure the background, bestie. Set it tomedianand we sample the background using the median of a subwindow. Set it tominimumand we grab the subwindow's minimum value instead. Set it tonoandโฆ we do absolutely no background subtraction at all, it's giving raw. (str; default:median). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.backsub.mmethod[default = median].--uves_cal_mflat.backsub.npoints<int> โ how many columns in interorder space we use to sample the background. That's it, that's the whole job. (int; default: 82). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.backsub.npoints[default = 82].--uves_cal_mflat.backsub.radiusy<int> โ the height (in pixels) of the background sampling window, and the way that math works is literally(2*radiusy + 1). ๐ Heads up though: this parameter is not corrected for binning. (int; default: 2). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.backsub.radiusy[default = 2].--uves_cal_mflat.backsub.sdegree<int> โ the degree of the interpolating splines. And here's the tea: currently onlydegree = 1is supported. Just the one. (int; default: 1). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.backsub.sdegree[default = 1].--uves_cal_mflat.backsub.smoothx<float> โ if spline interpolation is 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, okay, don't forget that part. If it's negative, we fall back to the default values, which 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. (float; default: -1.0). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.backsub.smoothx[default = -1.0].--uves_cal_mflat.backsub.smoothy<float> โ same energy as smoothx but for y, bestie. If spline interpolation is used to measure the background, the y-radius of the post-smoothing window is(smoothy * image_height). Hereimage_heightis the image height after binning. If negative, the defaults kick in:(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 isflames_obs_redchain.uves_cal_mflat.backsub.smoothy[default = -1.0].--uves_cal_mflat.norm_method<str> โ the method used to build the master frame. Periodt. (str; default:explevel). The full name of this option for the EsoRex configuration file isflames_obs_redchain.uves_cal_mflat.norm_method[default = explevel].
okay so quick lil PSA ๐ซถ โ it is possible to create a configuration file containing these options, along with suitable default values. Just go check out the details provided by the 'esorex --help' command, she'll tell you everything.
๐ 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. Iconic.
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_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_obs_redchain 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, we did it ๐๐
โจ This lil masterpiece is flames_obs_redchain version 6.1.8, living its best life as FLAMES_OBS_REDCHAIN(7) โ go forth and reduce that red chain, you absolute icon ๐ฆ๐
๐ฆ 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