add data rotation (instead of stokes rotation) and add sentinels

This commit is contained in:
Thibault Barnouin
2021-06-10 20:02:53 +02:00
parent f7b6d9dfaf
commit 1dc40f96c4
41 changed files with 178 additions and 43 deletions

View File

@@ -41,6 +41,10 @@ def get_obs_data(infiles, data_folder="", compute_flux=False):
data_array.append(f[0].data)
data_array = np.array(data_array)
# Prevent negative count value in imported data
for i in range(len(data_array)):
data_array[i][data_array[i] < 0.] = 0.
if compute_flux:
for i in range(len(infiles)):
# Compute the flux in counts/sec