From 5d87137313c45347930c4117e6b47a313d79c96d Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Fri, 4 Nov 2016 09:24:37 +0800 Subject: [PATCH] Trying to brighten color correction. --- landsat/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landsat/image.py b/landsat/image.py index 37659b7..96c70f4 100644 --- a/landsat/image.py +++ b/landsat/image.py @@ -275,7 +275,7 @@ def _color_correction(self, band, band_id, low, coverage): return band else: self.output("Color correcting band %s" % band_id, normal=True, color='green', indent=1) - p_low, cloud_cut_low = self._percent_cut(band, low, 100 - (coverage * 3 / 4)) + p_low, cloud_cut_low = self._percent_cut(band, low, 100 - coverage) temp = numpy.zeros(numpy.shape(band), dtype=numpy.uint16) cloud_divide = 65000 - coverage * 100 mask = numpy.logical_and(band < cloud_cut_low, band > 0)