[QGIS-Developer] Preview of the QGIS Earth, Sun, Moon, & Planets Plugin
C Hamilton
adenaculture at gmail.com
Thu Jul 1 17:34:54 PDT 2021
Tim,
If you want to try day/night layer, uncomment the line
# self.addAlgorithm(DayNightAlgorithm())
in provider.py. It will install the algorithm in the processing toolbox.
The reason I did not include it is because the algorithm is incorrect
except close to the summer or winter solstice. I don't understand the math
so I need to find someone willing to help out with that algorithm, but it
looks nice during the summer months and is close to correct. I would be
working on this a lot if I were not stuck with this problem and would
probably have started looking at the time controller. Animation will be
fun, but for now I need to get the basic functionality working correctly.
I am debating whether to include the local time zone in the processing
algorithms. If I want to include the local time in the attribute table then
I may need it. The easiest thing to do is to just use UTC, but I like to
make the algorithms flexible. Right now it is looking at the computer's
local time and UTC time.
Best wishes,
Calvin
On Thu, Jul 1, 2021 at 7:36 PM Tim Sutton <tim at kartoza.com> wrote:
> Hey Calvin
>
> Testing here (after pip installing skyfield) on Fedora 34 and it works
> great! The only comment I would make is that it would be nice if the
> Sun/Lunar Info dock panel docked itself on start up rather than floating
> (which looks a bit messy).
>
> Looking forward to being able to animate this stuff with temporal
> controller one day!
>
> How did you make the day / night / twilight shadow layers you shared in a
> previous email?
>
> Regards
>
> Tim
>
>
>
> On Wed, Jun 30, 2021 at 6:50 PM C Hamilton <adenaculture at gmail.com> wrote:
>
>> I thought I would give you an alpha version of the QGIS Earth, Sun, Moon
>> & Planets plugin I am developing. This plugin requires QGIS 3.14 or more
>> recent. It is also rather large because it contains all the data needed to
>> run. If you are on windows and want to download a self contained windows
>> plugin use this link to download:
>>
>>
>> earthsunmoon-alpha-windows.zip
>> <https://drive.google.com/file/d/1Pld4yIxBTTHA0FBwPbaUw_qfrIhHTawA/view?usp=drive_web>
>>
>> If you are using some other OS, use this link, but before you install it
>> open up your OSGeo4W console and run "pip install skyfield'. If this is not
>> the proper command for your OS then adjust it to how you install a python
>> package. In the OSGeo4W shell you may need to run py3_env first. If py3_env
>> gives an error then it is not needed.
>>
>>
>> earthsunmoon-alpha.zip
>> <https://drive.google.com/file/d/1kJammSDWRTk7659Ncp3qAnNMQLggZ4Ks/view?usp=drive_web>
>>
>> There are 3 processing routines that can be used to display the 1) sun,
>> 2) moon, 3) planets showing their position directly overhead at a
>> particular date and time and will look something like this:
>>
>> [image: image.png]
>>
>> There is also another window that displays all kinds of earth and moon
>> data for a particular location when you click on the "Solar/lunar
>> information" dialog box that can be found in "Plugins->Earth, sun, moon, &
>> plants." There is a green plus sign in the dialog box. Click on it and then
>> click anywhere on the map to capture the coordinate to display solar and
>> lunar information.
>>
>> If you need help to manually install this plugin let me know.
>>
>> I have not included the day/night terminator algorithm yet because there
>> is a bug in it. Let me know what you think and if you have any suggestions.
>>
>> Thanks,
>>
>> Calvin
>>
>
>
> --
>
> ------------------------------------------------------------------------------------------
>
>
> Tim Sutton
> Visit http://kartoza.com to find out about open source:
> * Desktop GIS programming services
> * Geospatial web development
> * GIS Training
> * Consulting Services
> Tim is a member of the QGIS Project Steering Committee
>
> -------------------------------------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210702/39878d7f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 147942 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210702/39878d7f/attachment.png>
More information about the QGIS-Developer
mailing list