Open
Description
This line should be
B = 2*pi*(doy - 1)/365;
As described in the original source, the day of year runs between 0 and 364.
This line should be
B = 2*pi*(doy - 1)/365;
As described in the original source, the day of year runs between 0 and 364.