Skip to content

Commit fee3743

Browse files
committed
fixed more formating issues
1 parent 547bf02 commit fee3743

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pvlib/iotools/goes4.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
import requests
99
import pandas as pd
1010
from json import JSONDecodeError
11-
import warnings
12-
from pvlib._deprecation import pvlibDeprecationWarning
1311

1412
NSRDB_API_BASE = "https://developer.nrel.gov"
15-
GOES_URL = NSRDB_API_BASE + "/api/nsrdb/v2/solar/nsrdb-GOES-aggregated-v4-0-0-download.csv"
16-
TMY_URL = NSRDB_API_BASE + "/api/nsrdb/v2/solar/nsrdb-GOES-tmy-v4-0-0-download.csv"
17-
GOESCONUS_URL = NSRDB_API_BASE + "/api/nsrdb/v2/solar/nsrdb-GOES-conus-v4-0-0-download.csv"
13+
API_STUB = "/api/nsrdb/v2/solar/"
14+
GOES_ENDPOINT = "nsrdb-GOES-aggregated-v4-0-0-download.csv"
15+
TMY_ENDPOINT = "nsrdb-GOES-tmy-v4-0-0-download.csv"
16+
GOESCONUS_ENDPOINT = "nsrdb-GOES-conus-v4-0-0-download.csv"
17+
GOES_URL = NSRDB_API_BASE + API_STUB + GOES_ENDPOINT
18+
TMY_URL = NSRDB_API_BASE + API_STUB + TMY_ENDPOINT
19+
GOESCONUS_URL = NSRDB_API_BASE + API_STUB + GOESCONUS_ENDPOINT
1820

1921
ATTRIBUTES = (
2022
'air_temperature', 'dew_point', 'dhi', 'dni', 'ghi', 'surface_albedo',
@@ -74,7 +76,7 @@ def get_goes4(latitude, longitude, api_key, email, names='tmy', interval=60,
7476
timeout=30):
7577
"""
7678
Retrieve NSRDB GOES4 timeseries weather data from the GOES4 API. The NSRDB
77-
is described in [1]_ and the GOES4 API is described in [2]_, [3]_, and
79+
is described in [1]_ and the GOES4 API is described in [2]_, [3]_, and
7880
[4]_.
7981
8082
Parameters

0 commit comments

Comments
 (0)