process_hobo: Process data from HOBOware

View source: R/process_hobo.R

process_hoboR Documentation

Process data from HOBOware

Description

This function processes data from Onset HOBOware.

Usage

process_hobo(my_wxdat)

Arguments

my_wxdat

List from import_hobo_2008 or import_hobo.

Details

This function processes precipitation, temperature, and relative humidity data exported from Onset HOBOware. It uses the list created by import_hobo_2008 or import_hobo and then processes the data using raindance or sundance.

For precipitation data, this function strips the first 5 minutes and last
10 minutes of data to account for field procedures when downloading the
event logger. It is common practice to trigger an event before
downloading and after launching the logger. To remove these false events
there is a routine to strip the first 5 minutes of the data if the
"launch_time Time" and "First Sample Time" are the same. There is no way
to determine if the tipping bucket is triggered before downloading the
data, so the last 10 minutes of every file is stripped before processing.

Value

This function returns a four (4) object list.

file_info

This component is a vector that contains the file name, the date stamp, plot ID, the number of lines to skip to properly import the data, the number of columns of data in the raw file, and the Elements measured.

details

This component is a data frame of metadata.

data_raw

This component is a data frame.

data

This component is a data frame of summarized data from raindance or sundance.

See Also

import_hobo_2008, import_hobo, raindance, sundance

Examples

## Not run: 
library("raindancer")

# Generate list of files
file_list <- list.files(path = system.file("extdata", package = "raindancer"),
                        pattern = ".csv", full.names = TRUE, recursive = FALSE)

# Precipitation data
import_hobo_2008(file_list[2]) |> process_hobo()

# Temperature and relative humidity data
import_hobo(file_list[5]) |> process_hobo()

## End(Not run)


scoyoc/rainDanceR documentation built on Jan. 10, 2023, 3:29 p.m.