Commit 6f7b6155 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.1.2.34 CLEAN: add explanations about Julian day in PEdaily_Oudin doc

Showing with 8 additions and 4 deletions
+8 -4
Package: airGR Package: airGR
Type: Package Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.1.2.3 Version: 1.1.2.34
Date: 2019-01-29 Date: 2019-01-29
Authors@R: c( Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
...@@ -13,7 +13,7 @@ output: ...@@ -13,7 +13,7 @@ output:
### 1.1.2.33 Release Notes (2019-01-29) ### 1.1.2.34 Release Notes (2019-01-29)
......
...@@ -14,7 +14,7 @@ PEdaily_Oudin(JD, Temp, LatRad, Lat, LatUnit) ...@@ -14,7 +14,7 @@ PEdaily_Oudin(JD, Temp, LatRad, Lat, LatUnit)
\arguments{ \arguments{
\item{JD}{[numeric] time series of julian day [-]} \item{JD}{[numeric] time series of Julian day of the year [-]; see details below}
\item{Temp}{[numeric] time series of daily mean air temperature [°C]} \item{Temp}{[numeric] time series of daily mean air temperature [°C]}
...@@ -35,11 +35,15 @@ PEdaily_Oudin(JD, Temp, LatRad, Lat, LatUnit) ...@@ -35,11 +35,15 @@ PEdaily_Oudin(JD, Temp, LatRad, Lat, LatUnit)
Function which computes daily PE using the formula from Oudin et al. (2005). Function which computes daily PE using the formula from Oudin et al. (2005).
} }
\details{
In the \code{JD} argument, the Julian day of the year of the 1st of January is equal to 1 and the 31st of December to 365 (366 in leap years)). If the Julian day of the year is computed on an object of the \code{POSIXlt} class, the user has to add 1 to the returned value (e.g. \code{as.POSIXlt(\"2016-12-31\")$yday + 1}).
}
\examples{ \examples{
library(airGR) library(airGR)
data(L0123001) data(L0123001)
PotEvap <- PEdaily_Oudin(JD = as.POSIXlt(BasinObs$DatesR)$yday, Temp = BasinObs$T, PotEvap <- PEdaily_Oudin(JD = as.POSIXlt(BasinObs$DatesR)$yday + 1,
Temp = BasinObs$T,
Lat = 0.8, LatUnit = "rad") Lat = 0.8, LatUnit = "rad")
} }
......
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