Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.16.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Enhancements

Documentation
~~~~~~~~~~~~~
* Clarify the meaning and converted units of ERA5 beam horizontal
irradiance in :py:func:`~pvlib.iotools.get_era5`.
(:issue:`2880`) (:ghuser:`adrianocortezz`)
* Fix :py:func:`pvlib.bifacial.power_mismatch_deline` incorrect derivation
of total RMAD from rear RMAD. (:issue:`2929`, :pull:`2930`)
* Add :py:func:`pvlib.spa.transit_sunrise_sunset` to the API reference.
Expand Down
10 changes: 10 additions & 0 deletions pvlib/iotools/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,22 @@ def get_era5(latitude, longitude, start, end, variables, api_key,
the returned ``meta['latitude']`` and ``meta['longitude']``, and
consider adjusting the requested coordinates slightly inland.

When ``map_variables=True``, the ERA5 parameter
``total_sky_direct_solar_radiation_at_surface`` (``fdir``) is returned
as ``bhi``. Its hourly accumulation in J/m² is converted to hourly
mean irradiance in W/m². This is beam (direct) irradiance on a
horizontal surface [5]_. Direct normal irradiance (DNI) is defined on
a surface perpendicular to the Sun's rays. Deriving DNI from ``bhi``
requires solar geometry and consideration of the hourly averaging
interval and timestamp convention.

References
----------
.. [1] https://cds.climate.copernicus.eu/
.. [2] https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels-timeseries?tab=overview
.. [3] https://confluence.ecmwf.int/pages/viewpage.action?pageId=505390919
.. [4] https://confluence.ecmwf.int/display/CKB/The+family+of+ERA5+datasets
.. [5] https://codes.ecmwf.int/grib/param-db/228021
""" # noqa: E501

def _to_utc_dt_notz(dt):
Expand Down