The kmos_sky_tweak recipe

kmos_sky_tweak

Synopsis

Removal of OH sky lines

Description

This recipes is an advanced tool to remove OH sky lines.

Input files

DO CATG           Type   Explanation                    Required #Frames
--------          -----  -----------                    -------- -------
CUBE_OBJECT       F3I    object cubes                       Y      >=1
CUBE_SKY          F3I    sky cube                           Y       1

Output files

DO_CATG           Type   Explanation
--------          -----  -----------
OBJECT_S          F3I    Corrected object cubes

Constructor

cpl.Recipe("kmos_sky_tweak")

Create an object for the recipe kmos_sky_tweak.

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

Parameters

kmos_sky_tweak.param.ifu

Only reduce the specified IFU (int; default: 0) [default=0].

kmos_sky_tweak.param.discard_subband

Ignore last sub-band in the sky tweaking (bool; default: False) [default=False].

kmos_sky_tweak.param.stretch

Stretch sky (bool; default: False) [default=False].

kmos_sky_tweak.param.stretch_degree

Stretch polynomial degree (int; default: 8) [default=8].

kmos_sky_tweak.param.stretch_resampling

Stretch resampling method (linear/spline) (str; default: ‘spline’) [default=”spline”].

kmos_sky_tweak.param.plot

Enable plotting (int; default: 0) [default=0].

kmos_sky_tweak.param.tbsub

Subtract thermal background from input cube (bool; default: True) [default=True].

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

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

kmos_sky_tweak.param.ifu = 0
kmos_sky_tweak.param.discard_subband = False
kmos_sky_tweak.param.stretch = False
kmos_sky_tweak.param.stretch_degree = 8
kmos_sky_tweak.param.stretch_resampling = "spline"
kmos_sky_tweak.param.plot = 0
kmos_sky_tweak.param.tbsub = True

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

import cpl
kmos_sky_tweak = cpl.Recipe("kmos_sky_tweak")
[...]
res = kmos_sky_tweak( ..., param = {"ifu":0, "discard_subband":False})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

Please report any problems to Erich Wiezorrek, Yves Jung. Alternatively, you may send a report to the ESO User Support Department.