sffjunkie / astral

Python calculations for the position of the sun and moon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to extract solar elevation and solar noon in high latitude sites?

AndrewCunliffe opened this issue · comments

I think this issue is different from, but relates to, issues 9 and 34 .

I need to compute solar elevation and solar noon for a high latitude location (lat = 70, long= -139), but calling sun (as per the documentation) returns the error "ValueError: Sun never reaches 6.0 degrees below the horizon, at this location". That statement is correct in the summer, but solar noon does happen and there is a solar elevation at that time.

Is there any way to compute just these parameters using astral?

I think you mean you are calling sun(), right? That method returns dawn times but at that location and day it seems dawn/dusk is not happening.

You could call noon() and elevation() instead, if I'm getting this right.

Thanks for the hint @mjaviem, that's exactly what I was looking for.