SamSweere / xmm-epicpn-simulator

Simulation code for XMM-Newton EPIC-pn data using SIXTE and SIMPUT, designed to create training data for deep learning based super-resolution and de-noising.
https://academic.oup.com/mnras/article/517/3/4054/6694110
4 stars 2 forks source link

Remove blank space when simulating individual CCDs #14

Closed bojobo closed 4 months ago

bojobo commented 4 months ago

The focal point of EPN is not in the center because of the gaps between the CCDs. It is rather shifted a bit. This shift results in empty rows and columns on the upper and right edge. Remove these to reduce the size of the image.

image

bojobo commented 4 months ago

Also, while at it: Make sure that pixel values are first multiplied with res_mult and afterwards rounded up with np.ceil when calculating them.

bojobo commented 4 months ago

While testing, I've noticed that the shift done by this line is wrong. I'm not quite sure how these values have to be used.

bojobo commented 4 months ago

Got it: The shift should be used to center the image.