Response example

The following Python example reads RMF and ARF files, removes all elements smaller than $10^{-6}$ from the RMF, multiplies the compressed RMF and the ARF, and writes out the result.

# read RMF and ARF
inputRMF = rmf("testin.rmf")
inputARF = arf("testin.arf")

# compress the RMF

# if the RMF and ARF are compatible then multiply them and write
# the result adding extra keywords and extensions from testin.rmf.
if inputRMF.checkCompatibility(inputARF) == 0:
  inputRMF *= inputARF
  inputRMF.write("testout.rsp", "testin.rmf")

HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Wednesday, 23-Mar-2022 21:09:03 EDT