Skip to content
MeirdrarelPublic

About

Fit models from velocity field of galaxies

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

70 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galcin

What is it?

GalCin: Galactic Cinematic, fit a velocity model from observed velocity field of galaxy.

Model

For compute the model, we use method of moments from : Epinat, B., Amram, P., Balkowski, C., & Marcelin, M. 2010, MNRAS, 401, 2113

But you can add more rotational curves in "velocity_model.py" or create another model like cube etc.

There is two methods implemented

  • MPFIT: Which uses the Levenberg-Marquardt technique to solve the least-squares problem.

  • PyMultiNest : use a Nested Sampling Monte Carlo library and bayesian statistics.

Installation

The program need PyMultiNest installed, please refer herefor its installation guide.

The program need also astropy and yaml libraries.

How to lunch?

(name) can be lunch from prompt with

galcin.py path filename

or in an python script/console by importing first and call the main function

import galcin
    
galcin.galcin(path, filename, rank=0)
from galcin import galcin
    
galcin(path, filename, rank=0)

where path can be absolute or relative, filename is the name of the YAML configuration file. The parameter rank is the id of the thread. Example if you run the program with mpi and 4 core, rank may be equal from 0 to 3.

Compatible with MPI4PY

For more information and how to install it, follow this link. To execute the program with mpi4py:

mpiexec -n (nbcore) galcin.py path filename

Output

Outputs are written in a directory where the YAML config file is. The name of the directory depend of the method, the model and fixed paramters like: method_model_fixedparams. A recapitulation of parameters of the model is written in the header of fits file and in a YAML file.

Example

There is a Example directory in which you have fits files and a YAML file as example and try the program.

Create model

The subprocess for create map was used to validate the program (cross test) with existing programs. This subprocess need to be updated from the last changes of the architecture and the addition of the data language YAML.

About

Fit models from velocity field of galaxies

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages