Skip to content

Commit

Permalink
update docu of usGetValidUstarIndices
Browse files Browse the repository at this point in the history
constrains to (rather than omit) night-time data
  • Loading branch information
bgctw committed May 3, 2024
1 parent ddeddfd commit 43eea8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/EddyUStarFilterDP.R
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ usEstUstarThresholdSingleFw2Binned <- function(


usGetValidUstarIndices <- function(
### remove non-finite cases and omit night time data.
### remove non-finite cases and constrain to night time data.
ds ##<< data.frame with columns
, UstarColName = "Ustar" ##<< column name for UStar
, NEEColName = "NEE" ##<< column name for NEE
Expand All @@ -1189,8 +1189,8 @@ usGetValidUstarIndices <- function(
is.finite(ds[, UstarColName]) &
is.finite(ds[, RgColName])
bo <- bo & ds[, RgColName] < swThr
##value<< boolean vector with non-finite cases and cases
## with radiation < swThr set to FALSE.
##value<< boolean vector with TRUE only for finite cases during
## night-time respiration.
bo
}

Expand Down

0 comments on commit 43eea8d

Please sign in to comment.