From f72a3f7eb7d98485be3d74407cc35fd80eccc1cc Mon Sep 17 00:00:00 2001 From: wachsylon Date: Thu, 25 Apr 2024 14:03:14 +0200 Subject: [PATCH] Update catalog.py --- intake_stac/catalog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intake_stac/catalog.py b/intake_stac/catalog.py index 1faf220..ce00461 100644 --- a/intake_stac/catalog.py +++ b/intake_stac/catalog.py @@ -41,6 +41,7 @@ 'application/geopackage+sqlite3': 'geopandas', 'application/vnd+zarr': 'zarr', 'application/xml': 'textfiles', + 'application/yaml': 'yaml_file_cat', } @@ -524,6 +525,8 @@ def _get_args(self, asset, driver): Optional keyword arguments to pass to intake driver """ args = {'urlpath': asset.href} + if driver in ['yaml_file_cat']: + args = {'path': asset.href} if driver in ['netcdf', 'rasterio', 'xarray_image']: # NOTE: force using dask? args.update(chunks={})