Open martynpclark opened 8 years ago
Consider making the routine compcalday
less cryptic.
Include
time since ...
If it is helpful, I have code to parse netdf time attributes in GARD: https://github.com/NCAR/GARD/blob/master/src/timing/time_io.f90 bugfixes, comments, welcome.
@gutmann's is probably best but just add another reference, here's a pretty simple (but complete) implementation in C: https://github.com/UW-Hydro/VIC/blob/master/vic/drivers/shared_all/src/vic_time.c
In
read_force.f90
the time utilities can be improved. Specifically, it is possible to generalize the codeThis can be done by adding a
daysinyear(year)
function that returns number of days and create anisleapyear(year)
function that returns.false.
or.true.
. We should consider supporting multiple calendars.