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
372 stars 125 forks source link

south of the equator #122

Closed shannond100 closed 4 years ago

shannond100 commented 4 years ago

I am trying to use pysolar in the southern hemisphere, but I cannot find any documentation about how to set up for the southern region of the globe. I have tried using a negative latitude but I get inverse results. Any help would be appreciated. Cheers, Shannon

pingswept commented 4 years ago

I believe using negative latitude should be all that is required. The frame of reference of the output is still the same, regardless of your location, so maybe you just need to multiply the results by -1 to make it sensible in your local reference frame?

shannond100 commented 4 years ago

ok thanks, I'll give it a go and let you know results

shannond100 commented 4 years ago

I got this to work now, thank you for your help. I found that this site worked well as a reference point for anyone else trying to work it out and get their head around it... https://www.suncalc.org/

I had to do a bit of massaging of the results to get it to suit my situation but the trusty nested for loop helped out with that ;). It works perfectly now.

Cheers