Validate Command

Use this command to validate a zarr dataset, or a class that implements the anemoi.datasets.Dataset interface.

This command has two modes of operation:

  1. Validate a local zarr dataset by specifying its path.

  2. Validate a dataset class by providing its fully qualified class name.

Example usage

To validate a local zarr dataset:

anemoi-datasets validate /path/to/dataset.zarr

To validate a dataset class:

anemoi-datasets validate --callable my_package.MyDatasetClass  some-args-relevant-to-the-class

In the first case, the command will check the compatibility of the zarr dataset using anemoi-datasets own class, in the second case, it will use the class provided by the user.

When running the command, emojis are used to categorise the different validation results:

  • ✅: validation succeeded

  • ⚠️: validation for the attribute/method is not implemented

  • 💣: validation failed because the test does not pass

  • 💥: validation failed because the validation tool is out of date

Command to validate an anemoi dataset.

usage: anemoi-datasets validate [-h] [--callable DATASET] [--costly-checks]
                                [--detailed]
                                DATASET

Positional Arguments

DATASET

Named Arguments

--callable

Default: 'anemoi.datasets.open_dataset'

--costly-checks

Run costly checks

Default: False

--detailed

Give detailed report

Default: False