ZH: never show matrix manipulation for baseline phase diffs

This commit is contained in:
Eric Teunis de Boone 2022-12-22 17:59:23 +01:00
parent a6c62f376b
commit 00d73175f7

View file

@ -76,6 +76,8 @@ if __name__ == "__main__":
if fig_dir:
fig.savefig(path.join(fig_dir, __file__ + f".matrix.original.pdf"))
plt.close(fig)
# Modify the matrix to let each column represent multiple
# measurements of the same baseline (j,0) phase difference
@ -97,6 +99,8 @@ if __name__ == "__main__":
if fig_dir:
fig.savefig(path.join(fig_dir, __file__ + f".matrix.first_row.pdf"))
plt.close(fig)
sigma_phase_matrix = sigma_phase_matrix - first_row
sigma_phase_matrix = lib.phase_mod(sigma_phase_matrix)
@ -130,6 +134,8 @@ if __name__ == "__main__":
if fig_dir:
fig.savefig(path.join(fig_dir, __file__ + f".matrix.modified.pdf"))
plt.close(fig)
# write into antenna hdf5
with h5py.File(antennas_fname, 'a') as fp:
group = fp['antennas']