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

Update 03_xmm_simulation.py #30

Open bojobo opened 3 months ago

bojobo commented 3 months ago

Simulate all resolutions for one given SIMPUT before moving to the next one. This way when consume_data == True the file will be deleted sooner resulting in more free space during simulation.

bojobo commented 3 months ago

There are some changes left for this to work:

bojobo commented 3 months ago

Maybe it's even smarter to first simulate one given resolution, compress (with just tar) and move it to the working directory. This should free even more space than deleting the SIMPUTs.

After all resolution have been simulated, use tar -A to merge the individual resolutions, further compress the tar with gzip and move it to the output directory.