Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-07-02 Thread C Hamilton
I will look into C libraries. Does anyone here have a suggestion? On Mon, Jul 1, 2019 at 7:20 PM Nyall Dawson wrote: > On Tue, 2 Jul 2019 at 01:58, C Hamilton wrote: > > > > Before I go too far with this I want to check to see if the following > package could be used in QGIS. > > > > astropy

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-07-01 Thread Nyall Dawson
On Tue, 2 Jul 2019 at 01:58, C Hamilton wrote: > > Before I go too far with this I want to check to see if the following package > could be used in QGIS. > > astropy (https://www.astropy.org/) has a modified BSD-2 license. See > https://github.com/astropy/astropy/blob/master/LICENSE.rst > >

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-07-01 Thread C Hamilton
Before I go too far with this I want to check to see if the following package could be used in QGIS. astropy (https://www.astropy.org/) has a modified BSD-2 license. See https://github.com/astropy/astropy/blob/master/LICENSE.rst This would be the library I would pick. It might be an overkill,

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-30 Thread Nyall Dawson
On Fri, 28 Jun 2019 at 23:13, C Hamilton wrote: > > Thank you for all the comments. To summarize. > > 1. Having this capability would be useful. > 2. Take a look at pvlib. > 3. Add it to expression functions and possibly add it as a core C++ function. > 4. Take a look at GRASS r.sun and related

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread C Hamilton
GRASS does not seem to have lunar calculations. If it does it has not been exposed in QGIS. On Fri, Jun 28, 2019 at 9:51 AM C Hamilton wrote: > These seem to be basically what I am looking for, but they are an external > process that saves the results to a file. It would be nice to simply have

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread C Hamilton
These seem to be basically what I am looking for, but they are an external process that saves the results to a file. It would be nice to simply have a method that returns the result. So now I am not quite sure how to proceed. GRASS probably has the functionality, but not in the form I would like.

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread Christian Yrrman
Hi Calvin, Martin, forgot to say there are also grass functions to do this, namely r.sunhours r.sunmask.datetime r.sunmask.position see https://github.com/OSGeo/grass/tree/master/raster/r.sunmask for reference. With this you can also get shadow areas from dems. Best Chris On Fri, Jun

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread C Hamilton
Thank you for all the comments. To summarize. 1. Having this capability would be useful. 2. Take a look at pvlib. 3. Add it to expression functions and possibly add it as a core C++ function. 4. Take a look at GRASS r.sun and related commands. 5. Take a look at the astral library. 6. Take a look

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-28 Thread Martin Dobias
Hi Calvin On Thu, Jun 27, 2019 at 9:15 PM C Hamilton wrote: > > How much interested would there be for a plugin to display sunrise and sunset > information for a particular location on the earth's surface. Is anyone > already working on this? There doesn't seem to be a capability for this, but

Re: [Qgis-user] [QGIS-Developer] Sunrise, Sunset, Lunar Calculations

2019-06-27 Thread Nyall Dawson
On Fri, 28 Jun 2019 at 05:14, C Hamilton wrote: > > How much interested would there be for a plugin to display sunrise and sunset > information for a particular location on the earth's surface. Is anyone > already working on this? There doesn't seem to be a capability for this, but > perhaps I