Skip to main content

Whakaari Forecast Modelling

Project description

Whakaari

Eruption forecast model for Whakaari (White Island, New Zealand). This model implements a time series feature engineering and classification workflow that issues eruption alerts based on real-time tremor data. This is the real-time version for running on a VM with html forecaster output and email alerting.

Installation

Ensure you have Anaconda Python 3.7 installed. Then

  1. Clone the repo
git clone https://github.com/ddempsey/whakaari
  1. CD into the repo and create a conda environment
cd whakaari

conda env create -f environment.yml

conda activate whakaari_env

The installation has been tested on Windows, Mac and Unix operating systems. Total install with Anaconda Python should be less than 10 minutes.

Running models

Three examples have been included in scripts/forecast_model.py.

The first, forecast_test() trains on a small subset of tremor data in 2012 and then constructs a forecast of the Aug 2013 eruption. It will take about 10 minutes to run on a desktop computer and produces a forecast image in ../plots/test/forecast_Aug2013.png

The second, forecast_dec2019() trains on tremor data between 2011 and 2020 but excluding a two month period either side of the Dec 2019 eruption. It then constructs a model 'forecast' of this event. It could take several hours or a day to run depending on the cpus available for your computer.

The third, forecast_now(), is an online forecaster. It trains a model on all data between 2011 and 2020 including the Dec 2019 eruption. It then downloads the latest Whakaari tremor data from GeoNet and constructs a forecast for the next 48 hours. See associated paper for guidance on interpreting model consensus levels. The model may take several hours or a day the first time it is constructed, but subsequent updates should be quick.

To run the models, open forecast_model.py, comment/uncomment the forecasts you want to run, then in a terminal type

cd scripts

python forecast_model.py

Disclaimers

  1. This eruption forecast model is not guaranteed to predict every future eruption, it only increases the likelihood. In our paper, we discuss the conditions under which the forecast model is likely to perform poorly.

  2. This eruption forecast model provides a probabilistic prediction of the future. During periods of higher risk, it issues an alert that an eruption is more likely to occur in the immediate future. At present, our best estimate is that when an alert is issued at 80% consensus there is a 1 in 12 chance of an eruption occurring. On average, alerts last about 5 days. Eruption probability and average alert length could change depending on which eruptions are used to train the model.

  3. This software is not guaranteed to be free of bugs or errors. Most codes have a few errors and, provided these are minor, they will have only a marginal effect on accuracy and performance. That being said, if you discover a bug or error, please report this at https://github.com/ddempsey/whakaari/issues.

  4. This is not intended as an API for designing your own eruption forecast model. Nor is it designed to be especially user-friendly for Python/Machine Learning novices. Nevertheless, if you do want to adapt this model for another volcano, we encourage you to do that and are happy to answer queries about the best way forward.

Acknowledgments

This eruption model would not be possible without real-time seismic data streaming from Whakaari via GeoNet.

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

whakaari-0.0.1.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

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

whakaari-0.0.1-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whakaari-0.0.1.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.6

File hashes

Hashes for whakaari-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60a4db2a5c4599ac13ac7fa52f757b2793026acfa29365f0e5b2d708dcdbe162
MD5 74215ce9554dcf433272de6a46a97efb
BLAKE2b-256 89a2c87bec97a794c1ec82fed397a4b7b4141cf631b8ba57bd9f6c93afbd70b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whakaari-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.6

File hashes

Hashes for whakaari-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd0e6ec8f66ae7a14be90f972d82882847784c23f7e24f02bb4809f04a12ddf
MD5 916c1398ff649bfbfe92d561a29d8911
BLAKE2b-256 348668e81e0206a28854a458151bb74953e6a8f67dc1fe4f22f79c587ad1b123

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