AtmosphereModel

class nyx.core.protocols.AtmosphereModel[source]

Bases: Module

Extinction and scattering, shared across every instrument in a scene.

Trainable quantities are the Parameter fields a subclass declares.

Methods Summary

evaluate(sky)

Extinction and scattering for the current trainable parameters.

extinct(altitudes, spectra, height_km)

Extinct point-source spectra; the default returns them unchanged.

scatter_sources(sky, source_coords, ...)

Scatter discrete point sources into the FOV; the default is none.

Methods Documentation

evaluate(sky)[source]

Extinction and scattering for the current trainable parameters.

Parameters:

sky (SkyGeometry)

Return type:

AtmosphereResult

extinct(altitudes, spectra, height_km)[source]

Extinct point-source spectra; the default returns them unchanged.

Parameters:
Return type:

jax.Array, shape (n_sources, n_wvl)

scatter_sources(sky, source_coords, source_spectra, bp)[source]

Scatter discrete point sources into the FOV; the default is none.

Parameters:
Return type:

jax.Array, shape (n_lon, n_lat), or a scalar zero

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