hydromt.data_catalog.PredefinedCatalog#
- class hydromt.data_catalog.PredefinedCatalog(format_version: str = 'v0', cache_dir=PosixPath('/home/runner/.hydromt'))[source]#
Predefined data catalog.
A predefined data catalog is a collection of data_catalog.yml files that are stored in a specific directory structure. The catalog is defined by a base_url and a name. The predefined catalog can be used to retrieve data_catalog.yml files for specific versions.
Directory structure: - <base_url>/registry.txt - <base_url>/<version>/data_catalog.yml
Cached directory structure: - <cache_dir>/<name>/registry.txt - <cache_dir>/<name>/<version>/data_catalog.yml
Methods
__init__
([format_version, cache_dir])get_catalog_file
([version])Get the cached catalog file path for a specific version.
Attributes
base_url
name
pooch
Return a pooch instance with all data catalog files in registry.
registry
Return the registry.
versions
Return the versions of the catalog.