GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
448 stars 128 forks source link

xarray.open_rasterio is deprecated and replaced by rioxarray.open_rasterio in the newest release on python3.10 #1110

Closed emmaai closed 1 year ago

emmaai commented 1 year ago

Describe the bug/issue AttributeError Traceback (most recent call last) Cell In[3], line 2 1 # Open into an xarray.DataArray ----> 2 geotiff_da = xr.open_rasterio(geotiff_path) 4 # Covert our xarray.DataArray into a xarray.Dataset 5 geotiff_ds = geotiff_da.to_dataset('band')

AttributeError: module 'xarray' has no attribute 'open_rasterio'

Steps to reproduce Steps to reproduce the behaviour. For example: N/A

Expected behaviour The repo might need an over-haul to be working on python3.10 since sandbox env will be upgraded

Environment information DEA Sandbox

emmaai commented 1 year ago

replicate of #1108