Table Of Contents

Previous topic

The sinfo_utl_cube2ima recipe

Next topic

The sinfo_utl_cube2spectrum recipe

This Page

The sinfo_utl_spectrum_wavelength_shift recipe

sinfo_utl_spectrum_wavelength_shift

Synopsis

Spectrum wavelength shift

Description

This recipe shifts a spectrum in wavelength using a given interpolation method. The input file is a spectrum.

Its associated tag should be SPECTRUM.

The output is a spectrum shifted by a given amount. Parameters are sinfoni.sinfo_utl_spectrum_arith.method sinfoni.sinfo_utl_spectrum_wavelength_shift.shift having aliases ‘method’ and ‘shift’

Constructor

cpl.Recipe("sinfo_utl_spectrum_wavelength_shift")

Create an object for the recipe sinfo_utl_spectrum_wavelength_shift.

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

Parameters

sinfo_utl_spectrum_wavelength_shift.param.method

A spectral shift method: ‘S’ (Spline),’P’ (Polynomial) (str; default: ‘S’) [default=”S”].

sinfo_utl_spectrum_wavelength_shift.param.shift

wavelength shift in micron (float; default: 0.1) [default=0.1].

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

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

sinfo_utl_spectrum_wavelength_shift.param.method = "S"
sinfo_utl_spectrum_wavelength_shift.param.shift = 0.1

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

import cpl
sinfo_utl_spectrum_wavelength_shift = cpl.Recipe("sinfo_utl_spectrum_wavelength_shift")
[...]
res = sinfo_utl_spectrum_wavelength_shift( ..., param = {"method":"S", "shift":0.1})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

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