Solar radiation should be very near 0 between sunset and sunrise
For cfmet.downscale.subdaily, which uses spline function to fit solar radiation, there can be some residual sunlight before / after sunrise and sunset.
One method of getting local sunrise / sunset:
library(insol)
latitude <- -88.5
longitude <- 44.0
daylength(latutide, latitude, jd = 180, tmz = 24 * latitude / 360)
Solar radiation should be very near 0 between sunset and sunrise
For
cfmet.downscale.subdaily
, which uses spline function to fit solar radiation, there can be some residual sunlight before / after sunrise and sunset.One method of getting local sunrise / sunset: