Closed rsignell-usgs closed 9 years ago
@rsignell-usgs is this OK to close? sci-wms defaults to transparent
@kwilcox, yes, I guess so. It would be nice to have ABOVEMAXCOLOR
and BELOWMINCOLOR
, as in the ncWMS extensions, but I think that's handled in a different ticket.
What should we do with values that are outside the specified color range?
NcWMS sets them to black:
But as the above image illustrates, black is not always what is most useful for the user.
In many cases, transparent would be more valuable. This would allow land and bathymetry to "show through" in the range of colors that are not of interest to the user. So I would argue that transparent would be a better choice than black.
Transparency could be accomplished simply in sci-wms by using masked arrays http://stackoverflow.com/a/22672080
The worst choice would be to just extend the max color above and the min color below. This is very misleading.
Ideally the user/client would allow specification of this behavior.
I've asked this on https://github.com/sci-wms/sci-wms/issues/33 as it's both a ncWMS and a SciWMS issue.