Python API Reference#

avl.verify.verify_dataset(dataset, level='ERROR', open_params=None)

Verifies that given dataset complies to the AVL dataset conventions.

  • dataset (str, Mapping, or Dataset) The dataset. May be an xarray.Dataset, a path, or a Zarr store.
  • level (str, optional) Either "ERROR" (only errors) or "WARNING" (errors and warnings).
  • open_params (dict(str: any), optional) Optional open parameters, ignored if dataset is an xarray.Dataset.
Returns (list of (str, str))

A list of issues. Each issue is a 2-tuple comprising an issue severity level ("WARNING" or "ERROR") and the issue message. An empty list indicates a 100%-compliance.