Skip to content

Commit 1b1793d

Browse files
Apply suggestions from code review
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
1 parent 2f127e4 commit 1b1793d

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

pvlib/iotools/nasa_power.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ def get_nasa_power(latitude, longitude, start, end, parameters,
3434
longitude: float
3535
In decimal degrees, east is positive (ISO 19115).
3636
start: datetime like
37-
First timestamp of the requested period. If a timezone is not
38-
specified, UTC is assumed.
37+
First timestamp of the requested period.
3938
end: datetime like
40-
Last timestamp of the requested period. If a timezone is not
41-
specified, UTC is assumed.
39+
Last timestamp of the requested period.
4240
parameters: str, list
4341
List of parameters. Some common parameters are mentioned below; for the
4442
full list see [3]_:
@@ -60,11 +58,11 @@ def get_nasa_power(latitude, longitude, start, end, parameters,
6058
* ``'sb'``: sustainable buildings
6159
* ``'ag'``: agroclimatology
6260
63-
time_standard: str, default: ``'utc'``
64-
Can be either ``'utc'`` or ``'lst'``:
61+
time_standard: str, optional
62+
Must be one of the below options. The default is ``'utc'``.
6563
66-
* Universal Time Coordinated (utc)
67-
* Local Solar Time (lst): A 15 Degrees swath that represents solar
64+
* ``'utc'`` universal time coordinated
65+
* ``'lst'``: local solar time. 15 degree swath that represents solar
6866
noon at the middle longitude of the swath
6967
7068
elevation: float, optional
@@ -76,10 +74,10 @@ def get_nasa_power(latitude, longitude, start, end, parameters,
7674
wind_surface: str, optional
7775
The definable surface type to adjust the wind speed. For a list of the
7876
surface types see [4]_.
79-
map_variables: bool, optional, default: True
77+
map_variables: bool, optional
8078
When true, renames columns of the Dataframe to pvlib variable names
81-
where applicable. The default is True. See variable
82-
:const:`VARIABLE_MAP`.
79+
where applicable. See variable :const:`VARIABLE_MAP`.
80+
The default is True.
8381
8482
Raises
8583
------
@@ -105,8 +103,6 @@ def get_nasa_power(latitude, longitude, start, end, parameters,
105103
"""
106104
start = pd.Timestamp(start)
107105
end = pd.Timestamp(end)
108-
start = start.tz_localize('UTC') if start.tzinfo is None else start
109-
end = end.tz_localize('UTC') if end.tzinfo is None else end
110106

111107
params = {
112108
'latitude': latitude,

0 commit comments

Comments
 (0)