How to increase the processing speed of srctool?

produce source-level products (spectra, light curves and corresponding instrumental correction vectors/matrices).
Post Reply
ChiFong
Posts: 4
Joined: Mon Jul 11, 2022 9:48 am

How to increase the processing speed of srctool?

Post by ChiFong »

Hello all,

I'm using eSASS in docker windows. When I use srctool to produce source spectrum, the processing time is incredibly long: it takes ~30 minutes to get the spectrum of a source with area ~0.36 deg². Is there a way to work around this?
JeremySanders
Posts: 32
Joined: Mon Jun 28, 2021 7:24 am

Re: How to increase the processing speed of srctool?

Post by JeremySanders »

Dear Chi Fong

The processing speed scales with the xgrid parameter squared and linearly with the tstep parameter. If your source is large you can increase xgrid and tstep. You need to choose parameters which adequately sample the source over time. Please see the documentation on these parameters.

For large sources you can also disable psf correction (psftype=NONE). In addition parallel processing can be used to increase the speed up to a factor of 7, by setting the OMP_NUM_THREADS environment variable.

Best wishes

Jeremy

Edited: mistake in scaling of tstep
ChiFong
Posts: 4
Joined: Mon Jul 11, 2022 9:48 am

Re: How to increase the processing speed of srctool?

Post by ChiFong »

Many thanks Jeremy! I have changed the parameters as you suggested and the problems are solved.
Post Reply