eradiate.spectral.Bin

eradiate.spectral.Bin#

class eradiate.spectral.Bin(wmin, wmax, quad=_Nothing.NOTHING)[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.

Fields:
  • wmin (quantity) – Bin lower spectral bound.

  • wmax (quantity) – Bin upper spectral bound.

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

Notes

A bin is more than a spectral interval. It is associated with a quadrature rule.

property pretty_repr#

Pretty representation of the bin.

Type:

str

property wcenter#

Bin central wavelength.

Type:

quantity

property width#

Bin spectral width.

Type:

quantity