From 7faa2b8fa97227e99150fd40559b7579fd29699f Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:22:21 +0200 Subject: [PATCH 1/2] Correct era5 timestamp convention --- pvlib/iotools/era5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/iotools/era5.py b/pvlib/iotools/era5.py index 6736a4801b..525848bb27 100644 --- a/pvlib/iotools/era5.py +++ b/pvlib/iotools/era5.py @@ -102,7 +102,7 @@ def get_era5(latitude, longitude, start, end, variables, api_key, Returns ------- data : pd.DataFrame - Time series data. The index corresponds to the start of the interval. + Time series data. The index corresponds to the end of the interval. meta : dict Metadata. From fd010c388226589925cb992f56d2658e821c2db1 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:27:03 +0200 Subject: [PATCH 2/2] Add Whatsnew --- docs/sphinx/source/whatsnew/v0.15.2.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/sphinx/source/whatsnew/v0.15.2.rst b/docs/sphinx/source/whatsnew/v0.15.2.rst index 327b36c1ae..b0e0f686c6 100644 --- a/docs/sphinx/source/whatsnew/v0.15.2.rst +++ b/docs/sphinx/source/whatsnew/v0.15.2.rst @@ -42,6 +42,9 @@ Documentation * Clarifies how Linke turbidity values can be provided to :py:func:`pvlib.clearsky.ineichen` via :py:func:`pvlib.clearsky.lookup_linke_turbidity` (:issue:`2598`, :pull:`2746`) +* Documented that timestamps returned by :py:func:`~pvlib.iotools.get_era5` + represent the end of the averaging interval, consistent with ERA5 + conventions. (:issue:`2772`, :pull:`2773`) Testing