Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
8d55eda0
Commit
8d55eda0
authored
Apr 05, 2017
by
unknown
Browse files
v1.0.6.7 DataAltiExtrapolation_Valery code improved (bug fixed) #4521
parent
8a62b29b
Changes
2
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
8d55eda0
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.6.
6
Version: 1.0.6.
7
Date: 2017-04-05
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl")),
...
...
R/DataAltiExtrapolation_Valery.R
View file @
8d55eda0
...
...
@@ -450,10 +450,10 @@ DataAltiExtrapolation_Valery <- function(DatesR,
return
(
prcp
)
})
if
(
PrecipScale
)
{
LayerPrecip_
df
<-
LayerPrecip_df
/
rowMeans
(
LayerPrecip_df
)
*
Precip
LayerPrecip_
df
[
is.nan
(
LayerPrecip_
df
)]
<-
0
LayerPrecip_
mat
<-
LayerPrecip_df
/
rowMeans
(
LayerPrecip_df
)
*
Precip
LayerPrecip_
mat
[
is.nan
(
LayerPrecip_
mat
)]
<-
0
}
LayerPrecip
<-
as.list
(
LayerPrecip_
df
)
LayerPrecip
<-
as.list
(
as.data.frame
(
LayerPrecip_
mat
)
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment