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
I try to display a raster. This raster has 1 band, values from 0 to 1, nan outside of Uganda and 0 where restoration cannot be performed. I would like to display it on my map and filter the nan and 0s out (or make them transparent).
I'm use t the imshow function where I can play with "vmin" and then add a set_under in my colormap. I even tried to used set_bad but it seems xarray doesn't support the ma modules from numpy.
As you're the owner of the lib I thought that maybe there is a more elegant solution to my issue.
here is a reproductible example (using the default magma colormap):
I try to display a raster. This raster has 1 band, values from 0 to 1, nan outside of Uganda and 0 where restoration cannot be performed. I would like to display it on my map and filter the nan and 0s out (or make them transparent).
I'm use t the
imshow
function where I can play with "vmin" and then add aset_under
in my colormap. I even tried to usedset_bad
but it seems xarray doesn't support thema
modules fromnumpy
.As you're the owner of the lib I thought that maybe there is a more elegant solution to my issue.
here is a reproductible example (using the default magma colormap):
The text was updated successfully, but these errors were encountered: