Skip to content

Commit

Permalink
Update out-of-service.R
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Dec 20, 2023
1 parent 89881b3 commit 4e56f2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions synoptic/out-of-service.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ prep_troll_oos_table <- function(troll) {
troll$oos_end <- troll$oos_end + 60 * 60 * 24

troll$Sensor <- troll$Troll

# If an Aquatroll is out of service, ALL of its data channels
# (Barometric_Pressure600A Temperature600A, etc.) should be flagged.
# But right now we don't have a way to do this, because the design link
# {what}-{site}-{plot}-{which} format doesn't allow it. So we flag the
# battery entry; once hierarchical flagging, is implemented, this should
# propagate to all the Aquatroll entries in L2 (but not L1).
troll$What <- "GW_BattV"

# Return a data frame with the needed columns: the oos begin and end,
# as well as the additional columns to match
troll[c("Site", "Location", "Sensor", "oos_begin", "oos_end")]
}

Expand Down

0 comments on commit 4e56f2e

Please sign in to comment.