i4Ds / STIX-GSW

STIX Ground-Analysis Software Package
11 stars 16 forks source link

Fixed bug in the estimation of the total number of bkg counts #186

Closed paolomassa closed 1 year ago

paolomassa commented 1 year ago

In the previous version of the code, we didn't keep into account the live time fraction of the science observation when we estimated the total number of bkg counts in an image. Now, this estimation is performed as follows:

  1. The bkg counts recorded by each pixel are divided by the corresponding live time (to make them count rates, their units being count s^-1)
  2. We multiply the duration of the time integration of the science file by the corresponding live time fraction. In this way, we obtain the total number of seconds in which each pixel was taking measurements. We call this time the duration of the actual observation time
  3. The bkg count rates are multiplied by the duration duration of the actual observation time to get an estimate of the total number of bkg counts recorded by each pixel during the observation time interval
  4. We finally sum the total number of bkg counts recorded by all the pixels
samaloney commented 1 year ago

Look good to me but are the demo files not now downloaded via sock_copy rather than being stored in git repo?

paolomassa commented 1 year ago

You are right @samaloney, I removed the fits files used in the imaging demo