This repository contains python notebooks to reproduce the Color-Magnitude diagram of Sco-Cen region drawn by the young stellar population using Gaia DR2 data.
Gaia_AstroQuery.ipynb: produces a file with different columns for objects in the Gaia DR2 database, if they satisfy some selection criteria.
Data_Selection.ipynb: includes an extra step to clean Gaia DR2 data to avoid bad photometry and colors. This file also allows to select the pre-main sequence stars from the CMD and create a figure in galactic coordinates to visualize the position of these stars.
Interactive_Path_Selection.ipynb: includes the main routine to select the polygon path which will be used to select the pre-main sequence stars.
The equatorial coordinates (Ra, Dec), as well as the galactic coordinates (l, b) for each pre-main sequence star, are saved in a coordinates file.
Astropy (http://www.astropy.org/), Astroquery (http://astroquery.readthedocs.io/en/latest/) and Matplotlib (https://matplotlib.org/) are needed to execute the notebooks properly.
The notebooks need to be executed in this order:
(i) Gaia_AstroQuery.ipynb to obtain the data.
(ii) Interactive_Path_Selection.ipynb if the user wants to select their own region.
(iii) Data_Selection.ipynb can be used directly after step (i) to use the original path selected in our sample.
An original copy is saved in folder Original_Copy; thus, the user can run the notebooks, modify the queries and paths, overwriting the files and compare to the original selection in our work.
These notebooks have made use of data from the European Space Agency (ESA) mission Gaia https://www.cosmos.esa.int/gaia, processed by the Gaia Data Processing and Analysis Consortium (DPAC, https://www.cosmos.esa.int/web/gaia/dpac/consortium). Funding for the DPAC has been provided by national institutions, in particular the institutions participating in the Gaia Multilateral Agreement
The code is released under an MIT license. MIT is a short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications and larger works may be distributed under different terms and without source code.