Commit 75509e86 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

Merge branch '147-clean-plot-outputsmodel' into 'dev'

Resolve "Clean plot.OutputsModel?"

Closes #147

See merge request !70
Showing with 0 additions and 4 deletions
+0 -4
...@@ -818,8 +818,6 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = ...@@ -818,8 +818,6 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
colleg <- NULL colleg <- NULL
if (BOOL_Qobs) { if (BOOL_Qobs) {
DATA2 <- log(Qobs[SelectNotZero]) DATA2 <- log(Qobs[SelectNotZero])
SeqQuant <- seq(0, 1, by = 1/(length(DATA2)))
Quant <- as.numeric(quantile(DATA2, SeqQuant, na.rm = TRUE))
Fn <- ecdf(DATA2) Fn <- ecdf(DATA2)
YY <- DATA2 YY <- DATA2
YY <- YY[order(Fn(DATA2))] YY <- YY[order(Fn(DATA2))]
...@@ -831,8 +829,6 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = ...@@ -831,8 +829,6 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
} }
if (BOOL_Qsim) { if (BOOL_Qsim) {
DATA2 <- log(OutputsModel$Qsim[SelectNotZero]) DATA2 <- log(OutputsModel$Qsim[SelectNotZero])
SeqQuant <- seq(0, 1, by = 1/(length(DATA2)))
Quant <- as.numeric(quantile(DATA2, SeqQuant, na.rm = TRUE))
Fn <- ecdf(DATA2) Fn <- ecdf(DATA2)
YY <- DATA2 YY <- DATA2
YY <- YY[order(Fn(DATA2))] YY <- YY[order(Fn(DATA2))]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment