Skip to content

Commit

Permalink
try and capture the full range of stretch (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillins committed May 18, 2023
1 parent 30f3206 commit 8b93e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuiview/viewerLUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def createStretchLUT(self, gdalband, stretch, lutsize, localdata=None):
lut = numpy.empty(lutsize, numpy.uint8)
# assume ints - we just create ramp 0-255 in data range
stretchMin = int(stretchMin)
stretchMax = int(stretchMax)
stretchMax = int(numpy.ceil(stretchMax))
if stretchMin == stretchMax:
# hack for invalid data
stretchMax = stretchMin + 1
Expand Down

0 comments on commit 8b93e9d

Please sign in to comment.