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
The text was updated successfully, but these errors were encountered:
chapmanjacobd
changed the title
/compute transparent pixel desiring np.nan instead of zero
/compute transparent pixel, np.nan instead of zero
Jul 8, 2021
Maybe we could make this possible by adding a parameter that lets you specify a NaN / transparent value and mask with that after the expression got evaluated. By default, this could be the raster NaN value.
Now that #222 is merged, both invalid values (nan / inf) and masked values will be transparent. Most of the masked_* functions from numpy.ma are now allowed in expressions.
Looking over the expression parser I'm not sure if requesting nan squares is possible.
This works great in general but I'm wondering if it would be possible to show a transparent pixel if the expression evaluates to 0.
in pseudo-code:
The text was updated successfully, but these errors were encountered: