AROSICS COREG_本地使用GDAL类型保存图像错误:字典必须包含字符串的元组

2024-05-29 06:52:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图运行python包AROSICS的本地coregistration模块。在

作为参考和目标图像,我使用tests directory of their repo中提供的数据。在

下面是我使用Python 3.6运行的代码:

    from arosics import COREG_LOCAL

    im_reference = 'ref_S2A_20160608T153121_T33UUU_sub.tif'
    im_target    = 'tgt_S2A_20160529T153631_T33UUU_sub.tif'
    kwargs = {
        'grid_res'     : 200,
        'window_size'  : (64,64),
        'path_out'     : 'auto',
        'projectDir'   : 'my_project',
        'q'            : False,
        'CPUs'         : 1,
    }

    CRL = COREG_LOCAL(im_reference,im_target,**kwargs)
    CRL.correct_shifts() # causes the error

当AROSICS试图使用GDAL保存coregistered图像时,我一直收到以下错误:“TypeError:Dictionary必须包含字符串元组”。错误出现在中格达尔.py第1467行:

^{pr2}$

问题似乎是元数据变量global_meta是一个空字典。在

为什么是空的?我怎样才能让Arosics或GDAL保存coregisted图像呢?在


Tags: 数据图像targetlocal错误kwargsreferencegdal

热门问题