def assertTilesEqual(self, a, b):
"""compare two numpy arrays that are tiles"""
self.assertEqual(a.shape, b.shape)
cmp = (a == b) # result must be array of matching cells
diff = np.argwhere(cmp == False)
if np.size(diff) > 0:
raise Exception("Tiles differ at: ", np.size(diff), diff)
return True
s3_geotiff_rdd_test.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录