Weather#
Sources, loaders, and resampling utilities for solar irradiance and temperature time series.
Local weather loading and PVGIS/NSRDB TMY helpers use the core install.
Open-Meteo historical fetching requires breos[weather].
Loading from local files#
|
Smart weather loading: scan local files for matching weather data. |
|
Parse a weather filename following the convention: {location}_{type}_{yearstart}_{yearend}_{source}.csv |
|
Read an EPW (EnergyPlus Weather) file and return standardized weather DataFrame. |
Fetching from external APIs#
|
Fetch Typical Meteorological Year (TMY) weather data from PVGIS. |
|
Fetch TMY data from NREL's NSRDB (National Solar Radiation Database) via pvlib. |
|
Fetch historical weather data from the Open-Meteo API. |
Resampling#
Convert between hourly and 15-minute resolutions. The 15-minute path uses Makima interpolation on clearness indices rather than raw irradiance so sunrise / sunset transitions stay physically consistent.
|
Resample hourly DataFrame to 15-minute intervals. |
|
Resample 15-minute DataFrame to hourly intervals. |
Resample TMY data from hourly to 15-minute intervals using Makima interpolation. |
Helpers#
Extract hourly ambient temperature from a weather DataFrame. |
|
|
Pre-load weather CSV once and split into per-year DataFrames. |