Skip to content

Instantly share code, notes, and snippets.

@DougBurke
Last active August 29, 2015 14:24
Show Gist options
  • Save DougBurke/04a41831a70e7a59d3e4 to your computer and use it in GitHub Desktop.
Save DougBurke/04a41831a70e7a59d3e4 to your computer and use it in GitHub Desktop.
from sherpa.astro import ui
ui.set_source("faked", "xsapec.A")
A.abundanc=1.0
A.redshift=0.0
arfdata = ui.unpack_arf("tvcol_A.arf")
rmfdata = ui.unpack_rmf("tvcol_A.rmf")
A.kT=1.0
A.norm=1.0
ui.fake_pha("faked", arf=arfdata, rmf=rmfdata, exposure=1.e8, grouped=False)
This file has been truncated, but you can view the full file.
@DougBurke
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment