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
Tl:dr; Is there a way to define a continuous colormap while still mapping multiple values to transparency?
We're using rio-cogeo (via titiler) to display COG-ified MODIS products. Some MODIS products, e.g. MOD17A3HGF, have continuous data that we'd like to display with a continuous colormap. However, these products also have multiple "fill values" that make displaying "nodata" as transparent pixels tricky. E.g. MOD17A3HGF has the following two continuous variables:
Data Sets
Meaning
Units
Date
Type
Valid Range
Scale Factor
Gpp_500m
8-day total GPP
kgC/m2
/8d
int16
0 ~ 30000
0.0001
PsnNet_500m
8-day total Net Photosynthesis
kgC/m2
/8d
int16
-30000 ~ 30000
0.0001
These int16 values also have "fill values" at the top end of their domain -- we want to display all of these values as transparent pixels:
32767 = _Fillvalue
32766 = land cover assigned as perennial salt or Water bodies
32765 = land cover assigned as barren,sparse veg (rock,tundra,desert)
32764 = land cover assigned as perennial snow,ice.
32763 = land cover assigned as "permanent" wetlands/inundated marshland
32762 = land cover assigned as urban/built-up
32761 = land cover assigned as "unclassified" or (not able to determine)
For now, we're using an intervals colormap to get close to what we want, e.g.:
Is there a way to define a continuous colormap while still mapping multiple values to transparency? If not, is this something that could be implemented? I'm happy to dig in an give it a shot if its something that's possible.
The text was updated successfully, but these errors were encountered:
Tl:dr; Is there a way to define a continuous colormap while still mapping multiple values to transparency?
We're using rio-cogeo (via titiler) to display COG-ified MODIS products. Some MODIS products, e.g. MOD17A3HGF, have continuous data that we'd like to display with a continuous colormap. However, these products also have multiple "fill values" that make displaying "nodata" as transparent pixels tricky. E.g. MOD17A3HGF has the following two continuous variables:
These
int16
values also have "fill values" at the top end of their domain -- we want to display all of these values as transparent pixels:For now, we're using an intervals colormap to get close to what we want, e.g.:
Is there a way to define a continuous colormap while still mapping multiple values to transparency? If not, is this something that could be implemented? I'm happy to dig in an give it a shot if its something that's possible.
The text was updated successfully, but these errors were encountered: