Skip to content

a package that wraps pyatomdb and performs spectrum redshifting

License

Notifications You must be signed in to change notification settings

nicolas-cerardi/xrayflux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xrayflux

License: MIT

A package that wraps pyatomdb, performs spectrum redshifting, optionally applies instrumental response, and outputs the X-ray photon flux. The main functions are:

  • compute_flux: returns the photon flux for a given temperature $T$, abundancy $Z$ and redshift $z$.
  • make_fluxtable: returns tabulated photon fluxes in the $T - z$ dimensions, for a fixed $Z$.

Installation

git clone https://github.com/nicolas-cerardi/xrayflux.git
cd xrayflux
pip install .

Minimal example

using AtomDB 3.0.9 tables.

from xrayflux.xraytables import compute_flux

T = 5 #in keV
z = 0.
flux = compute_flux(T=T, z=z)
print(flux, "ph cm^3 s-1")
>>> 2.672476983729378e-15 ph cm^3 s-1

For more see the demo notebook.

About

a package that wraps pyatomdb and performs spectrum redshifting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published