ResolvedField¶
- class nsb2.core.dtypes.ResolvedField[source]¶
Bases:
objectSources whose spectra have been resolved onto a wavelength grid.
- Variables:
coords (astropy.coordinates.SkyCoord) – Source positions, shape
(N,).weights (astropy.units.Quantity) – Per-source brightness weights, shape
(N, C_w).wvl (astropy.units.Quantity) – Wavelength grid, shape
(W,).flx (astropy.units.Quantity) – Per-source spectra, shape
(N, W, C_comp).radiance_field (bool) – True if the field is a radiance rather than a set of discrete sources.
See also
SourceField.resolve_spectraProduces 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:
- __init__(coords, weights, wvl, flx, radiance_field)¶
- classmethod __new__(*args, **kwargs)¶