From 796983b63d7c146cb48c0f338db97d5a2c9c789b Mon Sep 17 00:00:00 2001 From: Rich Fiorella Date: Sun, 21 Jul 2024 09:24:45 -0600 Subject: [PATCH] scope out new files --- R/restructure_data.R | 5 ++++- workflows/carbon_error_estimation.R | 0 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 workflows/carbon_error_estimation.R diff --git a/R/restructure_data.R b/R/restructure_data.R index d55f5db..90fa025 100644 --- a/R/restructure_data.R +++ b/R/restructure_data.R @@ -32,6 +32,8 @@ ingest_data <- function(inname, analyte <- validate_analyte(analyte) backupMethod <- FALSE + print(paste("Amb avg is:", amb_avg, "minutes")) + print(paste("Ref avg is:", ref_avg, "minutes")) # read attributes from (first file in) inname site <- rhdf5::h5ls(inname[1], recursive = 1)[1, 2] @@ -42,11 +44,12 @@ ingest_data <- function(inname, if (analyte == "Co2") { if (packageVersion("neonUtilities") >= "2.3.0") { + print(amb_avg) data <- try(neonUtilities::stackEddy(inname, avg = amb_avg, level = "dp01", var = "isoCo2", - useFasttime = TRUE)[[1]], silent = TRUE) + useFasttime = TRUE)[[1]], silent = FALSE) if ("try-error" %in% class(data)) { data <- neonUtilities::stackEddy(inname, avg = 9, diff --git a/workflows/carbon_error_estimation.R b/workflows/carbon_error_estimation.R new file mode 100644 index 0000000..e69de29