Sky

class sofia_redux.scan.simulation.source_models.sky.Sky(**kwargs)[source]

Bases: SimulatedSource

Initialize a simulated sky source.

The sky source model may only operate on horizontal type coordinate systems, since only elevation is of concern. The sky is modelled as:

data = offset - ((exp(-tau / sin(elevation)) - 1) * tsky * scaling)

Where offset is a DC temperature offset in Kelvins, tsky is the sky temperature in Kelvins, tau is the atmospheric opacity, and scaling gives the appropriate temperature scaling for the instrument. If not supplied, the defaults are tau = 0.1, offset = 0K, tsky = 273K, and scaling = 1.

Parameters:
kwargsdict, optional

Methods Summary

apply_to_horizontal(horizontal)

Apply the source model to a set of 2-D offsets.

apply_to_offsets(offsets)

Apply the source model to a set of 2-D offsets.

initialize_model(**kwargs)

Initialize the model with the provided options.

Methods Documentation

apply_to_horizontal(horizontal)[source]

Apply the source model to a set of 2-D offsets.

Parameters:
horizontalHorizontalCoordinates

HorizontalCoordinates.

Returns:
datanumpy.ndarray

The modelled data of the source given the offsets.

apply_to_offsets(offsets)[source]

Apply the source model to a set of 2-D offsets.

Parameters:
offsetsCoordinate2D

Equatorial native offsets.

Returns:
datanumpy.ndarray

The modelled data of the source given the offsets.

initialize_model(**kwargs)[source]

Initialize the model with the provided options.

Parameters:
kwargsdict, optional

The available keys are ‘tau’, ‘scaling’, ‘tsky’, and ‘offset’. tsky and offset will be converted to Kelvins if not supplied as units.Quantity values.

Returns:
None