Save the raw total flux image as PrimaryHDU

fix for rebase display on main

fix rebase display on main
This commit is contained in:
2025-03-14 14:30:30 +01:00
parent cdc19c42b4
commit e9efd02e3f

View File

@@ -274,7 +274,7 @@ def main(target=None, proposal_id=None, infiles=None, output_dir="./data", crop=
flux_data=np.array([flux_data, flux_error, flux_mask]),
flux_head=flux_head,
)
outfiles.append("/".join([data_folder, Stokes_hdul[0].header["FILENAME"] + ".fits"]))
outfiles.append("/".join([data_folder, Stokes_hdul["I_STOKES"].header["FILENAME"] + ".fits"]))
# Step 5:
# crop to desired region of interest (roi)