Background

class xspec.Background(backTuple, parent)

Background spectral data class.

Attributes (all are get-only)

  • areaScale

  • backScale

  • exposure

  • fileName

  • isPoisson

  • values

  • variance

property areaScale

The Background area scaling factor (GET only).

This is either a single float (if file stores it as a keyword), or a tuple of floats (if file stores column).

property backScale

The Background back scaling factor (GET only).

This is either a single float (if file stores it as a keyword), or a tuple of floats (if file stores column).

property exposure

The exposure time keyword value [float] (GET only).

property fileName

The spectrum's file name [string] (GET only).

property isPoisson

Boolean flag, True if spectrum has Poisson errors (GET only).

property values

Tuple of floats containing the background rates array in counts/sec (GET only).

property variance

Tuple of floats containing the variance of each channel (GET only).