energy_methods.degradation_preprocessing#
Explicit time-series preparation for the 2021 degradation uncertainty study.
- energy_methods.degradation_preprocessing.prepare_power_trend(frame, *, age_origin, window_months=12)[source]#
Section 2.5 power screening and a declared monthly moving-average trend.
Columns: power_w, poa_w_m2. Keep 800<=POA<=1200 W/m²; scale power to 1000 W/m²; retain values within mean +/- 2 population standard deviations. Then monthly means and a centered full-window moving average; normalize by the maximum available trend. No temperature-to-STC correction is implied. Monthly aggregation, population SD and window length are repository choices. Centering uses future observations: use for retrospective analysis only and prepare a calibration interval separately from any holdout interval.
Missing months remain missing; no interpolation across gaps. Ages retain their declared origin, even if the initial months have no usable records. Attrs report filter counts and choices. Cleaning, snow and reversible losses still need independent screening; this filter does not identify their cause.
- Parameters:
frame (DataFrame)
age_origin (Timestamp)
window_months (int)
- Return type:
DataFrame
- energy_methods.degradation_preprocessing.annual_stress_summary(frame, *, year, cycles_per_year)[source]#
Full UTC year of hourly interval-start weather to the paper’s stresses.
Columns: module_temperature_c, relative_humidity_percent, uv_irradiance_w_m2, poa_w_m2. Means and 5th/95th temperature percentiles use POA>0 records; UV dose integrates all hourly intervals, /1000 to kWh/m². Missing hours or values fail; no annualization of incomplete data. Nighttime UV must be zero. Cycle frequency is supplied independently, never inferred from record count.
- Parameters:
frame (DataFrame)
year (int)
cycles_per_year (float)
- Return type:
dict