hydromt.io.open_raster_from_tindex#

hydromt.io.open_raster_from_tindex(fn_tindex, bbox=None, geom=None, tileindex='location', mosaic_kwargs=None, **kwargs)[source]#

Read and merge raster tiles.

Raster tiles can potentially be in different CRS. Based on a tile index file as generated with gdaltindex. A bbox or geom describing the output area of interest is required.

Parameters:
  • fn_tindex (path, str) – Path to tile index file.

  • bbox (tuple of floats, optional) – (xmin, ymin, xmax, ymax) bounding box in EPGS:4326, by default None.

  • geom (geopandas.GeoDataFrame/Series, optional) – A geometry defining the area of interest, by default None. The geom.crs defaults to EPSG:4326 if not set.

  • tileindex (str) – Field name to hold the file path/location to the indexed rasters

  • mosaic_kwargs (dict, optional) – Mosaic key_word arguments to unify raster crs and/or resolution. See merge() for options.

  • **kwargs – key-word arguments are passed to hydromt.io.open_mfraster()

Returns:

data – A single-variable Dataset of merged raster tiles.

Return type:

Dataset