Open jessicapilling opened 5 months ago
A quick fix is to limit the search_distance argument for erosita, and only allow a search_distance of 1.8deg, this will only collect sources within the unique area of the skytile, and not detect any in the duplicated area.
I made some diagrams to help articulated the problem:
Obviously some cases are more rare than others, but ideally XGA will be able to cope with all of them
The trouble with limiting the search radius is that we will completely miss sources in case 2 and 3.
We will also still over-count events for sources in cases 5 and 6.
I think to deal with the problem properly:
New plan:
Make sure to consider erositacalpv
Step 1: TODO
Step 2: TODO
The way eRASS-1 has been released is a bit problematic for XGA.
They have divided the sky into 'skytiles' which is the equivalent to an obs_id.
Each skytile has a unique 3.6 x 3.6 area. Surrounding this area is a variable area where all the events are duplicated in other skytiles/ obs_ids.
This is not good for XGA since we take all event lists from all associated observations to do analysis, so we are currently counting these duplicate events as different events. So this means we will over estimate the counts in the clusters if they fall in the overlap region.
Also XGA only makes images of the 3.6 x 3.6 region of an obsid. This means that if a cluster falls on an overlap region, it will not appear in XGA generated images and therefore exposure maps as well.
We need to find a sensible way to deal with this so that the user can see the individual observations that the cluster appears in and make X-ray products from all associated obs, but have XGA ignore duplicate events when doing any anaylsis of the products.