add code to compare to Kishimoto's pipeline output

This commit is contained in:
Tibeuleu
2022-10-24 16:53:51 +02:00
parent 3e315783f2
commit 23d802cabb
4 changed files with 123 additions and 16 deletions

View File

@@ -148,7 +148,7 @@ def main():
# Polarization map output
figname = 'NGC1068_K_FOC' #target/intrument name
figtype = '_bin10px' #additionnal informations
SNRp_cut = 3. #P measurments with SNR>3
SNRp_cut = 5. #P measurments with SNR>3
SNRi_cut = 30. #I measurments with SNR>30, which implies an uncertainty in P of 4.7%.
step_vec = 1 #plot all vectors in the array. if step_vec = 2, then every other vector will be plotted
# if step_vec = 0 then all vectors are displayed at full length
@@ -164,7 +164,6 @@ def main():
# Deconvolve data using Richardson-Lucy iterative algorithm with a gaussian PSF of given FWHM.
if deconvolve:
data_array = proj_red.deconvolve_array(data_array, headers, psf=psf, FWHM=psf_FWHM, scale=psf_scale, shape=psf_shape, iterations=iterations, algo=algo)
# Rotate data to have North up
if rotate_data:
data_mask = np.ones(data_array.shape[1:]).astype(bool)