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? |
Beta Was this translation helpful? Give feedback.
Answered by
ianthomas23
Dec 16, 2021
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 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ianthomas23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kulpojke,
xrspatial.proximityis expecting anxarray.DataArraynot anxarray.Dataset. You should replacewith
This is not an uncommon problem, we should probably explicitly check that arguments are
DataArrays and give a more meaningful error message if they are not.