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.1.tar.gz (425.9 kB view details)

Uploaded Source

Built Distribution

BANGal-0.0.1-py3-none-any.whl (92.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BANGal-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 47b518972cb6d17fe3c6aa6ca90b48819f2f2698f054710cd26d1ccffa4c209a
MD5 6aaa124fa7045b3bbdb87eaeb23af7e4
BLAKE2b-256 87f204abd9bea8a82c5af5462bb59bc7bffc9e4316cc4aa63910f6b048b6def9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: BANGal-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 92.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f611dd25157a007638b305a0283d8308b4a24123eb772438dec9a31250cd33f
MD5 1052b598da8939d332aa5fe91713f0c8
BLAKE2b-256 0f3529e778cfdd0fd0fc11abd39ac449d0786b12bfef75b933a7cb37929f3ee0

See more details on using hashes here.

Provenance

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