---
name: "sinfo_rec_distortion"
section: "7"
platform: "linux"
package: "cpl-plugin-sinfo-doc"
version: "2.5.2+dfsg-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/sinfo_rec_distortion"
---

# sinfo\_rec\_distortion(7)

Finds optical distortions and slitlets distances

## NAME

sinfo\_rec\_distortion - Finds optical distortions and slitlets distances

## SYNOPSIS

esorex **sinfo\_rec\_distortion** \[OPTIONS\] FILE.sof

## DESCRIPTION

This recipe determines the optical distortions and the slitlets distances.

Necessary input are: Several (usually 75) raw frames classified as FIBRE\_NS Standard (an ´ON´ and an ´OFF´) flat frames having classified as FLAT\_NS Standard (an ´ON´ and an ´OFF´) arc lamp frames having classified as WAVE\_NS A corresponding (band) reference arc line list classified as REF\_LINE\_ARC A reference table with data reduction parameters classified as DRS\_SETUP\_WAVE.

Default output are (with their PRO.CATG) A master flat: MASTER\_FLAT\_LAMP A Bad pixel map: BP\_MAP\_DI A fake-off fibre stacked frame: FIBRE\_NS\_STACKED\_OFF A fake-on fibre  stacked frame: FIBRE\_NS\_STACKED\_ON A fake on-off fibre  stacked frame: FIBRE\_NS\_STACKED A table with optical distortion coefficients: DISTORTION A distortion corrected frame: FIBRE\_NS\_STACKED\_DIST A temporary frame: MASTER\_SLIT A table with the slitlets distances: SLITLETS\_DISTANCE

## OPTIONS

- **--gen-overpar** *\<bool\>*

  Overwrite DRS ini parameters:  (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.general.overwrite\_parameters** \[default = *True*\].

- **--lc\_sw** *\<bool\>*

  Correct for bad lines introduced by instrument software:  (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.general.lc\_sw** \[default = *False*\].

- **--lc\_kappa** *\<long\>*

  Kappa sigma value (long; default: 18). The full name of this option for the EsoRex configuration file is **sinfoni.general.lc\_kappa** \[default = *18*\].

- **--lc\_filt\_rad** *\<long\>*

  Filtering radii applied during median filter. Should be small (long; default: 3). The full name of this option for the EsoRex configuration file is **sinfoni.general.lc\_filt\_rad** \[default = *3*\].

- **--product-density** *\<long\>*

  Density of pipeline products: 0 (low), 1 (low+skycor), 2 (med-QC), 3 (high-debug+skycor) (long; default: 2). The full name of this option for the EsoRex configuration file is **sinfoni.product.density** \[default = *2*\].

- **--lamp\_flats-lo\_rej** *\<float\>*

  lower rejection: percentage of rejected low intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.low\_rejection** \[default = *0.1*\].

- **--lamp\_flats-hi\_rej** *\<float\>*

  high rejection: percentage of rejected high intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.high\_rejection** \[default = *0.1*\].

- **--lamp\_flats-interpol\_index** *\<bool\>*

  Interpolation index switch: indicator if the bad pixels of the flatfield should be interpolated (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.interpol\_index** \[default = *False*\].

- **--lamp\_flats-max\_rad** *\<long\>*

  Max Rad: maximal pixel distance from bad pixel to take valid pixels (long; default: 4). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.max\_rad** \[default = *4*\].

- **--lamp\_flats-bad\_ind** *\<bool\>*

  indicator if a bad pixel mask should be generated or not (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.bad\_ind** \[default = *False*\].

- **--lamp\_flats-sigma\_factor** *\<float\>*

  Sigma Factor: factor of the sigma noise limit; to remove the column intensity tilt only pixels which lie within a defined noise limit are used to fit a straight line (float; default: 5.0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.sigma\_factor** \[default = *5.0*\].

- **--lamp\_flats-factor** *\<float\>*

  Factor: if \|pixel - median\| \> factor \* standard deviation -\> then the pixel value is replaced by the median of the 8 nearest neighbors (float; default: 3.0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.factor** \[default = *3.0*\].

- **--lamp\_flats-iterations** *\<long\>*

  Iterations: number of iterations to of median filtering to find bad pixel clusters (long; default: 8). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.iterations** \[default = *8*\].

- **--lamp\_flats-bad\_lo\_rej** *\<float\>*

  low rejection: Percentage for bad pixel low rejection (float; default: 10.0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.bad\_low\_rejection** \[default = *10.0*\].

- **--lamp\_flats-bad\_hi\_rej** *\<float\>*

  high rejection: Percentage for bad pixel high rejection (float; default: 10.0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.bad\_high\_rejection** \[default = *10.0*\].

- **--lamp\_flats-llx** *\<long\>*

  Lower Lext X corner (long; default: 1350). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.llx** \[default = *1350*\].

- **--lamp\_flats-lly** *\<long\>*

  Lower Lext Y corner (long; default: 1000). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.lly** \[default = *1000*\].

- **--lamp\_flats-rrx** *\<long\>*

  Upper right X corner (long; default: 1390). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.urx** \[default = *1390*\].

- **--lamp\_flats-ury** *\<long\>*

  Upper right Y corner (long; default: 1200). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.ury** \[default = *1200*\].

- **--lamp\_flats-tresh\_ind** *\<bool\>*

  Treshold index:  (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.thresh\_ind** \[default = *False*\].

- **--lamp\_flats-mean\_factor** *\<float\>*

  Mean Factor: factor to the clean standard deviation to define the threshold deviation from the clean mean (float; default: 10.0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.mean\_factor** \[default = *10.0*\].

- **--lamp\_flats-qc\_fpn\_xmin1** *\<long\>*

  qc\_fpn\_xmin1 (long; default: 512). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_xmin1** \[default = *512*\].

- **--lamp\_flats-qc\_fpn\_xmax1** *\<long\>*

  qc\_fpn\_xmax1 (long; default: 1536). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_xmax1** \[default = *1536*\].

- **--lamp\_flats-qc\_fpn\_ymin1** *\<long\>*

  qc\_fpn\_ymin1 (long; default: 512). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_ymin1** \[default = *512*\].

- **--lamp\_flats-qc\_fpn\_ymax1** *\<long\>*

  qc\_fpn\_ymax1 (long; default: 1536). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_ymax1** \[default = *1536*\].

- **--lamp\_flats-qc\_fpn\_xmin2** *\<long\>*

  qc\_fpn\_xmin2 (long; default: 1350). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_xmin2** \[default = *1350*\].

- **--lamp\_flats-qc\_fpn\_xmax2** *\<long\>*

  qc\_fpn\_xmax2 (long; default: 1390). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_xmax2** \[default = *1390*\].

- **--lamp\_flats-qc\_fpn\_ymin2** *\<long\>*

  qc\_fpn\_ymin2 (long; default: 1000). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_ymin2** \[default = *1000*\].

- **--lamp\_flats-qc\_fpn\_ymax2** *\<long\>*

  qc\_fpn\_ymax2 (long; default: 1200). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_fpn\_ymax2** \[default = *1200*\].

- **--lamp\_flats-qc\_thresh\_min** *\<long\>*

  qc\_thresh\_min (long; default: 0). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_thresh\_min** \[default = *0*\].

- **--lamp\_flats-qc\_thresh\_max** *\<long\>*

  qc\_thresh\_max (long; default: 49000). The full name of this option for the EsoRex configuration file is **sinfoni.lamp\_flats.qc\_thresh\_max** \[default = *49000*\].

- **--bp-method** *\<str\>*

  Data reduction method:  (str; default: ´Normal´). The full name of this option for the EsoRex configuration file is **sinfoni.bp.method** \[default = *Normal*\].

- **--bp\_dist-s\_factor** *\<float\>*

  Threshold Sigma Factor: to remove the column intensity tilt only pixels which lie within a defined noiselimit are used to fit a straight line (float; default: 2.0). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.sigma\_factor** \[default = *2.0*\].

- **--bp\_dist-method\_ind** *\<long\>*

  Bad pixel Method Index1: median of nearest neighbors,2: absolute distances check, 3: mean of nearest spectral neighbors (long; default: 1). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.method\_index** \[default = *1*\].

- **--bp\_dist-fct** *\<float\>*

  Factor: if \|pixel - sinfo\_median\| \> factor \* standard deviation -\> then the pixel value is replaced by the median of the 8 nearest neighbors (float; default: 999.0). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.factor** \[default = *999.0*\].

- **--bp\_dist-it** *\<long\>*

  Iterations: number of iterations to of median filtering to find bad pixel clusters (long; default: 8). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.iterations** \[default = *8*\].

- **--bp\_dist-lo\_rej** *\<float\>*

  low\_rejection: percentage of rejected low intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.low\_rejection** \[default = *0.1*\].

- **--bp\_dist-hi\_rej** *\<float\>*

  high\_rejection: percentage of rejected high intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.high\_rejection** \[default = *0.1*\].

- **--bp\_dist-llx** *\<long\>*

  llx: to compute image statistics on a rectangularzone of the image the coordinates of the rectangle are needed:lower left x coordinate (long; default: 1350). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.llx** \[default = *1350*\].

- **--bp\_dist-lly** *\<long\>*

  lly: to compute image statistics on a rectangularzone of the image the coordinates of the rectangle are needed:lower left y coordinate (long; default: 1000). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.lly** \[default = *1000*\].

- **--bp\_dist-urx** *\<long\>*

  urx: to compute image statistics on a rectangularzone of the image the coordinates of the rectangle are needed:upper right x coordinate (long; default: 1390). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.urx** \[default = *1390*\].

- **--bp\_dist-ury** *\<long\>*

  ury: to compute image statistics on a rectangularzone of the image the coordinates of the rectangle are needed:upper right y coordinate (long; default: 1200). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.ury** \[default = *1200*\].

- **--bp\_dist-thr\_ind** *\<bool\>*

  Threshold Index: indicator that indicates if the values beyond a threshold deviation from the mean are flagged as bad pixels (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.threshold\_index** \[default = *True*\].

- **--bp\_dist-mean\_fct** *\<float\>*

  Mean Factor: factor to the clean standard deviation to define the threshold deviation from the clean mean (float; default: 999.0). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.mean\_factor** \[default = *999.0*\].

- **--bp\_dist-min\_cut** *\<float\>*

  the minimum value of real data (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.min\_cut** \[default = *0.1*\].

- **--bp\_dist-max\_cut** *\<float\>*

  the minimum value of real data (float; default: 50000.0). The full name of this option for the EsoRex configuration file is **sinfoni.bp\_dist.max\_cut** \[default = *50000.0*\].

- **--stack-lo\_rej** *\<float\>*

  lower rejection (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.low\_rejection** \[default = *0.1*\].

- **--stack-hi\_rej** *\<float\>*

  higher rejection (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.high\_rejection** \[default = *0.1*\].

- **--stack-flat\_ind** *\<bool\>*

  Flat Index:  (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.flat\_index** \[default = *True*\].

- **--stack-mflat\_norm\_smooth** *\<long\>*

  Normalize master flat to its smoothed value (to remove lamp response curve). 0 (no smooth). 1 (apply fft filter along y).2 (apply running median filter along y). (long; default: 0). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.mflat\_norm\_smooth** \[default = *0*\].

- **--stack-mflat\_smooth\_rad** *\<long\>*

  Normalization smoothing radii  (long; default: 16). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.mflat\_smooth\_rad** \[default = *16*\].

- **--stack-mask\_ind** *\<long\>*

  BP Mask Interpolation Switch: indicates if the bad pixel mask should be applied (1) or not (0)  (long; default: 1). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.mask\_index** \[default = *1*\].

- **--stack-ind\_ind** *\<bool\>*

  indicates if the bad pixels should be indicated (yes) or interpolated (no) (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.ind\_index** \[default = *False*\].

- **--stack-mask\_rad** *\<long\>*

  Max distance bad-good pix:  (long; default: 4). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.mask\_rad** \[default = *4*\].

- **--stack-gauss\_ind** *\<bool\>*

  Gaussian Convolution Switch:  (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.gauss\_index** \[default = *False*\].

- **--stack-khw** *\<long\>*

  Kernel Half Width (long; default: 2). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.kernel\_half\_width** \[default = *2*\].

- **--stack-warpfix\_ind** *\<bool\>*

  Warp Fix Index:  (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.warpfix\_ind** \[default = *True*\].

- **--stack-warpfix\_kernel** *\<str\>*

  Warpfix kernel:  (str; default: ´tanh´). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.warpfix\_kernel** \[default = *tanh*\].

- **--stack-qc\_thresh\_min** *\<long\>*

  qc\_thresh\_min (long; default: 0). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.qc\_thresh\_min** \[default = *0*\].

- **--stack-qc\_thresh\_max** *\<long\>*

  qc\_thresh\_max (long; default: 49000). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.qc\_thresh\_max** \[default = *49000*\].

- **--stack-sub\_raw\_sky** *\<bool\>*

  indicates if the raw sky frame should be subtracted (TRUE) or (FALSE) (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.stacked.sub\_raw\_sky** \[default = *True*\].

- **--dist-calib\_indicator** *\<bool\>*

  Calib Indicator: FALSE: if the dispersion relation is already known, the routine can jump to the waveMap section TRUE: if the dispersion relation must first be determined (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.calib\_indicator** \[default = *True*\].

- **--dist-min\_diff\_mean\_med\_col\_int** *\<float\>*

  Minimum Of Difference: minimum difference of mean and median column intensity to carry out the cross correlation (float; default: 10.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.min\_diff\_mean\_med\_col\_int** \[default = *10.0*\].

- **--dist-hw** *\<long\>*

  Half Width: half width of a box within which the line must be placed (long; default: 7). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.half\_width** \[default = *7*\].

- **--dist-sigma** *\<float\>*

  Sigma: sigma of Gaussian which is convolved with the artificial spectrum generated using the line list (float; default: 2.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.sigma** \[default = *2.0*\].

- **--dist-fwhm** *\<float\>*

  FWHM: initial guess value for the fwhm of the Gaussian used for the line fit (float; default: 2.83). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.fwhm** \[default = *2.83*\].

- **--dist-min\_amplitude** *\<float\>*

  Minimum Of Amplitude: of the Gaussian to do the fit (float; default: 5.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.min\_amplitude** \[default = *5.0*\].

- **--dist-max\_residual** *\<float\>*

  Maximum Residuals value: beyond this value the fit is rejected (float; default: 0.5). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.max\_residual** \[default = *0.5*\].

- **--dist-n\_a\_coeffs** *\<long\>*

  Number of A coefficients: number of polynomial coefficients for the dispersion relation (long; default: 4). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.n\_a\_coefficients** \[default = *4*\].

- **--dist-n\_b\_coeffs** *\<long\>*

  Number of B coefficients: number of polynomial coefficients for the polynomial fit of the dispersion coefficients (long; default: 2). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.n\_b\_coefficients** \[default = *2*\].

- **--dist-sigma\_factor** *\<float\>*

  Sigma Factor: Factor of the standard deviation of the polynomial coefficients of the dispersion relation beyond which the coefficients are not used for the fit (float; default: 1.5). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.sigma\_factor** \[default = *1.5*\].

- **--dist-wcoeff\_ind** *\<bool\>*

  Write Coefficients Index: indicates if the coefficients should be written into a file or not (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.write\_coeffs\_ind** \[default = *True*\].

- **--dist-par\_ind** *\<bool\>*

  Write Parameter Index: indicates if the fit parameters should be written into a file or not  (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.write\_par\_ind** \[default = *True*\].

- **--dist-pixel\_dist** *\<long\>*

  Minimal Slitlets´s Distance in spectral direction (long; default: 15). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.pixel\_dist** \[default = *15*\].

- **--dist-pixel\_tol** *\<float\>*

  Pixel Tolerance: allowed pixel position tolerance between estimated and fitted line position (float; default: 5.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.pixel\_tol** \[default = *5.0*\].

- **--dist-wave\_map\_ind** *\<bool\>*

  Wavelength Map Indicator: indicates if the wavelength calibration map should be generated (TRUE) or not (FALSE) (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.wave\_map\_ind** \[default = *False*\].

- **--dist-mag\_factor** *\<long\>*

  Magnificator Factor: magnifying factor for the number of pixels in the columns needed for FFT (long; default: 8). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.mag\_factor** \[default = *8*\].

- **--dist-slit\_pos\_ind** *\<bool\>*

  Slit Position Indicator: indicates if the fits of the slitlet edge positions should be carried through or not (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.slit\_pos\_indicator** \[default = *True*\].

- **--dist-fit\_boltz\_ind** *\<bool\>*

  Fit Boltzmann Indicator: indicates if the fits of the slitlet edge positions is carried trough by using a Boltzmann function as model function (bool; default: True). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.fit\_boltz\_indicator** \[default = *True*\].

- **--dist-fit\_edge\_ind** *\<bool\>*

  Fit Edge Indicator: indicates if the fits of the slitlet edge positions is carried through by using a simple edge function as model function (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.fit\_edge\_indicator** \[default = *False*\].

- **--dist-estimate\_ind** *\<bool\>*

  Estimate Indicator: indicates if the fits of the slitlet edge positions is carried through by using a list of estimated guess positions in a file (TRUE)or if the initial positions are calculated automatically (FALSE). The estimation case is more stable (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.estimate\_indicator** \[default = *False*\].

- **--dist-box\_len** *\<long\>*

  Box Length: pixel length of the row box within which the fit is carried out (long; default: 32). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.box\_length** \[default = *32*\].

- **--dist-y\_box** *\<float\>*

  Y Box: half width of a small box in spectral direction within which the maximal intensity pixel is searched (float; default: 5.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.y\_box** \[default = *5.0*\].

- **--dist-diff\_toll** *\<float\>*

  Difference Tolearance: maximal tolerable difference of the resulting fit positions of the slitlet edges with respect to the expected positions (float; default: 2.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.diff\_tol** \[default = *2.0*\].

- **--dist-qc\_thresh\_min** *\<long\>*

  qc\_thresh\_min (long; default: 0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.qc\_thresh\_min** \[default = *0*\].

- **--dist-qc\_thresh\_max** *\<long\>*

  qc\_thresh\_max (long; default: 49000). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.qc\_thresh\_max** \[default = *49000*\].

- **--ns-lo\_rejection** *\<float\>*

  lower rejection: percentage of rejected low intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.lower\_rejection** \[default = *0.1*\].

- **--ns-hi\_rejection** *\<float\>*

  higher rejection: percentage of rejected high intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.higher\_rejection** \[default = *0.1*\].

- **--ns-mask\_ind** *\<bool\>*

  Mask Index: indicator if a bad pixel mask is applied or not (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.mask\_ind** \[default = *False*\].

- **--ns-gauss\_ind** *\<bool\>*

  Gauss Index:  (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.gauss\_ind** \[default = *False*\].

- **--ns-khw** *\<long\>*

  Kernel Half Width kernel half width of the Gaussian response function (long; default: 2). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.kernel\_half\_width** \[default = *2*\].

- **--ns-hw** *\<long\>*

  Half Width (long; default: 4). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.ns\_half\_width** \[default = *4*\].

- **--ns-fwhm** *\<float\>*

  FWHM (float; default: 2.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.ns\_fwhm** \[default = *2.0*\].

- **--ns-min\_diff** *\<float\>*

  Minimum of Difference (float; default: 1.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.min\_diff** \[default = *1.0*\].

- **--ns-dev\_tol** *\<float\>*

  Dev Tol (float; default: 20.0). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.dev\_tol** \[default = *20.0*\].

- **--arcs\_thresh\_factor** *\<float\>*

  arcs threshold factor. median\_value(image)+ kappa\*sigma is the minimum intensity threshold of accepted imagepixels (float; default: 0.33333). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.arcs\_thresh\_factor** \[default = *0.33333*\].

- **--arcs\_min\_arclen\_factor** *\<float\>*

  factor which sets minimum arc length (1.0-2) (float; default: 1.19). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.arcs\_min\_arclen\_factor** \[default = *1.19*\].

- **--arcs\_window\_size** *\<long\>*

  Size of window for low pass fileter used inan horizzontal low pass filter to remove unwanted arcs (5-64) (long; default: 14). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.arcs\_window\_size** \[default = *14*\].

- **--smooth\_rad** *\<long\>*

  Size of smoothing factor (1-11) used to prevent for possible intensity drops from detector electronics on fibre illuminated slitlets (1-11) (long; default: 3). The full name of this option for the EsoRex configuration file is **sinfoni.distortion.smooth\_rad** \[default = *3*\].

- **--ns-lo\_rej** *\<float\>*

  lower rejection: percentage of rejected low intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.low\_rejection** \[default = *0.1*\].

- **--ns-hi\_rej** *\<float\>*

  higher rejection: percentage of rejected high intensity pixels before averaging (float; default: 0.1). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.high\_rejection** \[default = *0.1*\].

- **--ns-mask\_ind** *\<bool\>*

  Mask Index: indicator if a bad pixel mask is applied or not (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.mask\_ind** \[default = *False*\].

- **--ns-gauss\_ind** *\<bool\>*

  Gauss Index:  (bool; default: False). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.gauss\_ind** \[default = *False*\].

- **--ns-khw** *\<long\>*

  Kernel Half Width kernel half width of the Gaussian response function (long; default: 2). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.kernel\_half\_width** \[default = *2*\].

- **--ns-hw** *\<long\>*

  Half Width (long; default: 4). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.half\_width** \[default = *4*\].

- **--ns-fwhm** *\<float\>*

  FWHM (float; default: 2.0). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.fwhm** \[default = *2.0*\].

- **--ns-min\_diff** *\<float\>*

  Minimum of Difference (float; default: 1.0). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.min\_diff** \[default = *1.0*\].

- **--ns-dev\_tol** *\<float\>*

  Dev Tol (float; default: 20.0). The full name of this option for the EsoRex configuration file is **sinfoni.north\_south\_test.dev\_tol** \[default = *20.0*\].

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 sinfo pipeline can be downloaded as  a PDF file using the following URL:

-

  **ftp://ftp.eso.org/pub/dfs/pipelines/sinfoni/sinfo-pipeline-manual-19.0.pdf**

An overview over the existing ESO pipelines can be found on the web page **http://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 **http://packages.python.org/python-cpl/index.html** for further information.

The other recipes of the sinfo pipeline are [*sinfo\_utl\_cube2spectrum*(7)](/sinfo_utl_cube2spectrum/7.md), [*sinfo\_rec\_jitter*(7)](/sinfo_rec_jitter/7.md), [*sinfo\_utl\_ima\_line\_corr*(7)](/sinfo_utl_ima_line_corr/7.md), [*sinfo\_utl\_cube\_combine*(7)](/sinfo_utl_cube_combine/7.md), [*sinfo\_utl\_bp\_mask\_add*(7)](/sinfo_utl_bp_mask_add/7.md), [*sinfo\_utl\_skycor*(7)](/sinfo_utl_skycor/7.md), [*sinfo\_utl\_spectrum\_divide\_by\_blackbody*(7)](/sinfo_utl_spectrum_divide_by_blackbody/7.md), [*sinfo\_rec\_mflat*(7)](/sinfo_rec_mflat/7.md), [*sinfo\_utl\_cube\_create*(7)](/sinfo_utl_cube_create/7.md), [*sinfo\_utl\_line\_oh\_select*(7)](/sinfo_utl_line_oh_select/7.md), [*sinfo\_utl\_cube2ima*(7)](/sinfo_utl_cube2ima/7.md), [*sinfo\_utl\_spectrum\_wavelength\_shift*(7)](/sinfo_utl_spectrum_wavelength_shift/7.md), [*sinfo\_rec\_pupil*(7)](/sinfo_rec_pupil/7.md), [*sinfo\_rec\_wavecal*(7)](/sinfo_rec_wavecal/7.md), [*sinfo\_utl\_ima\_arith*(7)](/sinfo_utl_ima_arith/7.md), [*sinfo\_utl\_cube\_arith*(7)](/sinfo_utl_cube_arith/7.md), [*sinfo\_rec\_detlin*(7)](/sinfo_rec_detlin/7.md), [*sinfo\_utl\_skymap*(7)](/sinfo_utl_skymap/7.md), [*sinfo\_rec\_mdark*(7)](/sinfo_rec_mdark/7.md)

## VERSION

sinfo\_rec\_distortion 2.5.2

## AUTHOR

Andrea Modigliani \<Andrea.Modigliani@eso.org\>

## BUG REPORTS

Please report any problems to Andrea.Modigliani@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 SINFONI Instrument Pipeline Copyright (C) 2002,2003 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., 59 Temple Place, Suite 330, Boston,  MA  02111-1307  USA
