DarkShards
This repository contains the code, data and notebooks for (one hopes) reproducing the entirety of our recent paper “Dark Shards”. There are also a few results and bits and pieces which did not make it in to final version but I’ve left in for potential future interest. In case you’re interested in a particular plot see below for a list of various plots and the links to the specific notebook that makes it.
Please contact me at ciaran.aj.ohare@gmail.com if you want to complain about why something doesn’t work.
Click here for the notebook that creates this movie
Contents
The code, plots, datas, etc. are sorted as follows:
data/
- Contains the Gaia sample of halo stars as well as various cleaned samples of the same data and the extracted substructures and fits.code/
- Notebooks and python files which spit out various plots and other results that can be found in the paperplots/
- plots get put here in pdf and png formats.movies/
- A few movies just for visualising the halo sample etc.
Requirements
The code is all written in python3 and makes substantial use of the standard numpy, matplotlib, scipy etc. There are several additonal libraries that you may need to investigate depending on your installation:
astropy
, used for various things and also required by …galpy
, used for computing stellar orbitsscikit-learn
, used in fitting the shards and doing kernel density estimates for action space variablescmocean
, nice aesthetic colormaps that don’t just look like a unicorn’s vomitcartopy
, used to make Mollweide skymapshealpy
, can’t remember what this was used for but it’s there
License
This project is licensed under the MIT License - see the LICENSE.md file for details
The Results
Each plot can be recreated in a fairly self-contained fashion. Here is each figure in the paper in order and links to a notebook to see how it was made.
Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Bonus plots
Comparing one-dimensional speed distributions of Shards stars with the full halo sample
Comparisons of stellar halo and Shards
Annual modulation harmonic analysis
Click here for the notebook (left)
Click here for the notebook (right)