示例#1
0
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

pl.annotate('C13', xy=(66.8, 26), xycoords='data', ha='center',
            xytext=(40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )


# Plot the Hyades cluster
import pandas as pd
df = pd.read_csv('catalogs/hyades.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=15, color='#c0392b')

text = pl.text(67, 16, 'Hyades', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])

# Plot Pleiades
import pandas as pd
df = pd.read_csv('catalogs/pleiades.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=15, color='#c0392b')

text = pl.text(52.5, 24.3, 'Pleiades', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
示例#2
0
pl.plot(ra, dec, lw=4, zorder=500, c='#2980b9', ls='dashed')
text = pl.text(251.3,
               -22.2,
               'Saturn\nTitan\nEnceladus',
               zorder=999,
               style='italic',
               fontsize=22,
               va='center',
               color='#2980b9',
               ha='right')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])

annotate_target(260.14296371, -19.33374974, "HD 156846")
#annotate_target(256.52290757, -26.58056313, "BF Oph")
annotate_target(268.118363, -26.703469, "V767 Sgr")
annotate_target(255.03962888, -24.98907067, "26 Oph")
annotate_target(258.83743307, -26.60282143, "36 Oph", ha='right')
annotate_target(259.79908, -18.51625, "M9", extended=True)
annotate_target(255.65704, -26.26794, "M19", extended=True)
annotate_target(257.54342, -26.58172, "NGC 6293", extended=True)
annotate_target(260.99437, -26.35342, "NGC 6355", ha='right', extended=True)
annotate_target(267.02083, -24.78000, "Terzan 5", extended=True)

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
pl.xlim([269.5, 251.])
pl.ylim([-32, -15])
p.ax.xaxis.set_major_locator(MultipleLocator(2))
p.ax.yaxis.set_major_locator(MultipleLocator(2))
示例#3
0
from fieldplot import annotate_target

CAMPAIGN = 7

style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

# Plot the Ruprecht 147 cluster
import pandas as pd
df = pd.read_csv('catalogs/ruprecht147.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d,
                    member[1].DEC_d,
                    "",
                    size=10,
                    color='#c0392b')
text = pl.text(288.8 - 0.6,
               -16.5,
               'Ruprecht 147',
               style='italic',
               color='#c0392b',
               zorder=999,
               fontsize=30,
               va='center')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])
示例#4
0
from fieldplot import annotate_target

CAMPAIGN = 6

style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

#annotate_target(201.29824736, -11.16131949, "Spica")

# Plot KEGS galaxies
import pandas as pd
df = pd.read_csv('catalogs/c6-kegs.csv')
for member in df.iterrows():
    annotate_target(member[1].ra, member[1].dec, "", size=5, color='#27ae60')
text = pl.text(204.5,
               -11.2,
               'Galaxies',
               style='italic',
               color='#27ae60',
               zorder=999,
               fontsize=30,
               va='center',
               ha='center')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
CAMPAIGN = 172

style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
p.plot_campaign(6, annotate_channels=False, facecolor='#aaaaaa', lw=0)
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

pl.annotate('C2', xy=(241.1, -18.3), xycoords='data',
            xytext=(40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )

"""
annotate_target(233.97117, -14.22006, "HP Lib")
annotate_target(229.98062, -25.00681, "GW Lib")
annotate_target(240.48106314, -21.98038959, "HIP 78530")
annotate_target(226.948721, -16.460728, "L5 Dwarf", ha='right')
annotate_target(232.39476389, -17.44094162, "33 Lib")

text = pl.text(240.2, -23.2, 'Upper Sco', style='italic',
               zorder=999, fontsize=22, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])
"""

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
pl.xlim([220, 200])
pl.ylim([-20, 0])
示例#6
0
from matplotlib import pyplot as pl
from matplotlib import style
from K2fov import plot

from fieldplot import annotate_target

CAMPAIGN = 14

style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
#p.plot_ecliptic()
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

annotate_target(164.120271, +07.014658, "Wolf 359")
annotate_target(160.602432, +07.435026, "WASP-104")
annotate_target(160.990554, +11.703611, "M95", extended=True)
annotate_target(161.690600, +11.819939, "M96", extended=True, ha='right')
annotate_target(161.956667, +12.581631, "M105", extended=True)
annotate_target(158.20279865, +09.30658596, r'$\mathrm{\rho}$ Leo')

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
pl.xlim([168, 153])
pl.ylim([-1, 15.9])
pl.tight_layout()
for extension in ['png', 'eps']:
    pl.savefig('k2-c{}-field.{}'.format(CAMPAIGN, extension), dpi=100)
pl.close()
示例#7
0
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

pl.annotate('C4', xy=(63.9, 25.3), xycoords='data', ha='center',
            xytext=(-40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )


# Plot the Hyades cluster
import pandas as pd
df = pd.read_csv('catalogs/hyades.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=15, color='#c0392b')

text = pl.text(67, 16, 'Hyades', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])

# Plot Taurus
df = pd.read_csv('catalogs/taurus-auriga.csv')
for member in df.iterrows():
    annotate_target(member[1]._RAJ2000, member[1]._DEJ2000, "", size=15, color='#c0392b')

text = pl.text(67.9, 25.5, 'Taurus-Auriga', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])
示例#8
0
p.plot_campaign(13, annotate_channels=False, facecolor='#aaaaaa', lw=0)
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

pl.annotate('C2', xy=(241.1, -18.3), xycoords='data',
            xytext=(40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )

# Plot Pleiades
import pandas as pd
df = pd.read_csv('catalogs/pleiades.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=15, color='#c0392b')

text = pl.text(67.9, 25.5, 'Taurus-Auriga', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])


# Plot the Hyades cluster
df = pd.read_csv('catalogs/hyades.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=15, color='#c0392b')

text = pl.text(67, 16, 'Hyades', style='italic', color='#c0392b',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
示例#9
0
pl.annotate(
    'C2',
    xy=(241.1, -18.3),
    xycoords='data',
    xytext=(40, 40),
    textcoords='offset points',
    size=30,
    zorder=99999,
    color='#aaaaaa',
    arrowprops=dict(arrowstyle="simple",
                    fc="#aaaaaa",
                    ec="none",
                    connectionstyle="arc3,rad=0.0"),
)

annotate_target(233.97117, -14.22006, "HP Lib (CV)")
annotate_target(229.98062, -25.00681, "GW Lib (CV)")
annotate_target(240.48106314, -21.98038959, "HIP 78530")
annotate_target(226.948721, -16.460728, "L5 Dwarf", ha='right')
annotate_target(232.39476389, -17.44094162, "33 Lib (CV)")
annotate_target(240.08335535, -22.62170643, "δ Sco")
annotate_target(240.033579, -23.189292, "K2-38")
annotate_target(229.35167, -21.01011, "NGC 5897", ha='right', extended=True)

# Asteroid Ryugu
import numpy as np
ryugu_ra = np.array([
    220.78934, 221.53776, 222.42765, 223.44588, 224.58094, 225.82275,
    227.16255, 228.59279, 230.10692, 231.69931, 233.36513, 235.10022,
    236.90099, 238.76437, 240.68768, 242.66862, 244.70517, 246.79554,
    248.93813, 251.13152, 253.37435, 255.66538, 258.00339
示例#10
0
pl.annotate(
    'C2',
    xy=(241.1, -18.3),
    xycoords='data',
    xytext=(40, 40),
    textcoords='offset points',
    size=30,
    zorder=99999,
    color='#aaaaaa',
    arrowprops=dict(arrowstyle="simple",
                    fc="#aaaaaa",
                    ec="none",
                    connectionstyle="arc3,rad=0.0"),
)

annotate_target(233.97117, -14.22006, "HP Lib")
annotate_target(229.98062, -25.00681, "GW Lib")
annotate_target(240.48106314, -21.98038959, "HIP 78530")
annotate_target(226.948721, -16.460728, "L5 Dwarf", ha='right')
annotate_target(232.39476389, -17.44094162, "33 Lib")

# Plot Upper Sco
import pandas as pd

df = pd.read_csv('catalogs/upper-sco.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d,
                    member[1].DEC_d,
                    "",
                    size=15,
                    color='#c0392b')
pl.annotate(
    'C12',
    xy=(355., -11.2),
    xycoords='data',
    xytext=(-60, -60),
    textcoords='offset points',
    size=30,
    zorder=99999,
    color='#bbbbbb',
    arrowprops=dict(arrowstyle="simple",
                    fc="#bbbbbb",
                    ec="none",
                    connectionstyle="arc3,rad=0.0"),
)

annotate_target(346.62233, -5.04144, "TRAPPIST-1")
#annotate_target(348.9490380, -10.8496960, "K2-YYY")

# Neptune
import pandas as pd
df = pd.read_csv('catalogs/coordinates_neptune_around_minimum_motion.csv')
pl.plot(df.ra, df.dec, lw=4, zorder=500, c='#2980b9')
text = pl.text(347.8,
               -6.2,
               'Neptune',
               zorder=999,
               style='italic',
               fontsize=22,
               va='center',
               color='#2980b9')
text.set_path_effects([
示例#12
0
                    facecolor="#27ae60",
                    zorder=100)
    superstamp_patches.append(patch)
text = pl.text(268.6,
               -27.6,
               'Microlensing\nsuperstamp',
               color='#27ae60',
               zorder=999,
               fontsize=22,
               va='center',
               ha='left')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])
"""
annotate_target(187.27789633, 2.05240632, "3C 273")
annotate_target(180.44154, -3.76128, "GW Vir", ha='right')
"""

# Mars was in the field when C9 started on April 21st
ra = [
    264.32006, 266.32142, 268.32035, 270.31586, 272.30694, 274.29257,
    276.27171, 278.24329, 280.20625, 282.15951
]
dec = [
    -23.25199, -23.38232, -23.48986, -23.57480, -23.63741, -23.67799,
    -23.69692, -23.69462, -23.67157, -23.62832
]
pl.plot(ra, dec, lw=4, zorder=1500, c='#2980b9', ls='dashed')
text = pl.text(266,
#    annotate_target(member[1].ra, member[1].dec, "", size=5, color='#c0392b')

text = pl.text(203.5,
               -8.2,
               'Galaxies',
               style='italic',
               color='#27ae60',
               zorder=999,
               fontsize=30,
               va='center',
               ha='center')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])

annotate_target(201.29824736, -11.16131949, "Spica", padding=0.5, zorder=9e4)
annotate_target(208.77375, -5.44247222, "K2-99")
annotate_target(207.34954167, -12.2845, "K2-110")
#annotate_target(207.655875, -6.80402778, "Qatar-2")

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
pl.xlim([212.9, 195.5])
pl.ylim([-16., 1.2])
p.ax.xaxis.set_major_locator(MultipleLocator(2))
p.ax.yaxis.set_major_locator(MultipleLocator(2))
pl.tight_layout()
for extension in ['png', 'eps']:
    pl.savefig('k2-c{}-field.{}'.format(CAMPAIGN, extension), dpi=100)
pl.close()
示例#14
0
from fieldplot import annotate_target

CAMPAIGN = 6

style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

# Plot the Ruprecht 147 cluster
import pandas as pd
df = pd.read_csv('catalogs/ruprecht147.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d,
                    member[1].DEC_d,
                    "",
                    size=10,
                    color='#c0392b')
text = pl.text(288.8 - 0.6,
               -16.5,
               'Ruprecht 147',
               style='italic',
               color='#c0392b',
               zorder=999,
               fontsize=30,
               va='center')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])
示例#15
0
style.use('gray.mplstyle')
p = plot.K2FootprintPlot(figsize=(11, 11))
#p.plot_ecliptic()
p.plot_campaign(5, annotate_channels=False, facecolor='#aaaaaa', lw=0)
p.plot_campaign(CAMPAIGN, annotate_channels=False, facecolor='white', lw=1)

pl.annotate('C5', xy=(127, 24), xycoords='data', ha='center',
            xytext=(0, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )

annotate_target(127.578771, +22.235908, "K2-34")


text = pl.text(240.2, -23.2, 'Upper Sco', style='italic',
               zorder=999, fontsize=22, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])

#pl.scatter(132.8250, +11.8000, zorder=899, marker='o', lw=2, s=800,
#           facecolor='black', alpha=0.5, edgecolor='None', label='M67')
#text = pl.text(132.8250 - 0.5, +11.8000, 'M67', zorder=999,
#              fontsize=22, va='center', color='black')
#text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
#                       path_effects.Normal()])

#pl.scatter(130.1000, +19.6667, zorder=899, marker='o', lw=2, s=3500,
示例#16
0
    'C1',
    xy=(179, -1),
    xycoords='data',
    ha='center',
    xytext=(-20, 40),
    textcoords='offset points',
    size=30,
    zorder=99999,
    color='#aaaaaa',
    arrowprops=dict(arrowstyle="simple",
                    fc="#aaaaaa",
                    ec="none",
                    connectionstyle="arc3,rad=0.0"),
)

annotate_target(187.27789633, 2.05240632, "3C 273")
annotate_target(180.44154, -3.76128, "PG 1159", ha='right')

# Comet 67P/Churyumov–Gerasimenko
ra = [
    183.52782, 183.88735, 184.25304, 184.62468, 185.00206, 185.38496, 185.96925
]
dec = [2.26594, 2.06734, 1.86721, 1.66563, 1.46267, 1.25842, 0.94979]
pl.plot(ra, dec, lw=4, zorder=1500, c='#2980b9', ls='dashed')
text = pl.text(184.5,
               1.4,
               '67P',
               zorder=1999,
               style='italic',
               fontsize=22,
               va='center',
示例#17
0
]
dec = [
    6.29616, 6.19422, 6.11846, 6.07251, 6.05868, 6.07797, 6.13011, 6.21367,
    6.33902
]
pl.plot(ra, dec, lw=4, zorder=500, c='#2980b9')
text = pl.text(16.9,
               5.7,
               'Uranus',
               zorder=999,
               style='italic',
               fontsize=22,
               va='center',
               color='#2980b9')
text.set_path_effects([
    path_effects.Stroke(linewidth=4, foreground='white'),
    path_effects.Normal()
])

annotate_target(16.2258, 2.1333, "IC 1613", extended=True)

pl.suptitle('K2 Campaign {}'.format(CAMPAIGN), fontsize=44)
pl.xlim([25, 8])
pl.ylim([-3, 15.])
p.ax.xaxis.set_major_locator(MultipleLocator(2))
p.ax.yaxis.set_major_locator(MultipleLocator(2))
pl.tight_layout()
for extension in ['png', 'eps']:
    pl.savefig('k2-c{}-field.{}'.format(CAMPAIGN, extension), dpi=100)
pl.close()
pl.annotate('C18 overlaps\nwith C5', xy=(125.7, 23.5), xycoords='data', ha='center',
            xytext=(40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#888888',
            arrowprops=dict(arrowstyle="simple",
                            fc="#888888", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )
pl.annotate('C16', xy=(141.2, 22.5), xycoords='data', ha='center',
            xytext=(-40, 40), textcoords='offset points',
            size=30, zorder=99999, color='#aaaaaa',
            arrowprops=dict(arrowstyle="simple",
                            fc="#aaaaaa", ec="none",
                            connectionstyle="arc3,rad=0.0"),
            )

annotate_target(127.578771, +22.235908, "K2-34")
annotate_target(126.61603759, +10.08037466, "HIP 41378")

# Plot the Beehive cluster
import pandas as pd
df = pd.read_csv('catalogs/beehive.csv')
for member in df.iterrows():
    annotate_target(member[1].RA_d, member[1].DEC_d, "", size=10, color='#c0392b')
text = pl.text(130., 20.5, 'M44 (Beehive)', style='italic', color='black',
               zorder=999, fontsize=30, va='center', ha='center')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])

# Plot the M67 cluster
df = pd.read_csv('catalogs/m67.csv')
for member in df.iterrows():