eradiate.ckd.Bin#
- class eradiate.ckd.Bin(id, wmin, wmax, quad, bin_set_id=None)[source]#
Bases:
object
A data class representing a spectral bin in CKD modes.
- Parameters:
id (
str
) – Bin identifier.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:
- classmethod convert(value)[source]#
If
value
is a tuple or a dictionary, try to construct aBin
instance from it. Otherwise, returnvalue
unchanged.
- property wcenter#
Bin central wavelength.
- Type:
quantity
- property width#
Bin spectral width.
- Type:
quantity