diff --git a/NAMESPACE b/NAMESPACE index cf48cce..400cf82 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -114,7 +114,7 @@ export(sEddyProc_sTKFluxPartition) export(sEddyProc_sTKFluxPartitionUStarScens) export(sEddyProc_update_ustarthreshold_columns) export(sEddyProc_useAnnualUStarThresholds) -export(sEddyProc_useSeaonsalUStarThresholds) +export(sEddyProc_useSeasonalUStarThresholds) export(usControlUstarEst) export(usControlUstarSubsetting) export(usCreateSeasonFactorMonth) diff --git a/R/aEddy.R b/R/aEddy.R index 25a3abc..92858ed 100644 --- a/R/aEddy.R +++ b/R/aEddy.R @@ -286,7 +286,7 @@ sEddyProc_sSetUstarScenarios <- function( sEddyProc$methods(sSetUstarScenarios = sEddyProc_sSetUstarScenarios) #' @export -sEddyProc_useSeaonsalUStarThresholds <- function( +sEddyProc_useSeasonalUStarThresholds <- function( ### use seasonal estimates of uStar thresholds ) { ##seealso<< \code{\link{sEddyProc_sSetUstarScenarios}}, @@ -295,14 +295,16 @@ sEddyProc_useSeaonsalUStarThresholds <- function( uStarMap <- usGetSeasonalSeasonUStarMap(uStarThAgg) .self$sSetUstarScenarios(uStarMap) } -sEddyProc$methods(useSeaonsalUStarThresholds = sEddyProc_useSeaonsalUStarThresholds) +sEddyProc$methods(useSeasonalUStarThresholds = sEddyProc_useSeasonalUStarThresholds) +# backward compatibiity to former typo +sEddyProc$methods(useSeaonsalUStarThresholds = sEddyProc_useSeasonalUStarThresholds) #' @export sEddyProc_useAnnualUStarThresholds <- function( ### use seasonal estimates of uStar thresholds ) { ##seealso<< \code{\link{sEddyProc_sSetUstarScenarios}}, - ## \code{\link{sEddyProc_useSeaonsalUStarThresholds}} + ## \code{\link{sEddyProc_useSeasonalUStarThresholds}} uStarThAgg <- .self$sGetEstimatedUstarThresholdDistribution() uStarMap <- usGetAnnualSeasonUStarMap(uStarThAgg) .self$sSetUstarScenarios(uStarMap) diff --git a/man/sEddyProc_useAnnualUStarThresholds.Rd b/man/sEddyProc_useAnnualUStarThresholds.Rd index b4a38a3..572628e 100644 --- a/man/sEddyProc_useAnnualUStarThresholds.Rd +++ b/man/sEddyProc_useAnnualUStarThresholds.Rd @@ -11,5 +11,5 @@ \seealso{\code{\link{sEddyProc_sSetUstarScenarios}}, -\code{\link{sEddyProc_useSeaonsalUStarThresholds}}} +\code{\link{sEddyProc_useSeasonalUStarThresholds}}} diff --git a/man/sEddyProc_useSeaonsalUStarThresholds.Rd b/man/sEddyProc_useSeasonalUStarThresholds.Rd similarity index 76% rename from man/sEddyProc_useSeaonsalUStarThresholds.Rd rename to man/sEddyProc_useSeasonalUStarThresholds.Rd index a1e71ee..c430557 100644 --- a/man/sEddyProc_useSeaonsalUStarThresholds.Rd +++ b/man/sEddyProc_useSeasonalUStarThresholds.Rd @@ -1,8 +1,8 @@ -\name{sEddyProc_useSeaonsalUStarThresholds} -\alias{sEddyProc_useSeaonsalUStarThresholds} -\title{sEddyProc useSeaonsalUStarThresholds} +\name{sEddyProc_useSeasonalUStarThresholds} +\alias{sEddyProc_useSeasonalUStarThresholds} +\title{sEddyProc useSeasonalUStarThresholds} \description{use seasonal estimates of uStar thresholds} -\usage{sEddyProc_useSeaonsalUStarThresholds()} +\usage{sEddyProc_useSeasonalUStarThresholds()} diff --git a/vignettes/DEGebExample.Rmd b/vignettes/DEGebExample.Rmd index 2fde8b8..f7a4f81 100644 --- a/vignettes/DEGebExample.Rmd +++ b/vignettes/DEGebExample.Rmd @@ -103,7 +103,7 @@ abline( v = seasonStartsDate$DateTime) The user-specific seasoning is provided to the gap-filling by the argument `seasonFactor`. ```{r DEGeb_estUStar1b, cache = TRUE} (uStarTh <- EProc$sEstUstarThold(seasonFactor = seasonFactor)) -#EProc$useSeaonsalUStarThresholds() +#EProc$useSeasonalUStarThresholds() # estimation can be inspected by plotting the saturation of NEE with UStar # for the temperatures of one season #EProc$sPlotNEEVersusUStarForSeason( levels(uStarTh$season)[2] ) @@ -116,11 +116,11 @@ the mean across the years. By default the gap-filling uses annually aggregated estimates of uStar-Threshold. This usually works for sites with continuous vegetation cover. For the crop-site of this example, we will use a different threshold for each of -the defined seasons, by calling `sEddyProc_useSeaonsalUStarThresholds` +the defined seasons, by calling `sEddyProc_useSeasonalUStarThresholds` before gapfilling. ```{r DEGeb_estUStar1c} -EProc$useSeaonsalUStarThresholds() +EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ``` @@ -154,7 +154,7 @@ EProc$sEstimateUstarScenarios( # EProc$sGetEstimatedUstarThresholdDistribution() #)) #EProc$sSetUstarScenarios(uStarScens) -EProc$useSeaonsalUStarThresholds() +EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ``` @@ -205,7 +205,7 @@ resUStar <- EProc$sEstUstarThold( , seasonFactor = seasonFactor ) #(uStarThCP <- usGetSeasonalSeasonUStarMap(resUStar)) -EProc$useSeaonsalUStarThresholds() +EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ``` diff --git a/vignettes/DEGebExample.md b/vignettes/DEGebExample.md index aa37a78..c3a970d 100644 --- a/vignettes/DEGebExample.md +++ b/vignettes/DEGebExample.md @@ -93,7 +93,7 @@ argument `seasonFactor`. ## 12 season 2006 2006120 0.06966667 ## 13 season 2006 2006305 0.25094444 - #EProc$useSeaonsalUStarThresholds() + #EProc$useSeasonalUStarThresholds() # estimation can be inspected by plotting the saturation of NEE with UStar # for the temperatures of one season #EProc$sPlotNEEVersusUStarForSeason( levels(uStarTh$season)[2] ) @@ -106,9 +106,9 @@ By default the gap-filling uses annually aggregated estimates of uStar-Threshold. This usually works for sites with continuous vegetation cover. For the crop-site of this example, we will use a different threshold for each of the defined seasons, by calling -`sEddyProc_useSeaonsalUStarThresholds` before gapfilling. +`sEddyProc_useSeasonalUStarThresholds` before gapfilling. - EProc$useSeaonsalUStarThresholds() + EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ## season uStar @@ -148,7 +148,7 @@ uStar Threshold. # EProc$sGetEstimatedUstarThresholdDistribution() #)) #EProc$sSetUstarScenarios(uStarScens) - EProc$useSeaonsalUStarThresholds() + EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ## season uStar U10 U90 @@ -206,7 +206,7 @@ as Gap. , seasonFactor = seasonFactor ) #(uStarThCP <- usGetSeasonalSeasonUStarMap(resUStar)) - EProc$useSeaonsalUStarThresholds() + EProc$useSeasonalUStarThresholds() EProc$sGetUstarScenarios() ## season uStar diff --git a/vignettes/uStarCases.Rmd b/vignettes/uStarCases.Rmd index 6e91642..2746064 100644 --- a/vignettes/uStarCases.Rmd +++ b/vignettes/uStarCases.Rmd @@ -152,12 +152,12 @@ In conjunction with method `usGetSeasonalSeasonUStarMap` and `sEddyProc_sSetUstarScenarios` this can be used to set seasonally different u* threshold. However, this common case supported by method -`sEddyProc_useSeaonsalUStarThresholds`. +`sEddyProc_useSeasonalUStarThresholds`. ```{r uStarScenSetSeasonal} #EProc$sSetUstarScenarios( # usGetSeasonalSeasonUStarMap(uStarThAgg)[,-2]) -EProc$useSeaonsalUStarThresholds() +EProc$useSeasonalUStarThresholds() # inspect the changed thresholds to be used EProc$sGetUstarScenarios() ``` diff --git a/vignettes/uStarCases.md b/vignettes/uStarCases.md index a29e793..a6c07fd 100644 --- a/vignettes/uStarCases.md +++ b/vignettes/uStarCases.md @@ -149,11 +149,11 @@ estimates for different aggregation levels, use method In conjunction with method `usGetSeasonalSeasonUStarMap` and `sEddyProc_sSetUstarScenarios` this can be used to set seasonally different u\* threshold. However, this common case supported by method -`sEddyProc_useSeaonsalUStarThresholds`. +`sEddyProc_useSeasonalUStarThresholds`. #EProc$sSetUstarScenarios( # usGetSeasonalSeasonUStarMap(uStarThAgg)[,-2]) - EProc$useSeaonsalUStarThresholds() + EProc$useSeasonalUStarThresholds() # inspect the changed thresholds to be used EProc$sGetUstarScenarios()