Bayesian methods for inferring mass eruption rate for column height (or vice versa) for volcanic eruptions
Project description
MERPH
Bayesian methods for inferring mass eruption rate from column height (or vice versa) for volcanic eruptions
Introduction
MERPH uses Bayesian methods to explore the relationship between the mass eruption rate (Q) of a volcanic eruption and the height reached by the volcanic eruption column (H) that is produced.
The mass eruption rate is a quantity that is very important in volcanology and in the dispersion of volcanic ash in the atmosphere, but it is very difficult to measure directly.
Often the mass eruption rate is inferred from observations of the height of the volcanic eruption column, since the eruption column is often much easier to measure. The eruption column height is linked to the mass eruption rate through the fluid dynamics of turbulent buoyant plumes, but there are often external volcanological and atmospheric effects that contribute and complicate the relationship.
Datasets of the mass eruption rate and eruption column height have been compiled and used to determine an empirical relationship these quantities, using linear regression. This has then been used to infer the mass eruption rate from the plume height.
MERPH goes further, by using Bayesian methods to perform the regression. Bayesian methods:
- allow us to incorporate a range of uncertainties quantitatively into our model;
- provide a meaningful quantitative comparison of different models.
Main Features
MERPH is a python package containing MER--Plume height data sets: * Sparks * Mastin * Aubry * IVESPA
and tools to perform Bayesian linear regression of the data and posterior prediction.
The package also contains
-
example jupyter notebooks to illustrate the use
-
a command line interface to perform regression and posterior predicition
Install
MERPH can be installed from pypi using pip.
It is recommended to create a virtual environment, e.g. with Anaconda/Miniconda (conda create --name merph "python=3.11"
), and install in the environment.
Basic, light-weight set up
The basic modules (with no notebooks or app interface) can be installed with pip install merph
Other features
Install with example notebooks using pip install merph[nb]
How to use
I recommend looking first at the notebook examples, which show how the MERPH module can be used. After installing, the examples can be launched using the command line interface:
merph-example 1
and merph-example 2
.
The command merph
launches a command line interface for basic use.
Dependencies
Basic, light-weight set up
- matplotlib>=3.7.1
- numpy>=1.24.2
- pandas>=1.4.1
- scipy>=1.8.0
- click>=4.0
Other features
Notebooks
- notebook
Contacts
Mark J. Woodhouse mark.woodhouse@bristol.ac.uk
Repository
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file merph-1.0.0.tar.gz
.
File metadata
- Download URL: merph-1.0.0.tar.gz
- Upload date:
- Size: 76.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba100a4b7e27c9137aa6503d9e46042b0d5fcdbe3d9a648d96091ede564c8d7 |
|
MD5 | 101e9cac1decdb1194536ec4a7fd06d6 |
|
BLAKE2b-256 | 4cd82586973832dc08582c74f534d14bd48262803b613b1a5e22eaec092467d5 |
File details
Details for the file merph-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: merph-1.0.0-py3-none-any.whl
- Upload date:
- Size: 78.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63529a060450742c9f19d7e587fa46d7ecb2995fd969a7e4d76e406847384474 |
|
MD5 | 4a7c486188e3f86ae5da761f7a3a2a9a |
|
BLAKE2b-256 | f221d89d7231a89c3e9adaff72f9c3de83af3a6a3d64c44886c3996535c1f1fa |