Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to the deprecated xr.open_rasterio() method #156

Open
whyjz opened this issue May 23, 2023 · 0 comments
Open

Error due to the deprecated xr.open_rasterio() method #156

whyjz opened this issue May 23, 2023 · 0 comments

Comments

@whyjz
Copy link

whyjz commented May 23, 2023

Hi,

It looks like intake-stac is affected by the recent deprecation of xarray.open_rasterio() and throws errors while loading geotiff/COG files.

Here's a minimum reproducible example:

import intake

catalog_url = 'https://www.planet.com/data/stac/catalog.json'
cat = intake.open_stac_catalog(catalog_url)

collection = cat['planet-disaster-data']
subset = collection['hurricane-harvey']['hurricane-harvey-0831']
item = subset['Houston-East-20170831-103f-100d-0f4f-RGB']

da = item['mosaic'].to_dask()

intake-stac_error

Before we address this issue by updating Intake-STAC, a quick solution is to downgrade xarray, for example:

pip install intake-stac xarray==2022.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant