Description Usage Arguments Details Value Examples
View source: R/sms_functions.R
Converts a tidy sms (solar met station) dataframe to megaframe format
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
)
|
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) |
megaframe format consists of distinct, hourly variabls: datetime, year, month, model, ghi, dni, dhi, temp, ws
dataframe of onsite data formatted for megaframe inclusion
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.