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 [email protected] if you want to complain about why something doesn't work.
Click here for the notebook that creates this movie
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.
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
This project is licensed under the MIT License - see the LICENSE.md file for details
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.
Click here for the notebook (left)
Click here for the notebook (right)