SpectrogramABC#

class sunraster.spectrogram.SpectrogramABC[source]#

Bases: ABC

Attributes Summary

celestial

Return the celestial coordinates for each pixel.

exposure_time

Return the exposure time for each exposure.

spectral_axis

Return the spectral coordinates for each pixel.

time

Return the time coordinates for each pixel.

Methods Summary

apply_exposure_time_correction([undo, force])

Applies or undoes exposure time correction to data and uncertainty and adjusts unit.

Attributes Documentation

celestial#

Return the celestial coordinates for each pixel.

exposure_time#

Return the exposure time for each exposure.

spectral_axis#

Return the spectral coordinates for each pixel.

time#

Return the time coordinates for each pixel.

Methods Documentation

abstractmethod apply_exposure_time_correction(undo=False, force=False)[source]#

Applies or undoes exposure time correction to data and uncertainty and adjusts unit.

Correction is only applied (undone) if the object’s unit doesn’t (does) already include inverse time. This can be overridden so that correction is applied (undone) regardless of unit by setting force=True.

Parameters:
  • undo (bool) – If False, exposure time correction is applied. If True, exposure time correction is undone. Default=False

  • force (bool) – If not True, applies (undoes) exposure time correction only if unit doesn’t (does) already include inverse time. If True, correction is applied (undone) regardless of unit. Unit is still adjusted accordingly.

Returns:

result – New SpectrogramCube in new units.

Return type:

sunraster.SpectrogramCube