Skip to content

Commit ba4c7c5

Browse files
authored
Correct ERA5 timestamp convention (#2773)
* Correct era5 timestamp convention * Add Whatsnew * Update whatsnew based on reviewer feedback
1 parent a53e022 commit ba4c7c5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/sphinx/source/whatsnew/v0.15.2.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Bug fixes
2222
introduced in v0.15.1 (:pull:`2702`) that caused a broadcasting
2323
``ValueError`` when ``tracker_theta`` was a 2-D (or higher rank) array.
2424
(:issue:`2747`, :pull:`2749`)
25+
* Document that timestamps returned by :py:func:`~pvlib.iotools.get_era5`
26+
represent the end of the averaging interval, consistent with ERA5
27+
conventions. (:issue:`2772`, :pull:`2773`)
28+
2529

2630
Enhancements
2731
~~~~~~~~~~~~

pvlib/iotools/era5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_era5(latitude, longitude, start, end, variables, api_key,
102102
Returns
103103
-------
104104
data : pd.DataFrame
105-
Time series data. The index corresponds to the start of the interval.
105+
Time series data. The index corresponds to the end of the interval.
106106
meta : dict
107107
Metadata.
108108

0 commit comments

Comments
 (0)