DavidT3 / DAXA

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
BSD 3-Clause "New" or "Revised" License
15 stars 0 forks source link

espfilt file names #373

Open clustercosmos opened 5 days ago

clustercosmos commented 5 days ago

I needed to make these changes in the code to make it run

 og_evt_name = "{i}{exp_id}-allevc.fits".format(i=alt_inst, exp_id=exp_id, l=filter_lo_en,
                                                               u=filter_hi_en)
        evt_name = "{i}{exp_id}-allevc.fits".format(i=inst, exp_id=exp_id, l=filter_lo_en,
                                                            u=filter_hi_en)
        og_gti_name = "{i}{exp_id}-gti.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.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)

original was the below

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)