hydromt.DataArray.raster.to_xyz_tiles#

DataArray.raster.to_xyz_tiles(root: str, tile_size: int, zoom_levels: list, driver='GTiff', **kwargs)#

Export rasterdataset to tiles in a xyz structure.

Parameters:
  • root (str) – Path where the database will be saved Database yml will be put one directory above

  • tile_size (int) – Number of pixels per tile in one direction

  • zoom_levels (list) – Zoom levels to be put in the database

  • driver (str, optional) – GDAL driver (e.g., ‘GTiff’ for geotif files), or ‘netcdf4’ for netcdf files.

  • **kwargs – Key-word arguments to write raster files