shackhartmann.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:prysm 作者: brandondube 项目源码 文件源码
def psf_shift(lenslet_efl, dx, dy, mag=1):
    ''' Computes the shift of a PSF, in microns.

    Args:
        lenslet_efl (`microns`): EFL of lenslets.

        dx (`np.ndarray`): dx gradient of wavefront.

        dy (`np.ndarray`): dy gradient of wavefront.

        mag (`float`): magnification of the collimation system.

    Returns:
        `numpy.ndarray`: array of PSF shifts.

    Notes:
        see eq. 12 of Chanan, "Principles of Wavefront Sensing and Reconstruction"
        delta = m * fl * grad(z)
        m is magnification of SH system
        fl is lenslet focal length
        grad(z) is the x, y gradient of the opd, z, which is expressed in
        radians.

    '''
    coef = -mag * lenslet_efl
    return coef * dx, coef * dy
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号