Commit 44ac5766 authored by Thomas Telkamp's avatar Thomas Telkamp
Browse files

script to generate camras_objects.ecsv

parent 5ef84209
......@@ -24,8 +24,26 @@
# schema: astropy-2.0
col0.ra col0.dec col1
350.85 58.815 "Cassiopeia A"
299.868151909542 40.733915736 "Cygnus A"
266.416816625 -29.007824972 "Sgr A*"
10.6847083 41.26875 M31
83.63311445609 22.01448713834 "Crab Pulsar"
53.24723779108 54.57917450178 "PSR B0329+54"
250.423475 36.4613194 M13
83.82208 -5.39111 M42
101.287155333 -16.716115861 Sirius
269.4520769586187 4.69336496657667 "Barnard's star"
217.42894222160578 -62.67949018907555 "Proxima Centauri"
83.63311445609 22.01448713834 "Crab Pulsar"
128.836063542 -45.176431806 "Vela Pulsar"
334.9505792 47.9149806 "PSR B2217+47"
53.24723779108 54.57917450178 "PSR B0329+54"
83.63311445609 22.01448713834 "PSR B0531+21"
293.94875484973 16.27778747209 "PSR B1933+16"
73.5321208 55.7281972 "PSR B0450+55"
123.7479167 74.4849167 "PSR B0809+74"
227.357 55.5258 "PSR B1508+55"
318.351 46.7357 "PSR B2111+46"
300.6834583 40.8483083 "PSR B2000+40"
148.2887375 7.92677778 "PSR B0950+08"
268.2446375 -28.10941667 "PSR B1749-28"
251.25847083 -3.29922222 "PSR B1642-03"
97.7057125 -28.57838889 "PSR B0628-28"
#!/usr/bin/env python3
from astropy.coordinates import SkyCoord
from astropy.table import Table
names = ['Cassiopeia A', 'Cygnus A', 'Sgr A*',
'M31', 'M13', 'M42',
'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))
t = Table([sc1,names])
t.write('camras_objects.ecsv', format='ascii.ecsv', overwrite=True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment