opendatacube / datacube-ows

Open Data Cube Open Web Services
Other
69 stars 35 forks source link

Reversed matplotlib colour ramps are not supported #465

Closed SpacemanPaul closed 3 years ago

SpacemanPaul commented 3 years ago

The matplotlib API generally supports a "_r" suffix for colour ramp names to access the reversed ramps. This does not currently work with the way we extract colour ramps from the API.

pindge commented 3 years ago

related to https://github.com/GeoscienceAustralia/dea-config/issues/618

whatnick commented 3 years ago

InSAR uses "mpl_ramp": "RdBu_r", , this seems to be working.

SpacemanPaul commented 3 years ago

InSAR uses "mpl_ramp": "RdBu_r", , this seems to be working.

Really? That is very odd.

pindge commented 3 years ago
ows_1  | [2020-11-19 22:48:46,340] datacube_ows.ows_configuration [None] [ERROR] Could not parse layer: Invalid Matplotlib name: gist_earth_r 
ows_1  | [2020-11-19 22:48:46,692] datacube_ows.ows_configuration [None] [ERROR] Could not parse layer: Invalid Matplotlib name: gist_earth_r 
SpacemanPaul commented 3 years ago

False alarm! The problem was a config typo - trailing whitespace.