Democratising Archival X-ray Astronomy (DAXA) is an easy-to-use Python module for downloading multi-mission X-ray telescope data and processing it into usable archives. Users can acquire entire archives, or filter observations based on ID/positions/time. Supports XMM; partial support eROSITA, Chandra, NuSTAR, Swift, Suzaku, ASCA, ROSAT, INTEGRAL
Setting up the paths to the event file, GTI file, and diagnostic histogram - these will be checked
# for at the end to ensure that the process worked. Need to use 'alt_inst' here because the files
# produced have mos1 rather than M1, mos2 rather than M2 in their names. I don't want those files
# to remain named with the alt instrument though, so we also define paths to move them to.
# TODO Do I really need whatever the 'all events' file is?
og_evt_name = "{i}{exp_id}-allevc-{l}-{u}.fits".format(i=alt_inst, exp_id=exp_id, l=filter_lo_en,
u=filter_hi_en)
evt_name = "{i}{exp_id}-allevc-{l}-{u}.fits".format(i=inst, exp_id=exp_id, l=filter_lo_en,
u=filter_hi_en)
og_gti_name = "{i}{exp_id}-gti-{l}-{u}.fits".format(i=alt_inst, exp_id=exp_id, l=filter_lo_en,
u=filter_hi_en)
gti_name = "obsid{o}-inst{i}-subexp{se}-en{l}_{u}keV-gti.fits".format(i=inst, se=exp_id, l=filter_lo_en,
u=filter_hi_en, o=obs_id)
og_hist_name = "{i}{exp_id}-hist-{l}-{u}.qdp".format(i=alt_inst, exp_id=exp_id, l=filter_lo_en,
u=filter_hi_en)
hist_name = "obsid{o}-inst{i}-subexp{se}-en{l}_{u}keV-hist.qdp".format(i=inst, se=exp_id, l=filter_lo_en,
u=filter_hi_en, o=obs_id)
I needed to make these changes in the code to make it run
original was the below
Setting up the paths to the event file, GTI file, and diagnostic histogram - these will be checked