修复Hedley波段索引类型:__init__中将NIR_band转为int
This commit is contained in:
@ -23,7 +23,7 @@ class Hedley:
|
|||||||
"""
|
"""
|
||||||
self.im_aligned = im_aligned
|
self.im_aligned = im_aligned
|
||||||
self.bbox = self._read_shp_to_bbox(shp_path) if shp_path else None
|
self.bbox = self._read_shp_to_bbox(shp_path) if shp_path else None
|
||||||
self.NIR_band = NIR_band
|
self.NIR_band = int(float(NIR_band))
|
||||||
self.n_bands = im_aligned.shape[-1]
|
self.n_bands = im_aligned.shape[-1]
|
||||||
self.height = im_aligned.shape[0]
|
self.height = im_aligned.shape[0]
|
||||||
self.width = im_aligned.shape[1]
|
self.width = im_aligned.shape[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user