- Notifications
You must be signed in to change notification settings - Fork85
ValueError: raster.coords should be named as coordinates:(y, x) when using proximity on xarray#601
-
Hello,
when I try to compute proximity on
I get the following ,
when I examine the dims
Any ideas how I can get this to work? |
BetaWas this translation helpful?Give feedback.
All reactions
Hi@kulpojke,
xrspatial.proximity
is expecting anxarray.DataArray
not anxarray.Dataset
. You should replace
prox_agg=proximity(g)
with
prox_agg=proximity(g.value)
This is not an uncommon problem, we should probably explicitly check that arguments areDataArray
s and give a more meaningful error message if they are not.
Replies: 1 comment 2 replies
-
Hi@kulpojke,
prox_agg=proximity(g) with prox_agg=proximity(g.value) This is not an uncommon problem, we should probably explicitly check that arguments are |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ok, that worked. That was so simple. Thank you. |
BetaWas this translation helpful?Give feedback.
All reactions
-
You're welcome! |
BetaWas this translation helpful?Give feedback.