XRB_XAGN_MODELS#

Name#

XRB_XAGN_MODELS

Purpose#

Generates the spectra, counts, and X-ray parameters for given a set of X-ray bandpasses and ARF for an X-ray binary population (XRB). The spectra and counts can include or not include Galactic absorption and X-ray AGN emission.

Calling Sequence#

xray_models = xrb_xagn_models(xray_bandpass [, xray_exposure = , arf_E_lo = , arf_E_hi = , $
                              arf_specresp = , redshift = , lumin_dist = , $
                              galactic_nH = , xray_abs_model = , $
                              xray_agn_model = , xray_unit = , /error_check])

Input#

xray_bandpassint, float or double array(2, Nxray)

The bandpasses for the X-ray spectrum. The first column should be the lower energy bound, and the second should be the upper energy bound \([{\rm keV}]\).

Optional Inputs#

xray_exposureint, float or double array(Nxray)

The exposure time of the observations, one per band \([{\rm s}]\). Required to generate model count-rate spectrum.

arf_E_lofloat or double array(Nchannels)

Lower energy bounds of each channel in the ARF \([{\rm keV}]\). Required to generate model count-rate spectrum.

arf_E_hifloat or double array(Nchannels)

Upper energy bounds of each channel in the ARF \([{\rm keV}]\). Required to generate model count-rate spectrum.

arf_specrespfloat or double array(Nchannels)

The spectral response of the ARF at each channel \([{\rm cm}^2]\). Required to generate model count-rate spectrum.

redshiftint, float, or double scalar

The redshift of the model. (Default = 0.0)

lumin_distint, float, double scalar

The luminosity distance of the model \([{\rm Mpc}]\). (Default = 10)

galactic_nHint, float, or double scalar

Galactic, i.e. Milky Way, neutral Hydrogen column density along the line of sight \([10^{20}\ {\rm cm}^{-2}]\). (Default = 0)

xray_abs_modelstring scalar

The name of the X-ray absorption model to apply to the X-ray emission. Current options are: 'TBABS-WILM', 'ATTEN', and 'NONE'. (Default = 'TBABS-WILM')

xray_agn_modelstring scalar

The X-ray AGN emission model to use. Current options are: 'PLAW', 'QSOSED', 'NONE'. (Default = 'QSOSED')

xray_unitstring scalar

The type of X-ray data to use in fitting. Current options are 'COUNTS' and 'FLUX'. (Default = 'COUNTS')

error_checkflag

If set, all inputs are checked for errors. Otherwise, all inputs are assumed to be of correct format.

Output#

xray_modelsstructure

A structure including the the XRB, hot gas, and X-ray AGN models in terms of luminosities and count rates given the input ARF. The full description of the structure is as follows:

TAG

TYPE

DESCRIPTION

XRAY_BANDPASS

double(2, Nxray)

X-ray bandpasses \([{\rm keV}]\), same as input

XRAY_EXPOSURE [1]

double(Nxray)

X-ray exposure time per band \([{\rm s}]\), same as input

WAVE_REST

double(Nwave)

Rest-frame wavelength of the models \([\mu \rm m]\)

WAVE_OBS

double(Nwave)

Observed-frame wavelength of the models \([\mu \rm m]\)

EXP_NEG_TAU_XRAY

double(Nwave)

Rest-frame absorption curve normalized to \({\rm nH} = 10^{20}\ {\rm cm}^2\)

EXP_NEG_TAU_XRAY_MW

double(Nwave)

Observed-frame absorption curve normalized to \({\rm nH} = 10^{20}\ {\rm cm}^2\)

LNU_AGN [2]

double(Nwave, Nmass, Nmdot)

AGN model normalized to 1 \(L_\odot\ {\rm Hz}^{-1}\) at rest-frame 2 keV \([L_\odot\ {\rm Hz}^{-1}]\)

LNU_XRB

double(Nwave)

XRB model normalized to 1 \(L_\odot\ {\rm Hz}^{-1}\) over rest-frame 2-10 keV bandpass \([L_\odot\ {\rm Hz}^{-1}]\)

LNU_GAS

double(Nwave)

Hot gas model normalized to 1 \(L_\odot\ {\rm Hz}^{-1}\) over rest-frame 0.5-2 keV bandpass \([L_\odot\ {\rm Hz}^{-1}]\)

AGN_MODEL [1] [2]

double(Nwave, Nmass, Nmdot)

Instrumental count rate density produced by normalized AGN model \([{\rm counts\ s^{-1}\ Hz^{-1}}]\)

XRB_MODEL [1]

double(Nwave)

Instrumental count rate density produced by normalized XRB model \([{\rm counts\ s^{-1}\ Hz^{-1}}]\)

GAS_MODEL [1]

double(Nwave)

Instrumental count rate density produced by normalized hot gas model \([{\rm counts\ s^{-1}\ Hz^{-1}}]\)

XRB_COUNTS_LNU [1]

double(Nxray)

Instrumental counts produced by normalized XRB model integrated over the supplied bandpass (Galactic absorption only) \([{\rm counts}]\)

GAS_COUNTS_LNU [1]

double(Nxray)

Instrumental counts produced by normalized hot gas model integrated over the supplied bandpass (Galactic absorption only) \([{\rm counts}]\)

GALACTIC_NH

double

Galactic neutral hydrogen column density \([10^{20}\ {\rm cm}^{-2}]\), same as input

L2500 [3]

double(Nmass, Nmdot)

2500 Angstrom intrinsic luminosity grid from qsosed model, shifted to the observed frame \([L_\odot\ {\rm Hz}^{-1}]\).

AGN_MASS [3]

double(Nmass, Nmdot)

Supermassive black hole mass grid from qsosed model \([M_\odot]\)

AGN_LOGMDOT [3]

double(Nmass, Nmdot)

Log10 of SMBH accretion rate grid from qsosed model, normalized by the Eddington rate

REDSHIFT

double

Redshift of the model, same as input

XRAY_ABS_MODEL

string

Name of the X-ray absorption model, same as input

XRAY_AGN_MODEL

string

Name of the AGN model, same as input

Modification History#

  • 2021/09/21: Created (Erik B. Monson).

  • 2021/10/11: Added X-ray absorption (Erik B. Monson).

  • 2022/03/16: Moved to separate file and documentation improved (Erik B. Monson).

  • 2022/04/18: qsosed option now loads entire grid (Erik B. Monson)

  • 2022/06/22: Major update to include new implementation (Keith Doore)

  • 2022/07/07: Changed several variable names and updated documentation (Keith Doore)

  • 2022/09/14: Updates to allow fitting with X-ray fluxes (Erik B. Monson)

  • 2022/11/02: Galactic NH is now in units of 1e20 cm-2 (Erik B. Monson)