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
a914dfc6
Commit
a914dfc6
authored
Mar 29, 2021
by
Delaigue Olivier
Browse files
feat(Utils): return a mean time step from .GetFeatModel
Refs
#106
parent
da2680b0
Pipeline
#21796
passed with stages
in 8 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R/Utils.R
View file @
a914dfc6
...
...
@@ -54,7 +54,13 @@
daily
=
1
*
24
,
monthly
=
28
:
31
*
24
,
yearly
=
365
:
366
*
24
)
res
$
TimeStep
<-
res
$
TimeStep
*
3600
res
$
TimeStepMean
<-
switch
(
res
$
TimeUnit
,
hourly
=
1
,
daily
=
1
*
24
,
monthly
=
365.2425
/
12
*
24
,
yearly
=
365.2425
*
24
)
res
$
TimeStep
<-
res
$
TimeStep
*
3600
res
$
TimeStepMean
<-
res
$
TimeStepMean
*
3600
res
$
Class
<-
c
(
res
$
TimeUnit
,
res
$
Class
)
if
(
grepl
(
"CemaNeige"
,
res
$
NameFunMod
))
{
res
$
Class
<-
c
(
res
$
Class
,
"CemaNeige"
)
...
...
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