Skip to content

Commit 2301778

Browse files
committed
moved utc earlier
1 parent 457a927 commit 2301778

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

pvlib/iotools/psm4.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
7777
parameters=PARAMETERS, leap_day=True,
7878
full_name=PVLIB_PYTHON,
7979
affiliation=PVLIB_PYTHON,
80-
map_variables=True, url=None, timeout=30,
81-
utc=False):
80+
utc=False, map_variables=True, url=None,
81+
timeout=30):
8282
"""
8383
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES
8484
Aggregated v4 API.
@@ -116,6 +116,9 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
116116
optional
117117
affiliation : str, default 'pvlib python'
118118
optional
119+
utc: bool, default : False
120+
retrieve data with timestamps converted to UTC. False returns
121+
timestamps in local standard time of the selected location
119122
map_variables : bool, default True
120123
When true, renames columns of the Dataframe to pvlib variable names
121124
where applicable. See variable :const:`VARIABLE_MAP`.
@@ -124,9 +127,6 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
124127
URL is used.
125128
timeout : int, default 30
126129
time in seconds to wait for server response before timeout
127-
utc: bool, default : False
128-
retrieve data with timestamps converted to UTC. False returns
129-
timestamps in local standard time of the selected location
130130
131131
Returns
132132
-------
@@ -221,7 +221,7 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
221221
def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
222222
time_period=60, parameters=PARAMETERS, leap_day=False,
223223
full_name=PVLIB_PYTHON, affiliation=PVLIB_PYTHON,
224-
map_variables=True, url=None, timeout=30, utc=False):
224+
utc=False, map_variables=True, url=None, timeout=30):
225225
"""
226226
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES
227227
TMY v4 API.
@@ -259,6 +259,9 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
259259
optional
260260
affiliation : str, default 'pvlib python'
261261
optional
262+
utc: bool, default : False
263+
retrieve data with timestamps converted to UTC. False returns
264+
timestamps in local standard time of the selected location
262265
map_variables : bool, default True
263266
When true, renames columns of the Dataframe to pvlib variable names
264267
where applicable. See variable :const:`VARIABLE_MAP`.
@@ -267,9 +270,6 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
267270
used.
268271
timeout : int, default 30
269272
time in seconds to wait for server response before timeout
270-
utc: bool, default : False
271-
retrieve data with timestamps converted to UTC. False returns
272-
timestamps in local standard time of the selected location
273273
274274
Returns
275275
-------
@@ -364,8 +364,7 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
364364
def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
365365
time_period=60, parameters=PARAMETERS, leap_day=True,
366366
full_name=PVLIB_PYTHON, affiliation=PVLIB_PYTHON,
367-
map_variables=True, url=None, timeout=30,
368-
utc=False):
367+
utc=False, map_variables=True, url=None, timeout=30):
369368
"""
370369
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES CONUS
371370
v4 API.
@@ -402,6 +401,9 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
402401
optional
403402
affiliation : str, default 'pvlib python'
404403
optional
404+
utc: bool, default : False
405+
retrieve data with timestamps converted to UTC. False returns
406+
timestamps in local standard time of the selected location
405407
map_variables : bool, default True
406408
When true, renames columns of the Dataframe to pvlib variable names
407409
where applicable. See variable :const:`VARIABLE_MAP`.
@@ -410,9 +412,6 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
410412
used.
411413
timeout : int, default 30
412414
time in seconds to wait for server response before timeout
413-
utc: bool, default : False
414-
retrieve data with timestamps converted to UTC. False returns
415-
timestamps in local standard time of the selected location
416415
417416
Returns
418417
-------
@@ -508,8 +507,8 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
508507
names='2023', time_period=60,
509508
parameters=PARAMETERS, leap_day=True,
510509
full_name=PVLIB_PYTHON,
511-
affiliation=PVLIB_PYTHON, map_variables=True,
512-
url=None, timeout=30, utc=False):
510+
affiliation=PVLIB_PYTHON, utc=False,
511+
map_variables=True, url=None, timeout=30):
513512
"""
514513
Retrieve NSRDB PSM4 timeseries weather data from the PSM4 NSRDB GOES Full
515514
Disc v4 API.
@@ -547,6 +546,9 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
547546
optional
548547
affiliation : str, default 'pvlib python'
549548
optional
549+
utc: bool, default : False
550+
retrieve data with timestamps converted to UTC. False returns
551+
timestamps in local standard time of the selected location
550552
map_variables : bool, default True
551553
When true, renames columns of the Dataframe to pvlib variable names
552554
where applicable. See variable :const:`VARIABLE_MAP`.
@@ -555,9 +557,6 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
555557
URL is used.
556558
timeout : int, default 30
557559
time in seconds to wait for server response before timeout
558-
utc: bool, default : False
559-
retrieve data with timestamps converted to UTC. False returns
560-
timestamps in local standard time of the selected location
561560
562561
Returns
563562
-------

0 commit comments

Comments
 (0)