Skip to content

Commit ddeddfd

Browse files
committed
fix y-label unit in uStarThreshold plots
1 parent 9db61fa commit ddeddfd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/EddyUStarFilterDP.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ usEstUstarThreshold = function(
407407
, NEEColName = "NEE" ##<< column name for NEE
408408
, TempColName = "Tair" ##<< column name for air temperature
409409
, xlab = bquote(u['*']*" (" * m~s^-1 * ")")
410-
, ylab = bquote("NEE (" * gC~ m^-2~yr^-1 * ")")
410+
#, ylab = bquote("NEE (" * gC~ m^-2~yr^-1 * ")")
411+
, ylab = bquote("NEE (" * umol~C~m^-2~s^-1 * ")")
411412
) {
412413
##author<< TW
413414
dss <- NEEUStar.F[, c(NEEColName, UstarColName, TempColName, "uStarBin", "sDateTime")]

tests/testthat/test_UStarFilter.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ test_that("sEstUstarThold: standard case",{
8181
, c( usControlUstarSubsetting()$taClasses
8282
, length(unique(usCreateSeasonFactorMonth(eddyC$sDATA$sDateTime))) ))
8383
#REddyProc:::.plotNEEVersusUStarTempClass(
84-
#subset(eddyC$sDATA, season == "1998001" & tempBin == 5 & is.finite(NEE)), uStarTh = 0.65)
84+
#subset(cbind(eddyC$sDATA, season=eddyC$sTEMP$season), season == "1998001" & tempBin == 5 & is.finite(NEE)), uStarTh = 0.65)
85+
#
8586
})
8687

8788
test_that("sEstUstarThold: missing Ustar column",{

0 commit comments

Comments
 (0)