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
Most use-cases of zonal statistics would have the geometries stored in a geopandasGeoDataFrame, rather than as an xarrayDataArray. Converting a GeoDataFrame to an DataArray with "zones" is relatively simple using the regionmask package.
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
-
Most use-cases of zonal statistics would have the geometries stored in a
geopandas
GeoDataFrame
, rather than as anxarray
DataArray
. Converting aGeoDataFrame
to anDataArray
with "zones" is relatively simple using theregionmask
package.Beta Was this translation helpful? Give feedback.
All reactions