Skip to content

Commit

Permalink
Merge pull request #35 from COMPASS-DOE/bye-bye-deeps
Browse files Browse the repository at this point in the history
Remove obsolete sap flow sensors (quick fix)
  • Loading branch information
bpbond authored Jun 7, 2024
2 parents 5fe5353 + d4f9be3 commit bdde9f7
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 433 deletions.
5 changes: 4 additions & 1 deletion R/process_sapflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ process_sapflow <- function(token, datadir) {
select(Plot, Timestamp, Record, BattV_Avg, Port, Value, Logger, Tree_Code, Grid_Square, Out_Of_Plot, Species, Installation_Date) %>%
mutate(Deep_Sensor = grepl("D", Tree_Code),
Grid_Letter = substring(Grid_Square, 1, 1),
Grid_Number = substring(Grid_Square, 2, 2)) -> sapflow
Grid_Number = substring(Grid_Square, 2, 2)) %>%
# TEMPORARY HACK -- JUNE 2024 -- REMOVE OBSOLETE SENSOR CODES
filter(!Tree_Code %in% c("SD2", "CD6", "SD9", "CD10")) ->
sapflow

nomatch_ports <- anti_join(sf_raw, sf_inventory, by = c("Logger", "Port"))

Expand Down
Loading

0 comments on commit bdde9f7

Please sign in to comment.