ImageSourceModel

class tolteca.simu.sources.ImageSourceModel(hdulist, data_exts=None, **kwargs)[source]

Bases: tolteca.simu.sources.base.SurfaceBrightnessModel

The class for simulator source from FITS image.

Parameters
datadict

A dict of HDUs for the data. The dict keys are labels that expected as the first argument of the model evaluation. The dict values can alternatively be a dict of keys I, Q and U for polarized data.

Attributes Summary

data

logger

n_inputs

The number of inputs.

n_outputs

The number of outputs.

Methods Summary

__call__(*inputs[, model_set_axis, ...])

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(label, lon, lat, pa)

Evaluate the model on some input variables.

evaluate_tod_icrs(det_array_name, det_ra, ...)

Return signal data.

from_file(filepath, **kwargs)

Return source model from FITS image file.

Attributes Documentation

data
logger = <Logger ImageSourceModel (DEBUG)>
n_inputs = 4

The number of inputs.

n_outputs = 1

The number of outputs.

Methods Documentation

__call__(*inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(label, lon, lat, pa)[source]

Evaluate the model on some input variables.

evaluate_tod_icrs(det_array_name, det_ra, det_dec, det_pa_icrs=None, hwp_pa_icrs=None)[source]

Return signal data.

classmethod from_file(filepath, **kwargs)[source]

Return source model from FITS image file.

Parameters
filepathstr, pathlib.Path

The path to the FITS file.

**kwargs

Arguments passed to constructor.