Change pipeline to work in counts/sec and convert on display, add 'gaussian_after' smoothing for convolution of Stokes I/Q/U

This commit is contained in:
Thibault Barnouin
2021-06-04 12:40:36 +02:00
parent da54cd6042
commit 42f33e99ad
56 changed files with 66 additions and 295 deletions

View File

@@ -43,8 +43,8 @@ def get_obs_data(infiles, data_folder="", compute_flux=False):
if compute_flux:
for i in range(len(infiles)):
# Compute the flux in ergs/cm²/s.angstrom
data_array[i] *= headers[i]['PHOTFLAM']/headers[i]['EXPTIME']
# Compute the flux in counts/sec
data_array[i] /= headers[i]['EXPTIME']
return data_array, headers