Page 1 of 1
How to increase the processing speed of srctool?
Posted: Mon Jul 11, 2022 9:56 am
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?
Re: How to increase the processing speed of srctool?
Posted: Mon Jul 11, 2022 10:03 am
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
Re: How to increase the processing speed of srctool?
Posted: Mon Jul 11, 2022 3:21 pm
by ChiFong
Many thanks Jeremy! I have changed the parameters as you suggested and the problems are solved.