ResolvedField

class nsb2.core.dtypes.ResolvedField[source]

Bases: object

Sources whose spectra have been resolved onto a wavelength grid.

Variables:

See also

SourceField.resolve_spectra

Produces instances of this class.

Attributes Summary

Methods Summary

integrate([extra_weights])

Integrate the weighted spectra over wavelength.

Attributes Documentation

coords = <dataclasses._MISSING_TYPE object>
flx = <dataclasses._MISSING_TYPE object>
radiance_field = <dataclasses._MISSING_TYPE object>
weights = <dataclasses._MISSING_TYPE object>
wvl = <dataclasses._MISSING_TYPE object>

Methods Documentation

integrate(extra_weights=None)[source]

Integrate the weighted spectra over wavelength.

Parameters:

extra_weights (array_like, optional) – Additional multiplicative, wavelength-dependent weights such as atmospheric extinction. Must broadcast against (N, W, C_comp). Default is no extra weighting.

Returns:

Per-source rates, shape (N, C_comp).

Return type:

astropy.units.Quantity

__init__(coords, weights, wvl, flx, radiance_field)
classmethod __new__(*args, **kwargs)