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
Rayshader works with RGB arrays in many functions.
It seems like a stupid question but what is the best way to convert a categorial raster to a three-dimensional RGB array?
E.g. I have a one-layer raster with values 1 and 2 and want to plot all cells which equal 1 as red and cells which equal 2 as blue (and add shadows based on an elevation matrix with same dimensions).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Rayshader works with RGB arrays in many functions.
It seems like a stupid question but what is the best way to convert a categorial raster to a three-dimensional RGB array?
E.g. I have a one-layer raster with values 1 and 2 and want to plot all cells which equal 1 as red and cells which equal 2 as blue (and add shadows based on an elevation matrix with same dimensions).
Beta Was this translation helpful? Give feedback.
All reactions