cxcsds / ciao-contrib

Extra scripts and code to enhance the capabilities of CIAO.
GNU General Public License v3.0
8 stars 6 forks source link

Feature request: add maxsize parameter to simulate_psf #882

Closed adonath closed 2 months ago

adonath commented 3 months ago

I recently used simulate_psf to simulate the PSF for HETG observations, with 1/8th native bin size. With the default parameter of numsig=7 this creates a huge(!) image file for the PSF (65GB). This slows down the PSF creation a lot and the file cannot be handled after. Changing to numsig=1 reduced the computation time and file size a lot (<1GB). However in my case I was only interested I the zero order PSF so it is still too large. Also in the case of HETG observations the numsig parameter is very unintuitive.

As there already exist a minsize parameter I would suggest to introduce a maxsize parameter as well, which overrides the numsig when defined. This would allow me to choose the PSF size independently of the containment.