exosim.tasks.astrosignal.applyAstronomicalSignal#
Classes#
This task applies the astronomical signal to the sub-exposures. |
Functions#
|
Creates the variation of the source signal on the focal plane. |
Module Contents#
- class ApplyAstronomicalSignal[source]#
Bases:
exosim.tasks.task.TaskThis task applies the astronomical signal to the sub-exposures. To do so, it first convolve the astronomical signal with the instrument line shape (ILS) on the focal plane. This is done by populating the focal plane with the ILS and then weighting the contributions to each pixel. The resulting model is then convolved with the intrapixel response function (IPRF) and downsampled to the sub-exposure time resolution. Then is finally multiplied to the sub-exposure signal.
- Returns:
sub-exposure cached signal class
- Return type:
- execute()[source]#
Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords
- select_chunk_range(chunk, start_t, end_t)[source]#
Selects and adjusts the range of the chunk to be processed based on the given start and end times.
- Parameters:
- Returns:
The adjusted slice object representing the new chunk to be processed. Returns None if the chunk is entirely outside the start_t and end_t range.
- Return type:
Examples
>>> select_chunk_range(slice(5, 15, 1), 7, 13) slice(7, 13, 1) >>> select_chunk_range(slice(5, 15, 1), 16, 20) None
- populate(j0, psf, psf_index, shape_spectral, model, weights)[source]#
Creates the variation of the source signal on the focal plane.
- Parameters:
j0 (numpy.ndarray) –
psf (numpy.ndarray) –
psf_index (numpy.ndarray) –
shape_spectral (int) –
model (numpy.ndarray) –
weights (numpy.ndarray) –
- Return type: