USGS-CMG / usgs-cmg-portal

do_convert.sh
6 stars 13 forks source link

Add ability to specify behavior for data outside specified color range #71

Closed rsignell-usgs closed 9 years ago

rsignell-usgs commented 9 years ago

What should we do with values that are outside the specified color range?

NcWMS sets them to black: 5-6-2015 3-49-31 pm

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.

kwilcox commented 9 years ago

@rsignell-usgs is this OK to close? sci-wms defaults to transparent

rsignell-usgs commented 9 years ago

@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.