我试图运行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图像呢?在
这可能是个愚蠢的建议,但您是否尝试过将
'q': False
转换为字符串('q' : 'False'
)相关问题 更多 >
编程相关推荐