File: resolvetargets.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 (5 lines) | stat: -rw-r--r-- 155 bytes parent folder | download | duplicates (3)
1
2
3
4
5
import sys
import astropy.coordinates
name = sys.argv[1]
coords = astropy.coordinates.get_icrs_coordinates(name)
print (coords.ra.value, coords.dec.value)