sunpeek.core_methods.pc_method.formula.Formula2#
- class sunpeek.core_methods.pc_method.formula.Formula2(use_wind)#
Bases:
Formula
Implement formula 2 of the ISO 24194. See
Formula
base class for more info.Methods
__init__
(use_wind)calc_estimated_power
(array, aggregator)Calculate the estimated specific power output of a collector array based on formula 2 in ISO 24194.
calc_pc_restrictions
(plant, resampler)Check the operating condition restrictions of ISO 24194.
create
(formula, use_wind)get_feedback
(fb, array, check_mode)get_nan_mask
(plant)Check if all sensors required to apply a specific formula are available.
- calc_estimated_power(array, aggregator)#
Calculate the estimated specific power output of a collector array based on formula 2 in ISO 24194.
- Return type:
- calc_pc_restrictions(plant, resampler)#
Check the operating condition restrictions of ISO 24194. Implement Table 1, chapter 5.4.
- Parameters:
plant (
Plant
)resampler (
Callable
) – Aggregates single records into an aggregated value, e.g. hourly mean.
- Returns:
pd.Series
- Return type:
bool mask
,True where any
ofthe sensors required
tocalculate the formulae are NaN.
Notes
- From the ISO 24194:
# 6.2 Valid data records Only data records (hourly average values) fulfilling the requirements in section 5.4 are valid. For checking the collector performance, the measuring period shall have at least 20 datapoints. […] All valid datapoints should be used unless it is obvious that errors in the data or very atypical operating conditions occur (omitting valid data points shall be reported and justified).
- get_nan_mask(plant)#
Check if all sensors required to apply a specific formula are available.
- Returns:
bool
- Return type:
True where any
ofthe sensors required
tocalculate the formula are NaN.
Notes
In this PC Method implementation, only data records are used where none of the needed sensor records is NaN.