exosim.tasks.instrument.populateFocalPlane#

Classes#

PopulateFocalPlane

It populates the empty focal plane with monocromatic PSFs.

Functions#

populate(i0, j0, psf, focal_plane, source)

it populates the focal plane adding the pfs

Module Contents#

class PopulateFocalPlane[source]#

Bases: exosim.tasks.task.Task

It populates the empty focal plane with monocromatic PSFs.

Returns:

focal plane array populated

Return type:

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

static load_psf(parameters, focal_plane, output)[source]#

Loads the PSF as indicated in the configuration file or it creates them.

Parameters:
  • parameters (dict) – channel parameter dictionary. This is usually parsed from LoadOptions

  • focal_plane (Signal) – focal plane array (with time evolution)

  • output (Output (optional)) – output file

Returns:

four dimensional array: axis 0 is time, axis 1 is wavelength, axis 2 is spatial, axis 3 is spectral.

Return type:

ndarray

populate(i0, j0, psf, focal_plane, source)[source]#

it populates the focal plane adding the pfs

Parameters:
  • i0 (numpy.array) –

  • j0 (numpy.array) –

  • psf (numpy.array) –

  • focal_plane (numpy.array) –

  • source (numpy.array) –

Return type:

numpy.array