8000 Error due to the deprecated xr.open_rasterio() method · Issue #156 · intake/intake-stac · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Error due to the deprecated xr.open_rasterio() method #156
Open
@whyjz

Description

@whyjz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0