create_objects_list.py 759 Bytes
Newer Older
1
2
3
4
5
#!/usr/bin/env python3

from astropy.coordinates import SkyCoord
from astropy.table import Table

Thomas Telkamp's avatar
Thomas Telkamp committed
6
names = ['Cassiopeia A', 'Cygnus A', 'Sgr A*','Taurus A', 'Centaurus A', 'Virgo A', 
Thomas Telkamp's avatar
Thomas Telkamp committed
7
	'M1', 'M31', 'M13', 'M42', 'M87',
Thomas Telkamp's avatar
Thomas Telkamp committed
8
	'3C273', '3C295', '3C293', '3C48', 
9
10
11
12
13
14
15
16
17
	'Sirius', "Barnard's star", 'Proxima Centauri',
	'Crab Pulsar', 'Vela Pulsar',
        'PSR B2217+47', 'PSR B0329+54', 'PSR B0531+21', 'PSR B1933+16', 'PSR B0450+55', 'PSR B0809+74', 'PSR B1508+55',
	'PSR B2111+46', 'PSR B2000+40', 'PSR B0950+08', 'PSR B1749-28', 'PSR B1642-03', 'PSR B0628-28']
sc1 = [];
for name in names:
    c = SkyCoord.from_name(name)
    sc1.append(SkyCoord(c))

Thomas Telkamp's avatar
Thomas Telkamp committed
18
t = Table([sc1,names], names=['coord', 'name'])
19
t.write('camras_objects.ecsv', format='ascii.ecsv', overwrite=True)