equations.py 文件源码

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

项目:rio-cloudmask 作者: mapbox 项目源码 文件源码
def variability_prob(ndvi, ndsi, whiteness):
    """Use the probability of the spectral variability
    to identify clouds over land.

    Equation 15 (Zhu and Woodcock, 2012)

    Parameters
    ----------
    ndvi: ndarray
    ndsi: ndarray
    whiteness: ndarray

    Output
    ------
    ndarray :
        probability of cloud over land based on variability
    """
    ndi_max = np.fmax(np.absolute(ndvi), np.absolute(ndsi))
    f_max =  1.0 - np.fmax(ndi_max, whiteness)
    return f_max


# Eq 16, land_cloud_prob
# lCloud_Prob = lTemperature_Prob x Variability_Prob
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号