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
This is exciting news in that CAMS will now also be covering Asia and Australia in addition to the current coverage of Europe and Africa!
New error messages
As stated above, the team is also making changes to the error messages, which will require an update to the pvlib get_cams function. Based on the beta version, it seems the API now raises an HTTP error when encountering invalid requests. Previously the status was always 200 (OK), and the error message had to be manually detected using these lines:
There are a few upcoming changes happening to the CAMS Radiation Service (below is a quote from an email sent out on June 30th 2023):
This is exciting news in that CAMS will now also be covering Asia and Australia in addition to the current coverage of Europe and Africa!
New error messages
As stated above, the team is also making changes to the error messages, which will require an update to the pvlib
get_cams
function. Based on the beta version, it seems the API now raises an HTTP error when encountering invalid requests. Previously the status was always 200 (OK), and the error message had to be manually detected using these lines:pvlib-python/pvlib/iotools/sodapro.py
Lines 217 to 222 in 6bf9e07
The beta API can be tried out by manually specifying the URL:
Solution
The above lines should be substituted by something along the lines of:
A big thanks goes out to the CAMS team!
The text was updated successfully, but these errors were encountered: