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
File "/home/joel/src/TopoPyScale/TopoPyScale/topo_param.py", line 141, in compute_dem_param
ds = xr.open_rasterio(dem_file).to_dataset('band')
AttributeError: module 'xarray' has no attribute 'open_rasterio'
Alternative:
rioxarray.open_rasterio
todo:
conda install -c conda-forge rioxarray
add import rioxarry to topo_param.py and topo_da.py
change all cases of xr.open_rasterio to rioxarray.open_rasterio
The text was updated successfully, but these errors were encountered:
i can push these changes but be aware it will break stuff - although anyone with latest xarray package will not be able to currently run code anyway......
see "breaking changes" https://docs.xarray.dev/en/stable/whats-new.html#v2023-04-2-april-20-2023
and
pydata/xarray#4697
Affects at least:
File "/home/joel/src/TopoPyScale/TopoPyScale/topo_param.py", line 141, in compute_dem_param
ds = xr.open_rasterio(dem_file).to_dataset('band')
AttributeError: module 'xarray' has no attribute 'open_rasterio'
Alternative:
rioxarray.open_rasterio
todo:
conda install -c conda-forge rioxarray
add import rioxarry to topo_param.py and topo_da.py
change all cases of xr.open_rasterio to rioxarray.open_rasterio
The text was updated successfully, but these errors were encountered: