Python AROSICS COREG_LOCAL使用GDAL-TypeError保存图像:字典必须包含字符串元组
我正在尝试运行python包的本地协同注册模块 作为参考和目标图像,我正在使用中提供的数据 以下是我使用Python 3.6运行的代码:Python AROSICS COREG_LOCAL使用GDAL-TypeError保存图像:字典必须包含字符串元组,python,dictionary,metadata,typeerror,gdal,Python,Dictionary,Metadata,Typeerror,Gdal,我正在尝试运行python包的本地协同注册模块 作为参考和目标图像,我正在使用中提供的数据 以下是我使用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 = { '
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保存CoreRegistered图像时,我不断遇到以下错误:“TypeError:Dictionary必须包含字符串元组”。错误出现在gdal.py的第行:
问题似乎在于元数据变量global_meta是一个空字典
为什么是空的?我怎样才能让Arosics或GDAL保存已注册的CoreRegistered图像呢?可能是个愚蠢的建议,但您是否尝试过将
'q':False
转换为字符串('q':'False'
)
return _gdal.MajorObject_SetMetadata(self, *args)