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
94cc93fe
Commit
94cc93fe
authored
Aug 28, 2018
by
Delaigue Olivier
Browse files
v1.0.12.1 PEdaily_Oudin now return an error when LatUnit is wrong
parent
37c64a55
Changes
2
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
94cc93fe
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.12.
0
Version: 1.0.12.
1
Date: 2018-08-28
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
...
...
R/PEdaily_Oudin.R
View file @
94cc93fe
...
...
@@ -7,6 +7,10 @@ PEdaily_Oudin <- function(JD, Temp, LatRad, Lat, LatUnit = c("rad", "deg")) {
}
}
if
(
!
any
(
LatUnit
%in%
c
(
"rad"
,
"deg"
)))
{
stop
(
"\"LatUnit\" must be \"rad\" or \"deg\"."
)
}
PE_Oudin_D
<-
rep
(
NA
,
length
(
Temp
))
if
(
LatUnit
[
1L
]
==
"rad"
)
{
...
...
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