<jupyter_start><jupyter_text>This notebook tests out a tool for extracting a constellation of stars from Gaia DR2, and displaying them as a finder chart.<jupyter_code>from craftroom.thefriendlystars.constellation import *<jupyter_output>Created TAP+ (v1.0.1) - Connection:
	Host: gea.esac.esa.int
	Use HTTPS: False
	Port: 80
	SSL Port: 443<jupyter_text>First, let's use Simbad to pull up some star by its name, to set the center for our finder chart.<jupyter_code># define the center of the search
center = get('GJ 1132')
print(center)<jupyter_output><SkyCoord (ICRS): (ra, dec) in deg
    (153.7162271, -47.1568464)><jupyter_text>Next, let's pull out the stars within 3 arcminutes of this center, and down to 20th magnitude.<jupyter_code># get constellation of stars surrounding that one
g = Gaia(center, radius=3*u.arcmin, magnitudelimit=20)<jupyter_output>[gaia] querying Gaia DR2, centered on <SkyCoord (ICRS): (ra, dec) in deg
                    (153.7162271, -47.1568464)> with radius 3.0 arcmin, for G<20
         [gaia] SELECT source_id,ra,ra_error,dec,dec_error,pmra, pmra_error, pmdec, pmdec_error, parallax, parallax_error, phot_g_mean_mag, phot_bp_mean_mag, phot_rp_mean_mag, radial_velocity, radial_velocity_error, phot_variable_flag, teff_val, a_g_val FROM gaiadr2.gaia_source WHERE CONTAINS(POINT('ICRS',gaiadr2.gaia_source.ra,gaiadr2.gaia_source.dec),CIRCLE('ICRS',153.7162271,-47.1568464,0.05))=1 and phot_g_mean_mag < 20
         [gaia] Gaia contains 374 objects<jupyter_text>This gives us access to all the Gaia DR2 stars through the `objects` attribute.<jupyter_code>g.objects.ra[0], g.objects.dec[0], g.objects.pm_ra_cosdec[0], g.objects.pm_dec[0]<jupyter_output><empty_output><jupyter_text>Let's make a plot!<jupyter_code>%matplotlib inline
g.finder();<jupyter_output><empty_output><jupyter_text>Let's make a plot at some other epoch.<jupyter_code>g.finder(2042);<jupyter_output><empty_output><jupyter_text>Let's animate it!<jupyter_code>g.animate()
!open constellation.mp4<jupyter_output><empty_output><jupyter_text>Let's try to look at these with red-blue glasses?<jupyter_code>left, right = 1900, 2100
with plt.style.context('dark_background'):
    g.finder(left, color='red', alpha=0.5, sizescale=5)
    g.plot(right, color='cyan', alpha=0.5, sizescale=5)
    plt.axis('off')
    plt.title('')
    plt.savefig('3d-glasses.pdf')
!open 3d-glasses.pdf<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11933471933471934, 'fraction_numerical': 0.04948024948024948, 'mean_word_length': 6.225225225225225, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '210116', 'license': 'MIT', 'n_tokens_mistral': 987, 'n_tokens_neox': 899, 'n_words': 206, 'path': 'notebooks/test_thefriendlystars.ipynb', 'repo_name': 'davidjwilson/craftroom', 'size': '2405'}