<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 2:48 PM C Hamilton <<a href="mailto:adenaculture@gmail.com">adenaculture@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Tim,</div><div><br></div><div>Thanks for the suggestions. I will look into the temporal controller.</div><div><br></div><div>As you know I like having the plugins self contained so that they run immediately. I have struggled with this issue in this case because there are no astronomical libraries that I can do this with, at least ones that are highly accurate and use ephemeris data rather than less accurate, simplified mathematical equations. I try to go for accuracy.</div><div><br></div><div>For testing I will release a self contained windows version, but other users will need to pip install skyfield. In the case of the Date/Time Tools plugin I made it self contained so that the user didn't need to pip install anything, but that is what made it so large. It is reasonable for the user to download the ephemeris data separately. I may be able to extract a small set of the data that is within the 10 mb limit so that it is shipped with the plugin so that it works immediately. It just won't have a large date span, but if they are having to pip install skyfield, it is not going to be any more difficult to download the ephemeris data.</div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Another option to consider is to build an NSIS installer for your plugin. I used to do this in the past for InaSAFE (see <a href="https://github.com/inasafe/inasafe/blob/develop/scripts/windows-install-builder.nsi">https://github.com/inasafe/inasafe/blob/develop/scripts/windows-install-builder.nsi</a>) though I haven't maintained it so I don't know how well the approach still works - it would need some tweaking to figure out which profile to install the plugin into. Theoretically you could make one installer per platform with all the binary bits encapsulated and then prompt the user to grab the appropriate installer for their OS.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Tim</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I think it would be good for QGIS to have some astronomical libraries included. I've already had people express interest in this capability, but we will see how much overall interest there is in this plugin. It will get more acceptance if people do not need to pip install anything.</div><div><br></div><div>Astropy is the most active and complex astronomy library. I chose not to use it because I didn't think it was needed for QGIS. I used Skyfield instead. It has the necessary functionality that I think is needed for QGIS projects. It is a modernized version of PyEphem by the same author and is recommended by the author over PyEphem.</div><div><br></div><div>Thanks for your continued support,</div><div><br></div><div>Calvin</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 5, 2021 at 1:04 PM Tim Sutton <<a href="mailto:tim@kartoza.com" target="_blank">tim@kartoza.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Hi</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Wow that looks beautiful! A couple of thoughts:</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">1) Rather than implementing your own slider logic I wonder if you could hook in to the temporal controller?</div><div style="font-family:arial,helvetica,sans-serif;font-size:small">2) For platform specific components the normal practice is to a) communicate with the plugins reviewers about why this is needed so that they don't pre-emptively reject your plugin and b) normally pull down the platform specific components as a post install step. I expect you will get some resistance to adding a new dependency to QGIS core unless that dependency is broadly useful, but you may be able to convince Jurgen and Peter to bundle it into the Windows and macOS installers respectively.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small">3) For that 100mb blob, similar to our discussion on the timezone work you were doing, the preferred approach would be to fetch it as a post-install download the first time you use the plugin.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks for making such interesting plugins!</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Regards</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Tim</div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="text-align:center">------------------------------------------------------------------------------------------</div><div style="text-align:center"><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small;display:inline"></div><img src="https://mail.google.com/mail/u/0/?ui=2&ik=7ebbf93252&view=fimg&th=15a9e43c0bbf93ca&attid=0.1&disp=emb&realattid=9436e64174762963_0.1.1&attbid=ANGjdJ-WL_J24nvBiYidJ0V0xpdsYqRwswi5nq5oywcJEHC7twYVMrxG0y-GNPu_ahJthV8ktXwYuHoVm5DI2FrRAtPzelTRHrsE2wweR9uu8wT-zz2hNRqFwi4SorQ&sz=s0-l75-ft&ats=1488721675176&rm=15a9e43c0bbf93ca&atsh=1" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;"><br></div><div style="text-align:center">Tim Sutton</div><div style="text-align:center"><span style="text-align:start">Visit </span><a href="http://kartoza.com/" style="text-align:start" target="_blank">http://kartoza.com</a><span style="text-align:start"> to find out about open source:</span><br style="text-align:start"><span style="text-align:start"> * Desktop GIS programming services</span><br style="text-align:start"><span style="text-align:start"> * Geospatial web development</span></div><div style="text-align:center"><span style="text-align:start">* GIS Training</span></div><div style="text-align:center"><span style="text-align:start">* Consulting Services</span></div><div style="text-align:center"><div style="text-align:center"></div><div style="text-align:start"><div style="text-align:center">Tim is a member of the QGIS Project Steering Committee</div><div style="text-align:center">-------------------------------------------------------------------------------------------</div></div></div></div></div></div></div></div>