energy_from_power
returns incorrect index for shifted hourly data
#370
Labels
energy_from_power
returns incorrect index for shifted hourly data
#370
TrendAnalysis does not like hourly data where the timestamps are not at the top of the hour. Here is a toy example where it errors when given an input time series timestamped at the half-hour mark instead of the usual
00
:Inspection of the object's attributes reveals that
pv_energy
's index is misaligned with the original data's index (the minutes have been truncated to00
):Index misalignment between energy and the irradiance data messes up the filtering, resulting in the "less than two years" error. Of course, the index difference traces back to
energy_from_power
:And from there, I think, to the call to
_aggregate
and aresample
it performs:rdtools/rdtools/normalization.py
Lines 615 to 618 in d19fa83
The text was updated successfully, but these errors were encountered: