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'd like to use the focal-functionalities of xarray-spatial to calculate some statistics for a raster with multiple bands (in my case R, G and B). Unfortunately, so far, focal seems to be limited to 2d-arrays, eg. when handing over a RGB-3d-array to focal.apply() I get this error message:
ValueError: raster must be 2D
Is there a way of calculating focal statistics on multiple bands? Or are there plans to include this functionality in the future?
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
-
I'd like to use the focal-functionalities of xarray-spatial to calculate some statistics for a raster with multiple bands (in my case R, G and B). Unfortunately, so far, focal seems to be limited to 2d-arrays, eg. when handing over a RGB-3d-array to focal.apply() I get this error message:
ValueError:
rastermust be 2D
Is there a way of calculating focal statistics on multiple bands? Or are there plans to include this functionality in the future?
Beta Was this translation helpful? Give feedback.
All reactions