hydrodoy {phenopix} | R Documentation |
Converts from and to hydrological day of year
Description
Converts from and to hydrological day of year, i.e. setting Oct 1st as doy 1.
Usage
hydrodoy(x, year, reverse=FALSE)
Arguments
x |
A numeric vector of doys (if reverse = FALSE) or hydrodoys |
year |
A character or numeric with a year |
reverse |
If FALSE (default) a doy vector is expected and an hydrodoy vector is returned, if TRUE, the other way around. |
Details
This function converts a vector of doys into hydrodoys, i.e. setting Oct 1st as doy 1. The argument year is used to understand if you are computing hydrodoys in a leap year or not. The back conversion is also possible by setting reverse = TRUE.
Author(s)
Gianluca Filippa <gian.filippa@gmail.com>
[Package phenopix version 2.4.4 Index]