Index | Thread | Search

From:
Mikolaj Kucharski <mikolaj@kucharski.name>
Subject:
Re: NEW: astro/py-ephem
To:
ports@openbsd.org
Date:
Mon, 9 Jun 2025 18:38:26 +0000

Download raw body.

Thread
On Mon, Jun 09, 2025 at 10:37:32AM +0100, Stuart Henderson wrote:
> On 2025/06/09 09:21, Mikolaj Kucharski wrote:
> > Hi.
> > 
> > I needed to get info about sunrise and sunset. I am aware of py3-astral
> > but wanted to compare both, ephem and astral.
> 
> Given the warnings on https://rhodesmill.org/pyephem/, I'm wondering
> if this is really a good idea to import unless there's some other
> software intended to be ported that needs it? Skyfield (largely
> from the same author and more actively developed) generally seems
> a better idea, for sunrise and sunset calcs see e.g.
> https://techoverflow.net/2022/06/19/how-to-compute-sunrise-sunset-in-python-using-skyfield/
> 
> If it is still worthwhile, here's a slightly tweaked version.
> 

Hm.. Right. I looked into skyfield and your other ports. Very useful,
but skyfield and the DSP file(s) and the dependency tree are much bigger
than pyephem. Not sure. Disk is cheap these days, so not a big issue.
I've also noticed that execution of skyfield is slower than pyephem,
but also not a big issue. I am okay to be a maintainer for pyephem,
if that helps. I think I need time to decided what I want and iterate
over the software a bit.

-- 
Regards,
 Mikolaj