⚠️ Our 0.1 release refactored several early-development functions for long-term stability, to update your code see here. ⚠️
Future changes will come with deprecation warnings! 🙂

geoutils.Raster.to_xarray

geoutils.Raster.to_xarray#

Raster.to_xarray(name=None)[source]#

Convert raster to a xarray.DataArray.

This converts integer-type rasters into float32.

Parameters:

name (str | None) – Name attribute for the data array.

Return type:

DataArray

Returns:

Data array.