cxcsds / ciao-contrib

Extra scripts and code to enhance the capabilities of CIAO.
GNU General Public License v3.0
8 stars 6 forks source link

sherpa_contrib.marx fluxes #194

Closed nplee closed 5 years ago

nplee commented 5 years ago

@hamogu Moritz: I was just testing out your sherpa_contrib.marx routines and I'm puzzled. From what I understand, input spectra in MARX should have flux units of [photons/cm2/s/keV] (https://space.mit.edu/cxc/marx/indetail/models.html#parameter-SpectrumFile) while ChaRT requires flux in [photons/cm2/s].

Using the same absorbed power-law model and the sherpa_contrib.chart routines and sherpa_contrib.marx routines, the resulting spectrum appear to have the same fluxes, which I wouldn't have expected given the different unit requirements (see attached files).

source_flux_chart.txt source_flux_marx.txt

Can you please confirm whether the documentation or module is problematic?

hamogu commented 5 years ago

I'm on vacation. I'll look at it when I return on January.

hamogu commented 5 years ago

I obviously forgot to follow-up on this, my vacation ended 6 weeks ago. Soon!