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
Awesome utility! I am using it in combination with xDEM.
However, it would be great if there was support for xr.DataArray object type in Raster.from_array(). I want to be able to directly convert from Xarray to Raster without having to store and read from a file or performing other conversions.
Currently, I solved this by reading the data and Affine transformation using rio from my xr.DataArray:
You're right, we need to add a from_xarray() function, it's not the first time we get that request! I'll move this to a higher priority so that it is available in the next release 🙂.
We are also writing an Xarray accessor mirroring the Raster/DEM APIs, so soon you'll be able to call any GeoUtils/xDEM function from your Xarray object directly!
For instance:
Awesome utility! I am using it in combination with xDEM.
However, it would be great if there was support for
xr.DataArray
object type inRaster.from_array()
. I want to be able to directly convert from Xarray to Raster without having to store and read from a file or performing other conversions.Currently, I solved this by reading the data and
Affine
transformation usingrio
from myxr.DataArray
:It would be nice to have something like this instead:
The text was updated successfully, but these errors were encountered: