Commit c6b200ac authored by Arthur Vigan's avatar Arthur Vigan
Browse files

Change paths for cluster, save only necessary data in 32 bits

parent b2e4a9f6
......@@ -118,12 +118,12 @@ if __name__ == '__main__':
start_time = time.time()
# find out how process was started
manual = True
manual = False
if sys.argv[0] == 'MAIN_mp.py':
manual = False
HARMONI_DIR = '/Users/avigan/Work/HARMONI/Simulations/harmoni-hc/hrm-hc/'
COM_DIR = '/Users/avigan/Work/HARMONI/Simulations/harmoni-hc/hrm-hc/COMMON_FILES/'
HARMONI_DIR = '/net/GSP/hirise/HARMONI-HC/'
COM_DIR = '/home/avigan/GitHub/harmoni-hc/hrm-hc/common_files/'
# HARMONI_DIR = '/Users/carlotal/harmoni-hc/hrm-hc'
# COM_DIR = '/Users/carlotal/harmoni-hc/hrm-hc/COMMON_FILES/'
......@@ -851,20 +851,20 @@ if __name__ == '__main__':
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)
image_filename = path_directory + 'PSF_HALO_ON_masked_centered_Nexp{0:04d}.fits'.format(i)
fits.writeto(image_filename, I_temp)
fits.setval(image_filename, 'ORIGIN', value='ESO-ARMAZONES')
fits.setval(image_filename, 'TELESCOP', value='ESO-ELT')
fits.setval(image_filename, 'INSTRUME', value='HARMONI')
fits.setval(image_filename, 'EXPTIME', value='{:.3f}'.format(T_exp*3600))
fits.setval(image_filename, 'AIRMASS', value='{:.3f}'.format(1/np.cos(np.pi/180*(90-ELEVATION(DEC*1.0, HA_0)))))
fits.setval(image_filename, 'PI-COI', value='NIRANJAN')
fits.setval(image_filename, 'DISPELEM', value=BAND)
fits.setval(image_filename, 'APODIZER', value=APODIZER)
fits.setval(image_filename, 'FPM', value=FPM)
# image_filename = path_directory + 'PSF_HALO_ON_masked_centered_Nexp{0:04d}.fits'.format(i)
# fits.writeto(image_filename, I_temp.astype(np.float32))
# fits.setval(image_filename, 'ORIGIN', value='ESO-ARMAZONES')
# fits.setval(image_filename, 'TELESCOP', value='ESO-ELT')
# fits.setval(image_filename, 'INSTRUME', value='HARMONI')
# fits.setval(image_filename, 'EXPTIME', value='{:.3f}'.format(T_exp*3600))
# fits.setval(image_filename, 'AIRMASS', value='{:.3f}'.format(1/np.cos(np.pi/180*(90-ELEVATION(DEC*1.0, HA_0)))))
# fits.setval(image_filename, 'PI-COI', value='NIRANJAN')
# fits.setval(image_filename, 'DISPELEM', value=BAND)
# fits.setval(image_filename, 'APODIZER', value=APODIZER)
# fits.setval(image_filename, 'FPM', value=FPM)
image_filename_nomask = path_directory + 'PSF_HALO_ON_notmasked_centered_Nexp{0:04d}.fits'.format(i)
fits.writeto(image_filename_nomask, I_temp_nomask)
fits.writeto(image_filename_nomask, I_temp_nomask.astype(np.float32))
fits.setval(image_filename_nomask, 'ORIGIN', value='ESO-ARMAZONES')
fits.setval(image_filename_nomask, 'TELESCOP', value='ESO-ELT')
fits.setval(image_filename_nomask, 'INSTRUME', value='HARMONI')
......
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