PixelRefs¶
- class nsb2.core.dtypes.PixelRefs[source]¶
Bases:
objectAssignment of sources to instrument pixels.
Sources are stored once and referenced by index, because a single source can fall into the acceptance of several neighbouring pixels.
- Variables:
indices (list of numpy.ndarray) – One integer array per pixel, holding the indices of the sources that contribute to it.
weights (list of astropy.units.Quantity or None, optional) – One array per pixel, holding the instrument response weight of each contributing source, in
m2for point sources orm2 srfor radiance fields. None until an instrument has filled them in viansb2.core.instrument.Instrument.compute_pixel_weights(). Default is None.
Attributes Summary
Attributes Documentation
- indices = <dataclasses._MISSING_TYPE object>¶
- weights = None¶
- __init__(indices, weights=None)¶
- classmethod __new__(*args, **kwargs)¶