Table Of Contents

Previous topic

The visir_util_weight2error recipe

Next topic

The visir_util_join recipe

This Page

The visir_util_undistort recipe

visir_util_undistort

Synopsis

Correct the distortion in spectral data

Description

The files listed in the Set Of Frames (sof-file) must be tagged: VISIR-chopnod-corrected-file.fits CHOPNOD_CORRECTED Optionally, a bad pixel map may be provided: VISIR-bpm-file.fits STATIC_MASK

The product(s) will have a FITS card ‘HIERARCH ESO PRO CATG’ with a value of: UNDISTORTED The recipe default values for the transformation are only valid for spectral data taken in Low resolution mode

Constructor

cpl.Recipe("visir_util_undistort")

Create an object for the recipe visir_util_undistort.

import cpl
visir_util_undistort = cpl.Recipe("visir_util_undistort")

Parameters

visir_util_undistort.param.slit_skew

Distortion correction: Skew of slit (degrees) (clockwise) (float; default: 1.6) [default=1.6].

visir_util_undistort.param.spectrum_skew

Distortion correction: LMR Skew of spectrum (degrees) (counter- clockwise). Not used in High Resolution (float; default: 0.7) [default=0.7].

visir_util_undistort.param.vert_arc

Distortion correction: LR Detector vertical curvature (pixel). Reduced by a factor 4 in MR. Not used in HR A-side. Increased by a factor 115/52 in HR B-side (float; default: 1.04) [default=1.04].

visir_util_undistort.param.hori_arc

Distortion correction: LMR Detector horizontal curvature (pixel). Increased by a factor 1.5 in HR A-side. Reduced by a factor 2 in HR B-side (float; default: 0.08) [default=0.08].

The following code snippet shows the default settings for the available parameters.

import cpl
visir_util_undistort = cpl.Recipe("visir_util_undistort")

visir_util_undistort.param.slit_skew = 1.6
visir_util_undistort.param.spectrum_skew = 0.7
visir_util_undistort.param.vert_arc = 1.04
visir_util_undistort.param.hori_arc = 0.08

You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:

import cpl
visir_util_undistort = cpl.Recipe("visir_util_undistort")
[...]
res = visir_util_undistort( ..., param = {"slit_skew":1.6, "spectrum_skew":0.7})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

Please report any problems to Lars Lundin. Alternatively, you may send a report to the ESO User Support Department.