Converts from and to hydrological day of year, i.e. setting Oct 1st as doy 1.
hydrodoy(x, year, reverse=FALSE)
A numeric vector of doys (if reverse = FALSE) or hydrodoys
A character or numeric with a year
If FALSE (default) a doy vector is expected and an hydrodoy vector is returned, if TRUE, the other way around.
Gianluca Filippa <gian.filippa@gmail.com>
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.