<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Before I go too far with this I want to check to see if the following package could be used in QGIS. <br><br></div><div>astropy (<a href="https://www.astropy.org/">https://www.astropy.org/</a>) has a modified BSD-2 license. See <a href="https://github.com/astropy/astropy/blob/master/LICENSE.rst">https://github.com/astropy/astropy/blob/master/LICENSE.rst</a><br><br></div><div>This would be the library I would pick. It might be an overkill, but in the long run it could also be used by anyone with imagery from the Moon, Venus, Mars or any of the planets and it would have all the necessary functions they would need. The activity on the project is very high. One thing I have not checked is to see if their algorithms are historically and anciently accurate which would be of interest to archaeologists. <br></div><br></div><div>An astropy add on is astroplan (<a href="https://astroplan.readthedocs.io/en/latest/">https://astroplan.readthedocs.io/en/latest/</a>) which has the same license and has a number of utilities that use astropy that calculate sunrise, sunset, moon phase and illumination. It is not as actively developed, but it may not need to be. <br><br></div><div>Skyfield (<a href="https://rhodesmill.org/skyfield/">https://rhodesmill.org/skyfield/</a>, <a href="https://github.com/skyfielders/python-skyfield/">https://github.com/skyfielders/python-skyfield/</a>) seems to have a lot of the basic routines, but it is primarily developed by one person. It has a MIT license, but seems to be actively developed. This might be my second choice of libraries.<br></div><div><br></div><div>Calvin<br></div><div dir="ltr"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I think (given Martin's desire to add this capability to the 3d<br>
engine) that yes, there's a valid use case for this. And I'd MUCH<br>
prefer to have this out of the box vs a 3rd party plugin. I'd suggest<br>
doing a review of the available libraries, in order to determine which<br>
are possible candidates wrt to features and license, and also<br>
determine how actively maintained upstream is, and then we can make an<br>
informed decision from there...<br>
<br>
Nyall<br>
</blockquote></div></div></div></div></div></div></div>