From 04dad6b658b37230897b490114211dd003fd9e0c Mon Sep 17 00:00:00 2001 From: Aaron Spring Date: Mon, 23 Feb 2026 10:29:47 +0100 Subject: [PATCH] Fix GHS dataset to use rasterio driver and update README - Change GHS driver from netcdf to rasterio in humans.yaml - Fix wildcard *.tif to explicit filename - Remove intake_thredds and grib from README (not used/available) --- README.md | 2 -- catalogs/humans.yaml | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 93a15a3f..6438c522 100644 --- a/README.md +++ b/README.md @@ -115,8 +115,6 @@ Make data access for climate data easy: - [`intake_xarray`](https://intake-xarray.readthedocs.io/en/latest/) for: - `nc` using [`netcdf4`](https://github.com/Unidata/netcdf4-python) [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/atmosphere.yaml#L64)] - `tif` using [`rioxarray`](https://github.com/corteva/rioxarray) [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/humans.yaml#L42)] - - `grib` using [`cfgrib`](https://github.com/ecmwf/cfgrib/) [[example missing]()] -- [`intake_thredds`](https://github.com/intake/intake-thredds) for using [`intake_xarray`](https://intake-xarray.readthedocs.io/en/latest/) via [THREDDS](https://www.unidata.ucar.edu/software/tds/current/) [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/atmosphere.yaml#L322)] - [`intake_excel`](https://github.com/edjdavid/intake-excel) for Excel `xls` and `xlsx` [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/climate.yaml#L35)] - [`intake_geopandas`](https://github.com/intake/intake_geopandas) for shapefiles `shp` [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/shapefiles.yaml#L11)], GeoJSON `geo.json` [[example](https://github.com/aaronspring/remote_climate_data/blob/1209c5ebf5877b09b4403ea60da6d97b374b7b5c/catalogs/shapefiles.yaml#L57)], GeoParquet `parquet`, `PostGIS` databases, `Spatialite` databases - [`regionmask`](https://regionmask.readthedocs.io/) for aggregating over geoshapes diff --git a/catalogs/humans.yaml b/catalogs/humans.yaml index 7a6239f9..e8d91128 100644 --- a/catalogs/humans.yaml +++ b/catalogs/humans.yaml @@ -8,7 +8,7 @@ sources: description: Global Human Settlement metadata: url: https://ghsl.jrc.ec.europa.eu/ghs_pop2019.php - driver: netcdf + driver: rasterio parameters: s_res: description: spatial resolution @@ -36,7 +36,5 @@ sources: - 54009 # Mollweide - 4326 # WGS84 args: - urlpath: simplecache::zip://*.tif::https://cidportal.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_MT_GLOBE_R2019A/GHS_POP_E{{epoch}}_GLOBE_R2019A_{{epsg}}_{{s_res}}/V1-0/GHS_POP_E{{epoch}}_GLOBE_R2019A_{{epsg}}_{{s_res}}_V1_0.zip + urlpath: simplecache::zip://GHS_POP_E{{epoch}}_GLOBE_R2019A_{{epsg}}_{{s_res}}_V1_0.tif::https://cidportal.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_MT_GLOBE_R2019A/GHS_POP_E{{epoch}}_GLOBE_R2019A_{{epsg}}_{{s_res}}/V1-0/GHS_POP_E{{epoch}}_GLOBE_R2019A_{{epsg}}_{{s_res}}_V1_0.zip chunks: auto - xarray_kwargs: - engine: rasterio