njcuk9999 / apero-drs

A PipelinE to Reduce Observations - The DRS for SPIRou (CFHT)
MIT License
12 stars 0 forks source link

p.fits files have wavelengths equal to nan #766

Open bzaire opened 2 months ago

bzaire commented 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

njcuk9999 commented 2 months ago

@edermartioli might have to answer this one. I think there was a good reason for this.