hydromt.data_catalog.DataCatalog.export_data#

DataCatalog.export_data(data_root: Path | str, bbox: Tuple[float, float, float, float] | None = None, time_tuple: Tuple[datetime, datetime] | None = None, source_names: List | None = None, unit_conversion: bool = True, meta: Dict | None = None, append: bool = False, handle_nodata: NoDataStrategy = NoDataStrategy.IGNORE) None[source]#

Export a data slice of each dataset and a data_catalog.yml file to disk.

Parameters:
  • data_root (str, Path) – Path to output folder

  • bbox (array-like of floats) – (xmin, ymin, xmax, ymax) bounding box of area of interest.

  • time_tuple (tuple of str, datetime, optional) – Start and end date of period of interest. By default the entire time period of the dataset is returned.

  • source_names (list, optional) – List of source names to export, by default None in which case all sources are exported. Specific variables can be selected by appending them to the source name in square brackets. For example, to export all variables of ‘source_name1’ and only ‘var1’ and ‘var2’ of ‘source_name’ use source_names=[‘source_name1’, ‘source_name2[var1,var2]’]

  • unit_conversion (boolean, optional) – If False skip unit conversion when parsing data from file, by default True.

  • meta (dict, optional) – key-value pairs to add to the data catalog meta section, such as ‘version’, by default empty.

  • append (bool, optional) – If True, append to existing data catalog, by default False.