exosim.tasks.subexposures.loadILS#

Classes#

LoadILS

This Task loads the instrument line shapes (ILS) from the input file.

Module Contents#

class LoadILS[source]#

Bases: exosim.tasks.task.Task

This Task loads the instrument line shapes (ILS) from the input file. The loaded ILS are then used to convolve the astronomical signal. The ILS here are intended as the PSF of the instrument. The ILS shapes are normalized to the maximum value.

Returns:

instrument line shape. The shape is (time, wavelength, spectral direction)

Return type:

numpy.ndarray

Note

The instrument line shapes produced by this task are not the same as the instrument line shapes as defined in the literature. The ILS produced by this task are the PSF of the instrument. To be used as the instrument line shapes as defined in the literature they need to be convolved with the intra-pixel response. This convolution is not part of this Task as it affects the way the ILS are sampled. The convolution with the intra-pixel response is done in the exosim.tasks.astrosignal.applyAstronomicalSignal.ApplyAstronomicalSignal Task, where the ILS are used to convolve the astronomical signal.

execute()[source]#

Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords

model(input_file, parameters, wl_grid)[source]#

It loads the channel instrument line shapes from the input file.

Parameters:
  • input_file (str) – focal plane input file

  • ch_param (dict) – channel parameter

  • wl_grid (astropy.units.Quantity) – output wavelength grid

  • parameters (dict) –

Returns:

instrument line shape. The shape is (time, wavelength, spectral direction)

Return type:

numpy.ndarray