Skip to content

Commit

Permalink
Merge pull request #291 from EllieBowler/289_overlap_seas_date
Browse files Browse the repository at this point in the history
Fix #289: Include ecmwf start forecast date for compute_metrics_leadtime_avg
  • Loading branch information
EllieBowler authored Aug 7, 2024
2 parents 0bac48f + e4293fa commit d042bce
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 d042bce

Please sign in to comment.