dates2juliandays

Description

This function converts a vector of days into a vector of Julian days, but in the format required for SWAT hydrological model, in the sense that each julian day goes only from 1 to 365/366, so, every year the origin for counting the julian day is set to the 31-Dec of the previous year, in a way that the 01-January takes 1 as its Julian day

Usage

dates2juliandays(dates, verbose)

Arguments

dates

vector containing the dates that will be converted into Julian days in SWAT format