plr_saturation_removal {PVplr} | R Documentation |
Removing Saturated Data
Description
Tests for readings which may indicate saturation of the system. Removes values above the power saturation limit (calculated by multiplying sat_limit and power_thresh).
Usage
plr_saturation_removal(df, var_list, sat_limit, power_thresh = 0.99)
Arguments
df |
A dataframe containing pv data. |
var_list |
A list of the dataframe's standard variable names, obtained from
the output of |
sat_limit |
An upper limit on power saturation. This is multiplied by the power threshold, and power values above this point are filtered from the dataframe. The value depends on the system's inverter. |
power_thresh |
An upper limit on power. |
Value
Returns passed data frame with rows removed which contain power values above the specified threshold
Examples
# build var_list
var_list <- plr_build_var_list(time_var = "timestamp",
power_var = "power",
irrad_var = "g_poa",
temp_var = "mod_temp",
wind_var = NA)
# Clean Data
test_dfc <- plr_cleaning(test_df, var_list, irrad_thresh = 100,
low_power_thresh = 0.01, high_power_cutoff = NA)
test_dfc_removed_saturation <- plr_saturation_removal(test_dfc, var_list,
sat_limit = 3000, power_thresh = 0.99)
[Package PVplr version 0.1.2 Index]