Coder Social home page Coder Social logo

pbtoubol / monoage-velocity-dispersion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmackereth/monoage-velocity-dispersion

0.0 0.0 0.0 45.11 MB

Measuring the radial and vertical velocity dispersion of stars using APOGEE-Gaia

License: MIT License

Python 3.50% Jupyter Notebook 96.50%

monoage-velocity-dispersion's Introduction

monoage-velocity-dispersion

This repo contains the code required to measure the radial and vertical velocity dispersion of stars in the Milky Way disc as a function of age, using APOGEE-Gaia and the APOKASC catalogue. This code generates all the figures and age catalogues which are included in the paper "Dynamical heating across the Milky Way disc using APOGEE and Gaia" (Mackereth et al. 2019). The code here is provided for 'illustration only' purposes and will not be supported/maintained but should allow users to reproduce the main results of that paper.

Prerequisites

The code will require a proper installation of the apogee and galpy python packages and the astroNN python machine learning package in order to run. It also requires the usual matplotlib, scipy, numpy, astropy etc.

Training the BCNN and predicting ages for DR14

In order to generate the age catalogue which is required to fit the velocity dispersion models (as in the paper), users must first work through the astroNN_ages.ipynb notebook. You may need to locate and download the APOKASC-2 catalogue, which forms the training data for the BCNN (auto-downloading of this data will be added soon!).

Alternatively, users may wish to skip this step, and download the age catalogue directly from zenodo, here (coming soon!).

Fitting the velocity dispersion models

Once the age catalogue is generated and saved to the appropriate location (/sav), the actual modelling of the velocity distribution for mono-age, mono-[Fe/H] populations can begin. The first set of models is fit by running :

python fit_monoage.py --model-type=ellipsoid ellipsoid_output.npy

which can take a considerable amount of time to run (be warned!).

Secondly, users should also fit the varying v_0 models, which are discussed later in the paper:

python fit_monoage.py --model-type=ellipsoidvaryvo ellipsoidvaryvo_output.npy

Generating the paper figures

Once the age catalogue and modelling are complete, the main paper figures can be generated by working through the dynamical_heating.ipynb notebook. Enjoy!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.