可以用Skyfield计算月牙的倾斜度吗?还是直接?我知道来回的新月形岩石,我想正确地显示它。
https://www.calsky.com/cs.cgi/Moon/15?obs=4311082095747103&c=
# https://rhodesmill.org/skyfield/toc.html
from skyfield import api
tmsc = api.load.timescale()
planets = api.load('de421.bsp')
import datetime
import pytz
toposloc = api.Topos('50.9409116 N', '6.9576131 E') # Köln local position on earth
toposabs = planets['earth'] + toposloc # absolute position incl earth
DTUTC = datetime.datetime.now(datetime.timezone.utc)
# calc moon
astro = toposabs.at(tmsc.utc(DTUTC.year, DTUTC.month, DTUTC.day, DTUTC.hour, DTUTC.minute, DTUTC.second)).observe(planets['moon'])
app = astro.apparent()
alt, azi, distance = app.altaz()
altazmoon=[alt.degrees, azi.degrees] # save for later
_, lonmoon, _ = app.ecliptic_latlon()