CH-Earth / summa

Structure for Unifying Multiple Modeling Alternatives:
http://www.ral.ucar.edu/projects/summa
GNU General Public License v3.0
80 stars 105 forks source link

bugfix: #389

Closed wknoben closed 4 years ago

wknoben commented 4 years ago

Time of sunrise/sunset calculation in sunGeometry.f90 breaks in high and low latitude locations. Fix implements specific checks for the edge cases where -TAN(LAT1)TAN(D) < -1 or > 1, which causes the follow-up equation TD=ACOS(-TAN(LAT1)TAN(D)) to break.