Skip to content

anemoi-datasets inspect does not display statistics tendencies #556

@Zappandy

Description

@Zappandy

Describe the bug
When running anemoi-datasets inspect *.zarr, the output does not display statistics tendencies.

** Version number **
0.5.27 >= Note that this wasn't an issue before Summer 2025, but I have not properly/thoroughly tried testing this again with older versions of anemoi-datasets

To Reproduce
Steps to reproduce the behavior:

  1. anemoi-datasets create $CONFIG $DATASET_NAME --overwrite
  2. anemoi-datasets init-additions $DATASET_NAME --delta 1d
  3. anemoi-datasets finalise-additions $DATASET_NAME --delta 1d
  4. anemoi-datasets cleanup $DATASET_NAME

I'm able to verify the additional statistics were properly computed by running the following lines:

from anemoi.datasets import open_dataset
ds = open_dataset("./anemoi_dataset_forcings.zarr")
print(ds.statistics_tendencies())

If the statistics tendencies have NOT been computed, this will throw an error. Otherwise, it'll return the mean, stdev, max, and min statistics tendencies.

URL to sample input data
I'm not providing a specific source to replicate this as I've seen this issue in the output of the inspect commands regardless of src

Expected behavior
See screenshots section

Screenshots
The new version only displays 4 columns
Image

whereas much older versions of anemoi show the stdev tend

Image

I'm not sure if this is a bug per se or intended behavior. I'd just like to know so I can adapt my pipeline when verifying whether a ds has statistics tendencies.

Additional context
CONFIG

dates:
  start: 1990-01-01T00:00
  end: 2014-12-31T23:00
  frequency: 1d

input:
  join:
    - xarray-zarr:
        url: /gpfs/scratch/pred1/aerosols_healpix_latlon_view.zarr
    - xarray-zarr:
        url: /gpfs/scratch/pred1/ozone_healpix_latlon_view.zarr
    - xarray-zarr:
        url: /gpfs/scratch/pred1/ghg_healpix_latlon_view.zarr

statistics:
  allow_nans:
    - vmro3
    - cfc11_vmr
    - ch4_vmr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions