prepare_sms_flagged_for_megaframe: Prepare Flagged SMS Dataframe for Megaframe Compilation

Description Usage Arguments Details Value Examples

View source: R/sms_functions.R

Description

Converts a tidy sms (solar met station) dataframe to megaframe format

Usage

1
2
3
4
5
6
prepare_sms_flagged_for_megaframe(
  sms_flagged,
  ghi_cutoff_min = 5,
  ws_cutoff_min = 0.25,
  flagged_data_is_filtered = TRUE
)

Arguments

sms_flagged

Tidy SMS dataframe

ghi_cutoff_min

Measured GHI values below this cutoff will be filtered to zero because of poor sensor performance at low values (W/m2)

ws_cutoff_min

Measured wind speed values below this cutoff will be filtered to zero (m/s)

flagged_data_is_filtered

Whether or not we should filter out the flagged data (Recommended)

Details

megaframe format consists of distinct, hourly variabls: datetime, year, month, model, ghi, dni, dhi, temp, ws

Value

dataframe of onsite data formatted for megaframe inclusion

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## Get sms_flagged dataframe (onsite data with "tidy" variables)
sms_files <- paste0('data/Groundwork/', dir(path = "data/Groundwork/", pattern = "*.csv"))
sms_flagged <- read_groundwork(sms_files)

## Prepare for Megaframe
sms <- prepare_sms_flagged_for_megaframe(sms_flagged)

## End(Not run)

btaute/powerResource documentation built on Sept. 4, 2020, 4:36 p.m.