pingswept / pysolar

Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth by the sun. It includes code for extremely precise ephemeris calculations.
http://pysolar.org
GNU General Public License v3.0
373 stars 125 forks source link

Changes to Clearness index function which should return values between 0 and 1 #104

Closed raghu1121 closed 5 years ago

raghu1121 commented 5 years ago

It seems in some scenarios i observed KT > 1 and ZeroDivisionError. So these changes might help.