Awesome Open Source
Awesome Open Source


A few python scripts and tutorial notebooks to create and manipulate Galaxia mock catalogues.

What is Galaxia

Galaxia is a software to create mock stellar catalogues []. You can plug in n-body simulations (which we will do in another notebook) or use a Galaxy model. Galaxia uses the old 2003 Besancon Model [] and populates stars accordingly using Padova Isochrones []. You can add extinctions that are coming from a 3D extension of the Schlegel map [].


Download Galaxia [] (for GeDR3mock an updated Galaxia version can be downloaded from []) and follow the instructions []. You will also have to install ebf into your python distribution via

pip install ebfpy

Before creating your first mock catalogue you will need to run

galaxia -s warp

which will run for some time.

Legacy: GDR2mock

Start with the notebook

Now you can dive into the notebook which will show you (a) how to create a magnitude limited catalogue and (b) how to input your n-body data to create mock observations. As an application for (b) we create a CMD from many SSP's using a flat SFR and look at the age distribution of RGB stars. This can be extended to any stellar tracer population and is useful top produce mock data, e.g. from Chempy abundance tracks []. This age sampling has been explained here []

This repository was setup for the Gaia Sprint 2017 [].

In the meanwhile we have produced a mock GDR2 catalogue based on Galaxia: []

If you use this software please cite []


New notebooks were added in order to be able to reproduce or adapt GeDR3mock results.

It was all tested on a linux system with python 3. If you experience problems feel free to contact me.

Resources - getting everything running

The following files might prove useful if you want to reproduce what we have done in order to produce GeDR3mock [].

Galaxia version that can be used in interplay with the new repository can be found here []. I have hard-coded the line for the Besancon model file in 'galaxia.cpp' (line 410 and 411). You will have to change that by hand to the place where you put the Galaxia data and then recompile (go in the main galaxia directory and type 'make' in the console, then the executable galaxia file will be updated). Please also make sure to use the GeDR3mock version of the model file ('population_parameters_BGM_update.ebf' in the source_folder from above contains wrong parameters) which you can find here [].

Mock cluster parameters can be inspected here [].

Raw isochrones data can be found here [].

Reduced isochrones can be found here [].

Isochrone arrays and extinction arrays that can be used for parsec indexing and extinction curve application can be found here [].

Extinction data cube can be found here [].

Visibility query for contras sensitivity and reduction routine can be found here [].


Please cite our GeDR3mock paper if you are using GeDR3mock results.

If you are only using the tools in this repository, please cite this ASCL.

GeDR3mock presentation

Here is a presentation of the GeDR3mock that I have given at MPIA. I am happy to give that talk again upon request and answer all your questions to the software/catalog.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Jupyter Notebook (157,682
Mock (8,118
Stellar (1,072
Isochrones (97