gammapy / gammapy

A Python package for gamma-ray astronomy
https://gammapy.org
BSD 3-Clause "New" or "Revised" License
231 stars 195 forks source link

Exposure correction for `MapDataset.to_region_map_dataset()` #5252

Open Astro-Kirsty opened 6 months ago

Astro-Kirsty commented 6 months ago

Description When utilising MapDataset.to_region_map_dataset(region) if the region passed is not fully contained inside the geometry, the exposure needs to be corrected (take into account the fraction of the region contained inside the geom). The IRF result will otherwise be incorrect, either over or under-estimated

Expected behavior It is unclear how we would like to proceed, therefore discussion is needed. We can add to the agenda of the next dev call

bkhelifi commented 1 month ago

Where do we stand exactly here?