def _rescale(self, bands):
""" Rescale bands """
# self.output("Rescaling", normal=True, arrow=True)
for key, band in enumerate(bands):
print "processing"
# self.output("band %s" % self.bands[key], normal=True, color='green', indent=1)
bands[key] = sktransform.rescale(band, 2)
bands[key] = (bands[key] * 65535).astype('uint16')
return bands
评论列表
文章目录