hydromt icon indicating copy to clipboard operation
hydromt copied to clipboard

Create `raster` driver

Open Jaapel opened this issue 1 year ago • 1 comments

Kind of request

Changing existing functionality

Enhancement Description

Create a raster driver using the rasterio package.

Also: at https://github.com/Deltares/hydromt/blob/main/hydromt/data_adapter/rasterdataset.py#L661 zoom levels are parsed based on the rasterio metadata.

In gis/raster.py there is a to_slippy_tiles function that results in a DataCatalog entry referring to the the previous raster driver, which should refer to a new driver #875 . This behaviour can be temporarily be deprecated.

Use case

Open data using rasterio.

Additional Context

No response

Jaapel avatar Mar 27 '24 10:03 Jaapel

For the raster driver the variable name should also be updated based on the variables argument in DataCatalog.get_rasterdataset, see #883. This is important to make sure we can still read tif files based on the path if not set in the data catalog without getting errors on the variable name.

DirkEilander avatar Apr 12 '24 08:04 DirkEilander