SimulatedSource

class sofia_redux.scan.simulation.source_models.simulated_source.SimulatedSource[source]

Bases: ABC

Initialize a simulated source.

This is an abstract class base for simulating source data given input positions. Currently equatorial offsets and horizontal coordinates may be converted to timestream data.

Methods Summary

__call__(coordinates)

Generate a source model for the applied offsets.

apply_to_horizontal(offsets)

Apply the model to a set of offset coordinates.

apply_to_offsets(offsets)

Apply the model to a set of offset coordinates.

copy()

Return a copy of the simulated source.

get_source_model(name, **kwargs)

Return an initialize source model of the given name.

Methods Documentation

__call__(coordinates)[source]

Generate a source model for the applied offsets.

Parameters:
coordinatesCoordinate2D
Returns:
generated_modelnumpy.ndarray
abstract apply_to_horizontal(offsets)[source]

Apply the model to a set of offset coordinates.

Parameters:
offsetsHorizontalCoordinates
Returns:
generated_modelnumpy.ndarray
abstract apply_to_offsets(offsets)[source]

Apply the model to a set of offset coordinates.

Parameters:
offsetsCoordinate2D
Returns:
generated_modelnumpy.ndarray
copy()[source]

Return a copy of the simulated source.

Returns:
SimulatedSource
static get_source_model(name, **kwargs)[source]

Return an initialize source model of the given name.

Parameters:
namestr

The name of the synthetic source model.

kwargsdict, optional

Optional keyword arguments during source initialization.

Returns:
source_modelSimulatedSource