Skip to content

Commit

Permalink
Fix #289: Include ecmwf start forecast date for compute_metrics_leadt…
Browse files Browse the repository at this point in the history
…ime_avg
  • Loading branch information
EllieBowler committed Aug 7, 2024
1 parent f128536 commit e4293fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icenet/plotting/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e4293fa

Please sign in to comment.