scopesim.effects.psfs.semianalytical.nmrms_from_strehl_and_wavelength

scopesim.effects.psfs.semianalytical.nmrms_from_strehl_and_wavelength#

scopesim.effects.psfs.semianalytical.nmrms_from_strehl_and_wavelength(strehl: float, wavelength, strehl_hdu, plot=False) float#

Return the wavefront error needed to make a PSF with desired strehl ratio.

Parameters:
  • strehl (float) – [0.001, 1] Desired strehl ratio. Values 1<sr<100 will be scale to <1

  • wavelength (float) – [um]

  • strehl_hdu (np.ndarray) – 2D map of strehl ratio as a function of wavelength [um] and residual wavefront error [nm RMS]

  • plot (bool)

Returns:

nm – [nm] residual wavefront error for generating an on-axis AnisoCADO PSF with the desired strehl ratio at a given wavelength

Return type:

float