SpectralSource

class nyx.emitter.sources.SpectralSource[source]

Bases: SkySource

Routes the diffuse and point paths through one spectral_model call.

Variables:
  • spectral_model (SpectralModel) – Maps per-pixel or per-source conditions to spectra.

  • brightness (Parameter or None) – Fittable brightness multiplier.

Attributes Summary

Methods Summary

diffuse_radiance([obs_data])

Diffuse radiance at the hemisphere positions.

point_sources([obs_data])

Point sources.

Attributes Documentation

brightness = None
spectral_model = <dataclasses._MISSING_TYPE object>

Methods Documentation

diffuse_radiance(obs_data=None)[source]

Diffuse radiance at the hemisphere positions.

Parameters:

obs_data (SourceObsData or None)

Returns:

None if this source has no diffuse component.

Return type:

jax.Array, shape (…, n_wvl), or None

point_sources(obs_data=None)[source]

Point sources.

Parameters:

obs_data (SourceObsData or None)

Returns:

None if this source has no point component.

Return type:

PointSourceData or None

__init__(spectral_model, brightness=None)
static __new__(cls, *args, **kwargs)