You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aman-coder03, you asked about this last December. Are you still working on it? If so I'll step back. Otherwise I'd like to pick it up.
Here is the scope I have in mind. Since forecast data in iotools is still an open question (#1528), I'd start with only the Historical Weather API (/v1/archive). That's one function, which also gives ERA5 without a CDS account:
It returns (data, meta) with a UTC index. With map_variables=True, Open-Meteo names are mapped to ghi, dni, dhi, bhi, temp_air, temp_dew, relative_humidity, wind_speed/wind_direction (10 m, requested in m/s) and pressure (hPa converted to Pa). Radiation is the mean of the preceding hour, so the index marks the end of the interval, as in get_era5. Temperature and wind are instantaneous. I checked one day against the CDS values in test_era5.py, and values and timestamps agree within rounding. The docstring would state that the free API is non-commercial only, that the data are CC BY 4.0, and that api_key switches to the customer server. Tests would use a stored JSON response, plus a few remote_data tests.
Out of scope for now: the Historical Forecast, Previous Runs and Single Runs APIs, GTI, and multiple locations.
Two questions:
Is model='era5' an acceptable default, instead of the API's best_match, which blends in IFS runs?
Should the index keep end-of-interval labels like get_era5, or shift to mid-interval like get_merra2?
@Zhaohh0706 this topic needs more discussion between the pvlib maintainers before any implementation. Please do not work on it.
By the way, may I ask how pvlib came to your attention, and why you are interested in contributing to this project? Many people have been trying to contribute (via LLM, I think) to pvlib recently, and I would like to understand why that is.
But idk what’s going on with the others; can't speak for them.( I thought trying to contribute should be a good thing?
I picked this up because I use pvlib for clear-sky irradiance and solar position in a PV power forecasting project of mine.
The comparison with the ERA5 values in test_era5.py that I mentioned was run by opus 5.5. I have rerun it myself and verified the numbers.
Personally speaking, I studied atmospheric science and did my MSc in energy and renewable energy, which focusing on climate change mitigation, and I'm thinking about working in renewable energy forecasting. Visible contributions to the tools I use would be a bonus for me, but I'd rather leave things alone than add noise. I'm sorry if this added to the load.
Thanks for introducing yourself and letting us know you aren't someone's coding assistant spamming PRs for resume points. And thanks for your patience!
Now that we have iotools.get_era5, is there a need for interfacing with open-meteo for ERA5? There's the benefit of not needing an API key for open-meteo (I think), but there's also the issue of commercial use restrictions.
Activity
aman-coder03 commentedon Dec 28, 2025
Can i work on this issue?
JoooDev-TPP commentedon Oct 7, 2026
@aman-coder03, you asked about this last December. Are you still working on it? If so I'll step back. Otherwise I'd like to pick it up.
Here is the scope I have in mind. Since forecast data in iotools is still an open question (#1528), I'd start with only the Historical Weather API (
/v1/archive). That's one function, which also gives ERA5 without a CDS account:It returns
(data, meta)with a UTC index. Withmap_variables=True, Open-Meteo names are mapped toghi,dni,dhi,bhi,temp_air,temp_dew,relative_humidity,wind_speed/wind_direction(10 m, requested in m/s) andpressure(hPa converted to Pa). Radiation is the mean of the preceding hour, so the index marks the end of the interval, as inget_era5. Temperature and wind are instantaneous. I checked one day against the CDS values intest_era5.py, and values and timestamps agree within rounding. The docstring would state that the free API is non-commercial only, that the data are CC BY 4.0, and thatapi_keyswitches to the customer server. Tests would use a stored JSON response, plus a fewremote_datatests.Out of scope for now: the Historical Forecast, Previous Runs and Single Runs APIs, GTI, and multiple locations.
Two questions:
model='era5'an acceptable default, instead of the API'sbest_match, which blends in IFS runs?get_era5, or shift to mid-interval likeget_merra2?kandersolar commentedon Oct 7, 2026
@Zhaohh0706 this topic needs more discussion between the pvlib maintainers before any implementation. Please do not work on it.
By the way, may I ask how pvlib came to your attention, and why you are interested in contributing to this project? Many people have been trying to contribute (via LLM, I think) to pvlib recently, and I would like to understand why that is.
JoooDev-TPP commentedon Oct 7, 2026
Yeah ofc.
But idk what’s going on with the others; can't speak for them.( I thought trying to contribute should be a good thing?
I picked this up because I use pvlib for clear-sky irradiance and solar position in a PV power forecasting project of mine.
The comparison with the ERA5 values in test_era5.py that I mentioned was run by opus 5.5. I have rerun it myself and verified the numbers.
Personally speaking, I studied atmospheric science and did my MSc in energy and renewable energy, which focusing on climate change mitigation, and I'm thinking about working in renewable energy forecasting. Visible contributions to the tools I use would be a bonus for me, but I'd rather leave things alone than add noise. I'm sorry if this added to the load.
cwhanse commentedon Oct 7, 2026
@Zhaohh0706 it has been noisy in here :)
Thanks for introducing yourself and letting us know you aren't someone's coding assistant spamming PRs for resume points. And thanks for your patience!
williamhobbs commentedon Oct 7, 2026
Now that we have
iotools.get_era5, is there a need for interfacing with open-meteo for ERA5? There's the benefit of not needing an API key for open-meteo (I think), but there's also the issue of commercial use restrictions.