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.
Copyright¶
This file is part of the VISIR Instrument Pipeline Copyright (C) 2011 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
Code author: Lars Lundin <llundin@eso.org>