nci / scores

Metrics for the verification, evaluation and optimisation of forecasts, predictions or models.
https://scores.readthedocs.io/
Apache License 2.0
56 stars 15 forks source link

Provide more support for xr.Datasets as inputs #702

Open nicholasloveday opened 6 days ago

nicholasloveday commented 6 days ago

Some metrics only support xr.DataArrays. I have received feedback from users who would like to be able to use scores primarily with xr.Datasets.

nicholasloveday commented 6 days ago

For functions that currently take an xr.DataArray and return an xr.Dataset with under/over forecast penalties, consider returning an xr.DataArray with a new dimension called "components".

If we go down this path, we will have to update Jive to be compatible if it expects an xr.Dataset.