getVIref.py 文件源码

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

项目:Global_GPP_VPM_NCEP_C3C4 作者: zhangyaonju 项目源码 文件源码
def smooth(tile):
    #first use this function to get mean and save it in an array
    temp = import_all_year_data(tile)
    ####after get the mean value for all doy, I will run a bise gapfill first
    print temp.size
    ##when using the single processing
    #inputVI = pd.DataFrame(temp)
    #VIsmoothed = inputVI.apply(VIsmooth, axis=0)
    #VIsmoothed = VIsmoothed.as_matrix()
    #VIsmoothed = parallelize_dataframe(temp)
    ##when using the multiprocessing
    VIsmoothed = dataframeapply(temp)
    VIsmoothed = VIsmoothed.reshape(VIsmoothed.size/2400/2400, 2400, 2400)
    TILEdir = os.path.join(dirref, tile)
    if not os.path.exists(TILEdir):
        os.makedirs(TILEdir)
    export_array (Rasters=np.int16(VIsmoothed), directory=TILEdir, \
        prod='EVI.BISE.SG', tile=tile, index=range(1, 369, 8))
    temp = None
    inputVI = None
    VIsmoothed = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号