eradiate.spectral.Bin#
- class eradiate.spectral.Bin(wmin, wmax, quad=_Nothing.NOTHING, bin_set_id=None)[source]#
Bases:
object
A data class representing a spectral bin in CKD modes.
- Parameters:
wmin (
quantity
orfloat
) – Bin lower spectral bound.Unit-enabled field (default: ucc[“wavelength”]).
wmax (
quantity
orfloat
) – Bin upper spectral bound.Unit-enabled field (default: ucc[“wavelength”]).
quad (
Quad
) – Quadrature rule attached to the CKD bin.bin_set_id (
str
) – Id of the bin set used to create this bin.
- Fields:
Notes
A bin is more than a spectral interval. It is associated with a quadrature rule.
- property interval#
Closed-open interval corresponding to the bin wavelength interval.
- Type:
portion.Interval
- property wcenter#
Bin central wavelength.
- Type:
quantity
- property width#
Bin spectral width.
- Type:
quantity