Open bzaire opened 2 months ago
apero_pol_spirou.py calls the function _clean_polarimetrydata with overwrite = True, which in turn sets the wavelengths outside the defined mask to nan. Can we retain the wavelength information in the output file?
Lines 1756 - 1763 of gen_pol.py:
if overwrite: wavemap[order_num][~mask] = np.nan pol[order_num][~mask] = np.nan polerr[order_num][~mask] = np.nan stokesi[order_num][~mask] = np.nan stokesierr[order_num][~mask] = np.nan null1[order_num][~mask] = np.nan null2[order_num][~mask] = np.nan
@edermartioli might have to answer this one. I think there was a good reason for this.
apero_pol_spirou.py calls the function _clean_polarimetrydata with overwrite = True, which in turn sets the wavelengths outside the defined mask to nan. Can we retain the wavelength information in the output file?
Lines 1756 - 1763 of gen_pol.py: