| dates2juliandays {SWAT2R} | R Documentation |
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
dates2juliandays(dates, verbose)
dates |
vector containing the dates that will be converted into Julian days in SWAT format |
verbose |
logical; if TRUE, progress messages are printed |
Mauricio Zambrano-Bigiarini, mzb.devel@gmail.com