|
9 | 9 | import warnings
|
10 | 10 |
|
11 | 11 |
|
| 12 | +URL = 'api.soda-solardata.com' |
| 13 | + |
12 | 14 | CAMS_INTEGRATED_COLUMNS = [
|
13 | 15 | 'TOA', 'Clear sky GHI', 'Clear sky BHI', 'Clear sky DHI', 'Clear sky BNI',
|
14 | 16 | 'GHI', 'BHI', 'DHI', 'BNI',
|
|
44 | 46 | def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
|
45 | 47 | altitude=None, time_step='1h', time_ref='UT', verbose=False,
|
46 | 48 | integrated=False, label=None, map_variables=True,
|
47 |
| - server='www.soda-is.com', timeout=30): |
| 49 | + server=URL, timeout=30): |
48 | 50 | """
|
49 | 51 | Retrieve time-series of radiation and/or clear-sky global, beam, and
|
50 | 52 | diffuse radiation from CAMS (see [1]_). Data is retrieved from SoDa [2]_.
|
@@ -91,8 +93,8 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
|
91 | 93 | map_variables: bool, default: True
|
92 | 94 | When true, renames columns of the DataFrame to pvlib variable names
|
93 | 95 | where applicable. See variable :const:`VARIABLE_MAP`.
|
94 |
| - server: str, default: 'www.soda-is.com' |
95 |
| - Main server (www.soda-is.com) or backup mirror server (pro.soda-is.com) |
| 96 | + server: str, default: :const:`pvlib.iotools.sodapro.URL` |
| 97 | + Base url of the SoDa Pro CAMS Radiation API. |
96 | 98 | timeout : int, default: 30
|
97 | 99 | Time in seconds to wait for server response before timeout
|
98 | 100 |
|
@@ -344,13 +346,13 @@ def read_cams(filename, integrated=False, label=None, map_variables=True):
|
344 | 346 | all time steps except for '1M' which has a default of 'right'.
|
345 | 347 | map_variables: bool, default: True
|
346 | 348 | When true, renames columns of the Dataframe to pvlib variable names
|
347 |
| - where applicable. See variable VARIABLE_MAP. |
| 349 | + where applicable. See variable :const:`VARIABLE_MAP`. |
348 | 350 |
|
349 | 351 | Returns
|
350 | 352 | -------
|
351 | 353 | data: pandas.DataFrame
|
352 |
| - Timeseries data from CAMS Radiation or McClear |
353 |
| - :func:`pvlib.iotools.get_cams` for fields |
| 354 | + Timeseries data from CAMS Radiation or McClear. |
| 355 | + See :func:`pvlib.iotools.get_cams` for fields. |
354 | 356 | metadata: dict
|
355 | 357 | Metadata available in the file.
|
356 | 358 |
|
|
0 commit comments