filter_sms: Filter SMS data

Description Usage Arguments Value Examples

View source: R/sms_functions.R

Description

Apply measurement cutoff filters and flag filters

Usage

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

Arguments

sms_flagged

Dataframe of sms data with "tidy" variables

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)

Value

SMS Dataframe with zero at all points below the measurement cutoff minimum and NA for all points with flag filters applied

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
## Get flagged, tidy sms data
sms_flagged <- read_groundwork(groundwork_file_list)

## Apply filters
sms_filtered <- filter_sms(sms_flagged)
no_flag_filters <- filter_sms(sms_flagged, flagged_data_is_filtered = FALSE)
change_cutoff_filters <- filter_sms(sms_flagged, ghi_cutoff_min = 10, ws_cutoff_min = 0)

## End(Not run)

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