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
Describe the bug
PVGIS is releasing version 5.2 on March 1st, 2022. In the new version, the irradiance databases CMSAF and COSMO have been removed. Additionally, the ERA5 coverage has been extended to cover almost the entire globe and a new database, SARAH-2, has been added.
Additional context
There is nothing that indicates any changes to the API, so the pvlib.iootools functions get_pvgis_tmy and get_pvgis_hourly should continue to work.
However, some of the test files used in test_pvgis.py are from the CMSAF database. Since those tests seem to be either based on local files or mock tests, I do not expect test failures. However, it would probably make sense to update the tests regardless.
@AdamRJensen do you know if the content of CMSAF and COSMO is migrating to the new database? Sorry that I'm not familiar with PVGIS.
I missed the link to the documentation in my quick read of your issue, the documentation answers my question. I agree it would make sense to replace the test files or (more simply) to add a note to the test code identifying the data source.
In order to use the new version 5.2 (which is still in beta), the URL needs to be updated, e.g.,:
data, input, meta = pvlib.iotools.get_pvgis_hourly(
latitude=28.965734,
longitude=117.147418,
raddatabase='PVGIS-ERA5',
url='https://re.jrc.ec.europa.eu/api/v5_2/',
)
I suspect this will only be necessary temporarily until the databases are considered stable and migrated to the default URL. The retired databases CMSAF and COSMO remain available through the default URL for now, though they will be removed in the future.
Activity
cwhanse commentedon Feb 28, 2022
@AdamRJensen do you know if the content of CMSAF and COSMO is migrating to the new database? Sorry that I'm not familiar with PVGIS.
cwhanse commentedon Feb 28, 2022
I missed the link to the documentation in my quick read of your issue, the documentation answers my question. I agree it would make sense to replace the test files or (more simply) to add a note to the test code identifying the data source.
AdamRJensen commentedon Mar 1, 2022
In order to use the new version 5.2 (which is still in beta), the URL needs to be updated, e.g.,:
I suspect this will only be necessary temporarily until the databases are considered stable and migrated to the default URL. The retired databases CMSAF and COSMO remain available through the default URL for now, though they will be removed in the future.
kandersolar commentedon Mar 21, 2022
Probably a good idea to scrub mentions of the retired databases from the docstring as well:
pvlib-python/pvlib/iotools/pvgis.py
Lines 140 to 144 in c243183
@AdamRJensen thoughts on tagging this issue for 0.9.1?
AdamRJensen commentedon Mar 21, 2022
@kanderso-nrel what's the current timeline for 0.9.1? I'll be out of the office until April 5th fyi.
kandersolar commentedon Mar 22, 2022
Don't think there really is a timeline. Next couple weeks maybe? Depends on how long it takes us to finish or defer the remaining things in #1424...
kandersolar commentedon Jul 22, 2022
@AdamRJensen should we keep this open until we update the tests and docstrings?
AdamRJensen commentedon Jul 22, 2022
@kanderso-nrel Sorry I got ahead of myself