File: mpc_query.py

package info (click to toggle)
theli 3.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,744 kB
  • sloc: cpp: 66,403; python: 270; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
import sys
from astroquery.mpc import MPC
name=sys.argv[1]
dateobs=sys.argv[2]
geolon=sys.argv[3]
geolat=sys.argv[4]
eph = MPC.get_ephemeris(name, start=dateobs, location=(geolon, geolat, '1000m'), number=1)
print(eph['RA'][0], eph['Dec'][0])