Skip to main content

BANG: BAyesian modelliNg of Galaxies

Project description

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:

        frigamonti@uninsubria.it

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BANGal-0.0.2.tar.gz (425.9 kB view details)

Uploaded Source

Built Distribution

BANGal-0.0.2-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

Details for the file BANGal-0.0.2.tar.gz.

File metadata

  • Download URL: BANGal-0.0.2.tar.gz
  • Upload date:
  • Size: 425.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for BANGal-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d8ae149f601e2cb7b02666c0fb3168841bb250ed1aea1f84a41d94b2825ed3e6
MD5 7d602369be70ef928dcaf9e71784762a
BLAKE2b-256 52f1489517aa535310e940b7aab30e501302cda397c76d8cf7b3bfa36beb7a6a

See more details on using hashes here.

File details

Details for the file BANGal-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: BANGal-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 92.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for BANGal-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c31b37678dab57c7642db0174c6a7ca7c7ff36130ff852e6dd2ffd8b5fc88651
MD5 a57b4be3ea7d13adbcff3abdb354f2ff
BLAKE2b-256 80ae816d8d7148268f5bdb9de4c5a947af80acba4e29aa79e24a892b5be11911

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page