Commit 372805c4 authored by Arthur Vigan's avatar Arthur Vigan
Browse files

Recenter non-masked data

parent a1e563d1
......@@ -802,7 +802,6 @@ if __name__ == '__main__':
#MASK_temp = MASK
MASK_temp = shift(MASK, [-shift_pix_FPM, 0], output=None, order=1, mode='constant', cval=0.0, prefilter=True)
for k in range(N_LD):
if ADC_flag == 1:
shift_value = 1000*DISPER_ADC(lambda_vect[0]*1e6, lambda_vect[k]*1e6, 90-ELEVATION(DEC, HA_0), z_min, z_max)
......@@ -814,8 +813,8 @@ if __name__ == '__main__':
#print(shift_value*MASperPIXEL)
I_temp[k] = I_temp[k]*np.flipud(MASK_temp)
I_temp[k] = shift(I_temp[k], [shift_value, 0], output=None, order=1, mode='constant', cval=0.0, prefilter=True)
I_temp_nomask[k] = shift(I_temp_nomask[k], [shift_value, 0], output=None, order=1, mode='constant', cval=0.0, prefilter=True)
image_filename = path_directory + 'PSF_HALO_ON_masked_centered_Nexp{0:04d}.fits'.format(i)
image_filename_nomask = path_directory + 'PSF_HALO_ON_notmasked_centered_Nexp{0:04d}.fits'.format(i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment