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 or float) – Bin lower spectral bound.

    Unit-enabled field (default: ucc[“wavelength”]).

  • wmax (quantity or float) – 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:
  • wmin (quantity) – Bin lower spectral bound.

  • wmax (quantity) – Bin upper spectral bound.

  • quad (Quad) – Quadrature rule attached to the CKD bin.

  • bin_set_id (str or None) – Id of the bin set used to create this bin.

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 pretty_repr#

Pretty representation of the bin.

Type:

str

property wcenter#

Bin central wavelength.

Type:

quantity

property width#

Bin spectral width.

Type:

quantity