Skip to content

Commit

Permalink
Merge pull request #63 from tamnva/joss_manuscript
Browse files Browse the repository at this point in the history
update vignettes
  • Loading branch information
tamnva authored Feb 8, 2024
2 parents 6ccad85 + abc2bb4 commit 8cdcd1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vignettes/run_SWATplus_with_given_parametersets.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ knitr::opts_chunk$set(
# # Now calculate the 95PPU (SUFI2 approach) for each output variables, example for variable 1
# # TODO: change variable and percentiles as your wish
# variable <- 1
# percentiles <- c(0.0025, 0.5, 0.975)
# percentiles <- c(0.025, 0.5, 0.975)
#
# for (itime in 1:nrow(output[[variable]])){
# ppu <- as.numeric(quantile(output[[variable]][itime,],percentiles))
Expand Down
2 changes: 1 addition & 1 deletion vignettes/run_SWATplus_with_given_parametersets.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ output <- readAllOutVar(workingFolder, numTimesteps)
# Now calculate the 95PPU (SUFI2 approach) for each output variables, example for variable 1
# TODO: change variable and percentiles as your wish
variable <- 1
percentiles <- c(0.0025, 0.5, 0.975)
percentiles <- c(0.025, 0.5, 0.975)
for (itime in 1:nrow(output[[variable]])){
ppu <- as.numeric(quantile(output[[variable]][itime,],percentiles))
Expand Down
2 changes: 1 addition & 1 deletion vignettes/run_SWATplus_with_given_parametersets.html
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ <h3>4. Processing model output</h3>
<span id="cb3-10"><a href="#cb3-10" tabindex="-1"></a><span class="co"># Now calculate the 95PPU (SUFI2 approach) for each output variables, example for variable 1</span></span>
<span id="cb3-11"><a href="#cb3-11" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: change variable and percentiles as your wish</span></span>
<span id="cb3-12"><a href="#cb3-12" tabindex="-1"></a>variable <span class="ot">&lt;-</span> <span class="dv">1</span></span>
<span id="cb3-13"><a href="#cb3-13" tabindex="-1"></a>percentiles <span class="ot">&lt;-</span> <span class="fu">c</span>(<span class="fl">0.0025</span>, <span class="fl">0.5</span>, <span class="fl">0.975</span>)</span>
<span id="cb3-13"><a href="#cb3-13" tabindex="-1"></a>percentiles <span class="ot">&lt;-</span> <span class="fu">c</span>(<span class="fl">0.025</span>, <span class="fl">0.5</span>, <span class="fl">0.975</span>)</span>
<span id="cb3-14"><a href="#cb3-14" tabindex="-1"></a></span>
<span id="cb3-15"><a href="#cb3-15" tabindex="-1"></a><span class="cf">for</span> (itime <span class="cf">in</span> <span class="dv">1</span><span class="sc">:</span><span class="fu">nrow</span>(output[[variable]])){</span>
<span id="cb3-16"><a href="#cb3-16" tabindex="-1"></a> ppu <span class="ot">&lt;-</span> <span class="fu">as.numeric</span>(<span class="fu">quantile</span>(output[[variable]][itime,],percentiles))</span>
Expand Down

0 comments on commit 8cdcd1b

Please sign in to comment.