Data class structure¶
Spectral & response data¶
- class pyspex.spex.data.Data¶
Main data class used to set and get observed data.
- Variables:
ninst (int) – Number of instruments loaded.
inst (list of objects) – Python list of instrument objects.
- update()¶
Update the number of instruments.
- class pyspex.spex.data.Instrument¶
Properties of an instrument.
- Variables:
nsector (int) – Number of sectors in instrument.
nregion – Number of data regions in response.
nreg (int) – Number of regions in data.
ncomp (int) – Number of response components.
index (int) – Index number of this instrument.
sponame (str) – Filename of .spo file.
resname (str) – Filename of .res file
reg (list of objects) – List of regions for this instrument.
- update(iins)¶
Update the instrument information.
- Parameters:
iins (int) – Instrument number to update.
- class pyspex.spex.data.Region¶
Properties of one region.
- Variables:
index (int) – Region number.
emin (float) – Min data energy range (keV).
emax (float) – Max data energy range (keV).
srccount (float) – Net source counts.
srccerr (float) – Net source count error.
bkgcount (float) – Subtracted background counts.
bkgcerr (float) – Error subtracted background counts.
srcrate (float) – Net source count rate (counts/s).
srcrerr (float) – Net source count rate error (counts/s).
bkgrate (float) – Background count rate subtracted.
bkgrerr (float) – Error background count rate subtracted.
mbkgrate (float) – Model background count rate.
tintmin (float) – Minimum integration time per channel.
tintmax (float) – Maximum integration time per channel.
tintaver (float) – Average integration time per channel.
- update(iins, ireg)¶
Update the region properties.
- Parameters:
iins (int) – Instrument number.
ireg (int) – Region number to update.