est.core.types.spectra.Spectra#

class est.core.types.spectra.Spectra(energy, spectra: Iterable | None = None)[source]#

Bases: object

A map of spectrum.

  • data: numpy array of Spectrum. Expected to be 2D.

  • energy: set of energy for each position (x,y)

check_validity()[source]#
property data#
property energy: ndarray#

Energy in eV

static from_dict(ddict, dimensions)[source]#
Parameters:
  • ddict (dict) – dict containing the data to be loaded

  • dimensions (tuple) – information regarding spectra dimensions

keys() tuple[source]#

return the tuple of keys contained in the spectra

map_to(data_info: str, relative_to: str = 'energy')[source]#

Create a map a specific key of this spectra.

reshape(shape)[source]#
property shape#