p_iv.week: Obtain Psuedo IV Curve and other predicted IV features at...

Description Usage Arguments Value Examples

View source: R/tpk-piv_iv_week.R

Description

Obtain Psuedo IV Curve and other predicted IV features at reference conditions for a given week, used internally in IVxbyx function.

Usage

1
p_iv.week(df, temp, N_c, isc_1sun = NULL)

Arguments

df

A dataframe containing timeseries I-V features of one period.

temp

The reference module temperature to correct the Psuedo IV curve to be, unit of the temperature should be Celsius.

N_c

Number of cells in series. Equal to the total number of cells in the system.

isc_1sun

(optional) Input an Isc 1-Sun value manually. Leave NULL to have one generated from the dataframe.

Value

Psuedo-IV Curve data with features extracted and evaluation parameters of fitting grouped for a single, given period.

Examples

1
2
3
4
5
6
7
df <- read_df_raw(df_wbw,0.02,7)
df_slice <- dplyr::filter(df, df$n_period == 1)
# Check that this has enough data! needs more than 10 rows to be meaningful
nrow(df_slice)
# needs median temperature
temp <- median_temp(df_wbw)
res <- p_iv.week(df_slice, temp = temp, N_c = 60)

SunsVoc documentation built on April 30, 2021, 5:07 p.m.