Skip to content

Commit 2af1a2b

Browse files
committed
Remove conversion from datetime to date for d/M freqs
1 parent 4b58d16 commit 2af1a2b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pvlib/iotools/sodapro.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
117117
======================== ====== =========================================
118118
**Mapped field names are returned when the map_variables argument is True**
119119
---------------------------------------------------------------------------
120-
Observation period str Start of time period
120+
Observation period str Start of the time period (left labeled)
121121
TOA, ghi_extra float Horizontal radiation at top of atmosphere
122122
Clear sky GHI, ghi_clear float Clear sky global radiation on horizontal
123123
Clear sky BHI, bhi_clear float Clear sky beam radiation on horizontal
@@ -301,10 +301,6 @@ def parse_cams(fbuf, integrated=False, map_variables=True):
301301
# Set index as the start observation time (left) and localize to UTC
302302
data.index = pd.to_datetime(obs_period.str[0], utc=True)
303303

304-
# For time_steps '1d' and '1MS' drop timezone and round to nearest midnight
305-
if (time_step == '1d') | time_step.endswith('MS'): # noqa
306-
data.index = pd.DatetimeIndex(data.index.date)
307-
308304
if not integrated: # Convert radiation values from Wh/m2 to W/m2
309305
integrated_cols = [c for c in CAMS_INTEGRATED_COLUMNS
310306
if c in data.columns]

0 commit comments

Comments
 (0)