eradiate.spectral.BinSet#
- class eradiate.spectral.BinSet(bins)[source]#
Bases:
object
A data class representing a bin set used in CKD mode.
See also
- classmethod arange(start, stop, step=<Quantity(10.0, 'nanometer')>, quad=None)[source]#
Generate a bin set with linearly spaced bins.
- classmethod default()[source]#
Generate a default bin set, which covers Eradiate’s default spectral range with 10 nm-wide bins.
- classmethod from_absorption_dataset(dataset, quad=None)[source]#
Generate a bin set from an absorption dataset.
- Parameters:
- Returns:
BinSet
– Generated bin set.
Notes
Assumes that:
the absorption dataset has a
bin
coordinate with values in nanometers.the absorption dataset has a
bin_set
attribute with the bin width in nanometers.