[AstroPy] Getting Lunar phase

Shubham shbhuk at gmail.com
Mon Dec 2 18:00:31 EST 2019


Try this -

from astroplan import Observer


observatory = Observer(location=location, name="", timezone=timezone)

moon_illumination = observatory.moon_illumination(obstime)


*Where location is an Astropy EarthLocation Object - Astropy EarthLocation
object, and time is an Astropy Time obkect. *

*Shubham Kanodia*


On Fri, 29 Nov 2019 at 12:01, <astropy-request at python.org> wrote:

> Send AstroPy mailing list submissions to
>         astropy at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/astropy
> or, via email, send a message with subject or body 'help' to
>         astropy-request at python.org
>
> You can reach the person managing the list at
>         astropy-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AstroPy digest..."
>
>
> Today's Topics:
>
>    1. get_moon ... and the phase (Tapio Pursimo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 29 Nov 2019 12:38:45 +0000 (WET)
> From: Tapio Pursimo <tpursimo at not.iac.es>
> To: astropy at python.org
> Subject: [AstroPy] get_moon ... and the phase
> Message-ID: <alpine.DEB.2.20.1911291233180.25596 at annie>
> Content-Type: text/plain; charset=US-ASCII
>
>
> Hello,
>
> Can anybody help me how to get the moon phase using astropy?
> I can get the coordinates using get_moon, but the phase is apparently
> missing.
> I would not like to use/install "ephem" nor "astroplan".
>
> Best regards,
>
>  Tapio Pursimo
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy
>
>
> ------------------------------
>
> End of AstroPy Digest, Vol 158, Issue 7
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20191202/40b05b04/attachment.html>


More information about the AstroPy mailing list