exosim.tasks.instrument.loadPsf#

Classes#

LoadPsf

It loads the PSFs from files.

Module Contents#

class LoadPsf[source]#

Bases: exosim.tasks.task.Task

It loads the PSFs from files.

Returns:

  • ndarray – cube of psfs. axis=0 is time, axis=1 is wavelength, axis=2 is spatial direction, axis=3 is spectral direction.

  • ndarray – cube normalization factors. It contains the volume of each psf. axis=0 is time, axis=1 is wavelength.

execute()[source]#

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

abstract model(filename, parameters, wavelength, time)[source]#
Parameters:
  • filename (str) – PSF input file

  • parameters (dict) – dictionary containing the parameters. This is usually parsed from LoadOptions

  • wavelength (Quantity) – wavelength grid.

Returns:

cube of psfs. axis=0 is time, axis=1 is wavelength, axis=2 is spatial direction, axis=3 is spectral direction.

Return type:

ndarray