PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 234 forks source link

Constrain downscaling to sunrise / sunset #460

Open dlebauer opened 9 years ago

dlebauer commented 9 years ago

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)
github-actions[bot] commented 3 years ago

This issue is stale because it has been open 365 days with no activity.