Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update the PVGIS5 to PVGIS5.2 #1635

Closed
Dawe890311 opened this issue Jan 11, 2023 · 1 comment
Closed

Please update the PVGIS5 to PVGIS5.2 #1635

Dawe890311 opened this issue Jan 11, 2023 · 1 comment

Comments

@Dawe890311
Copy link

The [iotools.get_pvgis_tmy] is old, so when you use it analysis some location, such as Peking and Shanghai, you will raise a error(HTTPError: Location out of the spatial coverage of PVGIS5), but the PVGIS5.2 have put these location into their database, so please update, thank you!

@AdamRJensen
Copy link
Member

Hi @Dawe890311

By default the pvlib get_pvgis_tmy function uses the base endpoint: https://re.jrc.ec.europa.eu/api/

PVGIS has yet to redirect this endpoint to the new version of the database (5.2). See previous discussions here: #1415.

In order to use the new version 5.2, the specific URL for version 5.2 needs to be specified:

import pvlib

data, months_selected, inputs, meta = pvlib.iotools.get_pvgis_tmy(
    latitude=28.965734,
    longitude=117.147418,
    url='https://re.jrc.ec.europa.eu/api/v5_2/',
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants