Background

class xspec.Background(backTuple, parent)

Background spectral data class.

Attributes (all are get-only)

  • areaScale
  • backScale
  • exposure
  • fileName
  • isPoisson
  • values
  • variance
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).

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).

exposure

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

fileName

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

isPoisson

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

values

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

variance

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