calc_strehl_on_sky¶
- paarti.utils.maos_utils.calc_strehl_on_sky(file_list, out_file, apersize=0.3, instrument=None, skysub=False)[source]¶
Calculate the Strehl, FWHM, and RMS WFE for each image in a list of files. The output is stored into the specified <out_file> text file. The FWHM (and Strehl) is calculated over the specified aperture size using a 2D gaussian fit. The Strehl is estimated by taking the max pixel flux / wide-aperture flux and normalizing by the same on a diffraction-limited image. Note that the diffraction limited image comes from an external file.
The diffraction limited images come with the pipeline. For Keck, they are all obtained empirically using the NIRC2 camera and filters and they are sampled at 0.009952 arcsec / pixel. We will resample them as necessary. We will play fast and loose with them and use them for both NIRC2 and OSIRIS. They will be resampled as needed.