InstrumentModel

class nyx.core.protocols.InstrumentModel[source]

Bases: Module

Sensor that maps sky radiance to detector counts.

Trainable quantities are the Parameter fields a subclass declares, with per_obs=True for those carrying an observation axis.

Attributes Summary

bandpass

Spectral transmission curve, shape (n_wvl,), excluding efficiency.

efficiency

Methods Summary

corrected_pm(pm)

Pointing matrix corrected for detector shift and rotation.

prepare(obs)

Batch for multi-observation rendering; the default tiles per_obs fields.

project_catalog(source_coords, source_fluxes)

Point sources to pixel rates; the default is no contribution.

project_diffuse(hp_values, pm)

HEALPix sky values to pixel rates.

project_scattered(eval_grid_values)

Scattering eval grid to pixel rates; the default is no contribution.

Attributes Documentation

bandpass

Spectral transmission curve, shape (n_wvl,), excluding efficiency.

efficiency = <dataclasses._MISSING_TYPE object>

Methods Documentation

corrected_pm(pm)[source]

Pointing matrix corrected for detector shift and rotation.

Parameters:

pm (jax.Array, shape (3, 3))

Return type:

jax.Array, shape (3, 3)

prepare(obs)[source]

Batch for multi-observation rendering; the default tiles per_obs fields.

Parameters:

obs (Observation)

Return type:

InstrumentModel

project_catalog(source_coords, source_fluxes)[source]

Point sources to pixel rates; the default is no contribution.

Parameters:
Return type:

jax.Array, shape (n_pixels,), or scalar

project_diffuse(hp_values, pm)[source]

HEALPix sky values to pixel rates.

Parameters:
Return type:

jax.Array, shape (n_pixels,)

project_scattered(eval_grid_values)[source]

Scattering eval grid to pixel rates; the default is no contribution.

Parameters:

eval_grid_values (jax.Array, shape (n_lon, n_lat))

Return type:

jax.Array, shape (n_pixels,), or scalar

__init__(efficiency)
static __new__(cls, *args, **kwargs)