aqreed / solarpy

Solar radiation model for flight dynamics. Based on Duffie & Beckman "Solar energy thermal processes" (1974)
MIT License
51 stars 9 forks source link

allow the definition of geographical points of interest #2

Open aqreed opened 5 years ago

aqreed commented 5 years ago

Instead of latitude + solar/standard time...Find a way of enabling the use of longitude to define a city for example

JayPalm commented 5 years ago

Found this SO article which considers several possible solutions, including both a python library and web based APIs.

aqreed commented 5 years ago

Right now all the functions work with local solar time, not GMT or UTC. In case someone wants to calculate irradiation on a particular local standard time, there is a function called "standard2solar_time" that would to the job of translating a desired standard time to its solar equivalent. Do you think further flexibility is needed @JayPalm? What would be the benefit of getting the timezone of a {latitude, longitude} using libraries like "pytzwhere" or "timezonefinder" as suggested in that SO question?