Skip to main content

Compare observed emission line fluxes to predictions

Project description

NebulaBayes is a package for astronomers that aims to provide a very general way to compare observed emission line fluxes to model predictions, in order to constrain physical parameters such as the nebular metallicity.

NebulaBayes is provided with two photoionization model grids produced using the MAPPINGS 5.1 model. One grid is a 3D HII-region grid which may be used to constrain the oxygen abundance (12 + log O/H), ionisation parameter (log U) and gas pressure (log P/k). The other grid is for AGN narrow-line regions (NLRs) and has 4 dimensions, with the added parameter “log E_peak” being a measure of the hardness of the ionising continuum. NebulaBayes accepts model grids in a simple table format, and is agnostic to the number of dimensions in the grid, the parameter names, and the emission line names.

The NebulaBayes.NB_Model class is the entry point for performing Bayesian parameter estimation. The class is initialised with a chosen model grid, at which point the model flux grids are loaded, interpolated, and stored. The NB_Model instance may then be called one or more times to run Bayesian parameter estimation using observed fluxes. Many outputs are available, including tables and figures, and all results and working are stored on the object returned when the NB_Model instance is called.

See the “docs” directory in the installed NebulaBayes package for more information, suggestions for getting started, and examples. (Type the following at the terminal to show the location of the installed package):
$ python -c "import NebulaBayes; print(NebulaBayes.__file__)"

The documentation assumes some knowledge of Bayesian statistics and scientific python (numpy, matplotlib and pandas).

NebulaBayes is heavily based on IZI (Blanc+ 2015).

The package has been tested on Python 2.7 and Python 3.5.

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

NebulaBayes-0.9.2.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NebulaBayes-0.9.2-py2.py3-none-any.whl (4.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file NebulaBayes-0.9.2.tar.gz.

File metadata

  • Download URL: NebulaBayes-0.9.2.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for NebulaBayes-0.9.2.tar.gz
Algorithm Hash digest
SHA256 62ac464a12ed77bd06b4a79381ab1e9af8642253cfcde84aaea2030fdeaa8191
MD5 a77f30fac5202b4b53c7d66b7a31de05
BLAKE2b-256 0fc4b2d5c4878b40f95718823c236ca4a40f7ffcff018dfad16dea4a1f440435

See more details on using hashes here.

File details

Details for the file NebulaBayes-0.9.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for NebulaBayes-0.9.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33682edc04c279e046de3fcef5296d7af2b4011b5d353b1dd6dbd1e7aa20175f
MD5 e4d953081bb93c3a79dab0ab18769864
BLAKE2b-256 e345b6459dddb8045fad794ad988f81ff9db5e04c262715595b568e4660bf060

See more details on using hashes here.

Supported by

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