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
12 stars 0 forks source link

Apply flaring GTI to create final event lists #341

Closed DavidT3 closed 5 days ago

DavidT3 commented 5 days ago

This is equivalent to the cleaned_evt_lists work flow of XMM - we've created the GTI files and now we need to actually use them. Also have to check if there are preferred flags and patterns for events that we should let the user choose.

DavidT3 commented 5 days ago

So, the question of are there pattern and quality flags in Chandra that we can clean on is yes (predictably). The setup is slightly different to XMM and eROSITA both:

DavidT3 commented 5 days ago

Those grade cuts seem to be applied to the produced evt2 files - I'll still let the user set tighter filters in the cleaning routine though.

DavidT3 commented 5 days ago

HRC doesn't have grades of event as it turns out, I guess it is more of a CCD pixel thing - there may have to be three choices of command for cleaned_chandra_evts to populate.

DavidT3 commented 5 days ago

Also just fundamentally different, need to look into the HRC cleaning process more.

There is a status bit value that appears similar in concept to the ACIS status bit - with the table of bit definitions here https://cxc.cfa.harvard.edu/contrib/juda/memos/status_bits/hrc_status_bits.html

Like ACIS, 0 value for status is good, so we'll keep that.

DavidT3 commented 5 days ago

I am now entirely sure that ACIS grade and energy filtering work fine in the cleaned_chandra_evt function (still not so sure about the flare GTI filtering).

DavidT3 commented 5 days ago

HRC is now working properly, and I can confirm that flare filtering is working for HRC data.

DavidT3 commented 5 days ago

ACIS flaring GTI does do something, but think I have to check its efficacy. Would be nice to find a particularly badly flared observation to test on - perhaps by running it on the ACCEPT-1 observations

DavidT3 commented 5 days ago

The cleaning is all working for sure - the worry I have is that the ACIS flare cleaning doesn't necessarily seem to do much, but that isn't something for this issue.