From e4293fa286224fd2f3dad60d9edb10147412b46e Mon Sep 17 00:00:00 2001 From: EllieBowler <39596309+EllieBowler@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:44:21 +0100 Subject: [PATCH] Fix #289: Include ecmwf start forecast date for compute_metrics_leadtime_avg --- icenet/plotting/forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icenet/plotting/forecast.py b/icenet/plotting/forecast.py index 8c25c29..81693ae 100644 --- a/icenet/plotting/forecast.py +++ b/icenet/plotting/forecast.py @@ -557,7 +557,7 @@ def compute_metrics_leadtime_avg(metric: str, (fc_start_date, fc_end_date) = (fc_ds.time.values.min(), fc_ds.time.values.max()) dates = get_seas_forecast_init_dates(hemisphere) - dates = dates[(dates > fc_start_date) & (dates <= fc_end_date)] + dates = dates[(dates >= fc_start_date) & (dates <= fc_end_date)] times = [x for x in fc_ds.time.values if x in dates] fc_ds = fc_ds.sel(time=times)