Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espfilt file names #373

Open
clustercosmos opened this issue Nov 26, 2024 · 0 comments
Open

espfilt file names #373

clustercosmos opened this issue Nov 26, 2024 · 0 comments

Comments

@clustercosmos
Copy link
Collaborator

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant