hydrodoy: Converts from and to hydrological day of year

Description Usage Arguments Details Author(s)

View source: R/hydrodoy.R

Description

Converts from and to hydrological day of year

Usage

1
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>


phenopix documentation built on May 2, 2019, 4:50 p.m.