Giter Club home page Giter Club logo

bang's Introduction

BANG

BAyesian decomposiotioN of Galaxies

BANG is a GPU/CPU-python code for modelling both the photometry and kinematics of galaxies. The underlying model is the superposition of different component the user has 3 possible combination:

  • Bulge + inner disc + outer disc + Halo
  • Bulge + disc + Halo
  • inner disc + outer disc + Halo

For any detail about the model construction see Rigamonti et al. 2022.

The parameter estimation is done with a python implementation CPnest of nested sampling algorithm.

We strongly suggest to run BANG on GPU. CPU parameter estimation can take days. A fast CPU implementation will be available in a future release of the code.

All the function needed by the user are well documented. In order to run BANG on your galaxy open the example.py script from the BANG/src/BANG or BANG/test directories and follow the instructions.

Once your data have been correctly prepared and the config.yaml file has been created, running BANG requires few lines of code.

For any problem or suggestion feel free to contact the authors at:

For installing BANG you can follow these instructions:

1- Download the BANG package from github. You can simply type from your terminal: git clone https://github.com/FabioRigamonti/BANG.git

2- Instal the python modules with: pip install BANGal

3- Copy the files: setup_easy.pyx utils_easy.pyx dehnen/ From the github repo (you can find them in BANG/src/BANG) to the directory where pip has installed BANG. You can find this directory by opening a python shell importing BANG and printing BANG.

4- Move to the directory where pip has installed BANG and run the following command: python setup_easy.py build_ext --inplace

bang's People

Contributors

fabiorigamonti avatar

Stargazers

Hua Gao avatar Luca Broggi avatar

Watchers

 avatar

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.