@@ -75,8 +75,8 @@ def get_psm4(latitude, longitude, api_key, email, names='tmy', interval=60,
7575 affiliation = PVLIB_PYTHON , map_variables = True , url = None ,
7676 timeout = 30 ):
7777 """
78- Retrieve NSRDB PSM4 timeseries weather data from the GOES4 API. The NSRDB
79- is described in [1]_ and the GOES4 API is described in [2]_, [3]_, and
78+ Retrieve NSRDB PSM4 timeseries weather data from the PSM4 API. The NSRDB
79+ is described in [1]_ and the PSM4 API is described in [2]_, [3]_, and
8080 [4]_.
8181
8282 Parameters
@@ -91,8 +91,8 @@ def get_psm4(latitude, longitude, api_key, email, names='tmy', interval=60,
9191 NREL API uses this to automatically communicate messages back
9292 to the user only if necessary
9393 names : str, default 'tmy'
94- GOES4 API parameter specifing year (e.g. ``2020``) or TMY variant
95- to download (e.g. ``'tmy'`` or ``'tgy-2022'``). The allowed values
94+ PSM4 API parameter specifing year (e.g. ``2020``) or TMY variant to
95+ download (e.g. ``'tmy'`` or ``'tgy-2022'``). The allowed values
9696 update periodically, so consult the NSRDB references below for the
9797 current set of options.
9898 interval : int, {60, 5, 15, 30}
@@ -178,7 +178,7 @@ def get_psm4(latitude, longitude, api_key, email, names='tmy', interval=60,
178178 # convert pvlib names in attributes to PSM4 convention
179179 attributes = [REQUEST_VARIABLE_MAP .get (a , a ) for a in attributes ]
180180
181- # required query-string parameters for request to GOES4 API
181+ # required query-string parameters for request to PSM4 API
182182 params = {
183183 'api_key' : api_key ,
184184 'full_name' : full_name ,
@@ -215,10 +215,10 @@ def get_psm4(latitude, longitude, api_key, email, names='tmy', interval=60,
215215 # the CSV is in the response content as a UTF-8 bytestring
216216 # to use pandas we need to create a file buffer from the response
217217 fbuf = io .StringIO (response .content .decode ('utf-8' ))
218- return parse_goes4 (fbuf , map_variables )
218+ return parse_psm4 (fbuf , map_variables )
219219
220220
221- def parse_goes4 (fbuf , map_variables = True ):
221+ def parse_psm4 (fbuf , map_variables = True ):
222222 """
223223 Parse an NSRDB PSM4 weather file (formatted as SAM CSV). The NSRDB
224224 is described in [1]_ and the SAM CSV format is described in [2]_.
0 commit comments