You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the display of rasters with a continuous colormap was not including values exactly at the boundaries of the raster data range. This can be an issue for e.g. rasters having a lot of zeros as lower limit. If this is a bug, it can be fixed by modifying utils.py line 82 from:
# Compute alpha channel from mask if available.
if numpy.ma.is_masked(dat):
alpha = 255 * numpy.logical_not(dat.mask) * (norm >= 0) * (norm <= 1)
else:
alpha = 255 * (norm >= 0) * (norm <= 1) #Just changed this line
Sorry for not making a proper merge request, but it is just a small change.
The text was updated successfully, but these errors were encountered:
sebbelese
changed the title
Continuous colormaps - extreme values not displayed
Continuous colormaps - exact range boundary values not displayed
Feb 19, 2021
Hi,
Thanks for developing this nice software!
I noticed that the display of rasters with a continuous colormap was not including values exactly at the boundaries of the raster data range. This can be an issue for e.g. rasters having a lot of zeros as lower limit. If this is a bug, it can be fixed by modifying utils.py line 82 from:
to
Sorry for not making a proper merge request, but it is just a small change.
The text was updated successfully, but these errors were encountered: