From bfc01277d2ddeae023e623d7a60a47066f9ad280 Mon Sep 17 00:00:00 2001
From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com>
Date: Sat, 11 Apr 2026 15:36:38 +0200
Subject: [PATCH 1/2] Update broken links in get_solaranywhere
---
pvlib/iotools/solaranywhere.py | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/pvlib/iotools/solaranywhere.py b/pvlib/iotools/solaranywhere.py
index dfa7420ccc..54e3194fb1 100644
--- a/pvlib/iotools/solaranywhere.py
+++ b/pvlib/iotools/solaranywhere.py
@@ -52,8 +52,7 @@ def get_solaranywhere(latitude, longitude, api_key, start=None, end=None,
url=URL, map_variables=True, timeout=300):
"""Retrieve historical irradiance time series data from SolarAnywhere.
- The SolarAnywhere API is described in [1]_ and [2]_. A detailed list of
- API options can be found in [3]_.
+ The SolarAnywhere API is described in [1]_ and [2]_.
Parameters
----------
@@ -74,7 +73,7 @@ def get_solaranywhere(latitude, longitude, api_key, start=None, end=None,
'SolarAnywhereTGYLatest' (TMY for GHI), 'SolarAnywhereTDYLatest' (TMY
for DNI), or 'SolarAnywherePOELatest' for probability of exceedance.
Specific dataset versions can also be specified, e.g.,
- 'SolarAnywhere3_2' (see [3]_ for a full list of options).
+ 'SolarAnywhere3_2' (see [2]_ for a full list of options).
time_resolution: {60, 30, 15, 5}, default: 60
Time resolution in minutes. For TMY data, time resolution has to be 60
minutes (hourly).
@@ -87,7 +86,7 @@ def get_solaranywhere(latitude, longitude, api_key, start=None, end=None,
Probability of exceedance in the range of 1 to 99. Only relevant when
requesting probability of exceedance (POE) time series. [%]
variables: list-like, default: :const:`DEFAULT_VARIABLES`
- Variables to retrieve (described in [4]_), must include
+ Variables to retrieve (described in [3]_), must include
'ObservationTime'. Available variables depend on whether historical or
TMY data is requested.
missing_data: {'Omit', 'FillAverage'}, default: 'FillAverage'
@@ -129,10 +128,8 @@ def get_solaranywhere(latitude, longitude, api_key, start=None, end=None,
.. [1] `SolarAnywhere API
`_
.. [2] `SolarAnywhere irradiance and weather API requests
- `_
- .. [3] `SolarAnywhere API options
- `_
- .. [4] `SolarAnywhere variable definitions
+ https://apidocs.solaranywhere.com/>`_
+ .. [3] `SolarAnywhere variable definitions
`_
""" # noqa: E501
headers = {'content-type': "application/json; charset=utf-8",
From 80b672bf3ba208d935bcf2eb59a9e331d071e433 Mon Sep 17 00:00:00 2001
From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com>
Date: Sat, 11 Apr 2026 15:38:35 +0200
Subject: [PATCH 2/2] Fix missing bracket
---
pvlib/iotools/solaranywhere.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pvlib/iotools/solaranywhere.py b/pvlib/iotools/solaranywhere.py
index 54e3194fb1..2a6150559b 100644
--- a/pvlib/iotools/solaranywhere.py
+++ b/pvlib/iotools/solaranywhere.py
@@ -128,7 +128,7 @@ def get_solaranywhere(latitude, longitude, api_key, start=None, end=None,
.. [1] `SolarAnywhere API
`_
.. [2] `SolarAnywhere irradiance and weather API requests
- https://apidocs.solaranywhere.com/>`_
+ `_
.. [3] `SolarAnywhere variable definitions
`_
""" # noqa: E501