Skip to main content

Unofficial WOVOdat python package. WOVOdat is a comprehensive global database on volcanic unrest.

Project description

WOVOdat

Unofficial python package for World Organization of Volcano Observatories (WOVO) database (WOVOdat).

WOVOdat is a comprehensive global database on volcanic unrest aimed at understanding pre-eruptive processes and improving eruption forecasts. WOVOdat is brought to you by WOVO (World Organization of Volcano Observatories) and presently hosted at the Earth Observatory of Singapore.

A lack of standardization in data formats and database architectures has made it nearly impossible to do comparative studies of volcanic unrest, or to search data for analogues to any current unrest. WOVOdat fills this gap by translating and compiling this myriad of data into common formats with the goal to make them freely web-accessible, for reference during volcanic crises, comparative studies, and basic research on pre-eruptive processes.

Using WOVOdat, scientists wishing to study how volcanoes prepare to erupt will be able to find a wealth of historical data at their fingertips. Scientists needing to forecast the outcome of a fresh volcanic crisis will be able to search for analogues, find the past outcomes, and estimate (changing) probabilities of how the fresh unrest will evolve.

WOVOdat Homepage: https://wovodat.org/

1. How to install

Make sure you have python >=3.10. You can install the package using pip:

pip install wovodat

2. How to use

You can check examples directory how to use the WOVOdat package using jupyter notebook. In short you can use it like this:

from wovodat import WOVOdat

wovo = WOVOdat()

wovo.download(
    smithsonian_id="273083",
    data_type_code="6.5",
    start_date="1991-05-10",
    end_date="1991-05-17",
    username="martanto",
    email="martanto@live.com",
    affiliation="CVGHM",
    extract_zip=True,
)

More detailed information can be seen in the next step.

2.1 Import the module

Import the WOVOdat module:

from wovodat import WOVOdat

2.2 Initiate the module

There are two different ways to import the module:

wovo = WOVOdat(
    # Optional. 
    # Will show detailed information.
    # Default to False.
    verbose=True, 
    
    # Optional. 
    # For debugging purposes. Eg: For development.
    # Default to False.
    debug=True, # Optional. Default to False. Can be removed
)

or, just omit the parameters:

wovo = WOVOdat()

2.3 (Optional) List of supported data types

Call this attribute to get list of the supported data types. The column code can be used as reference to data_type_code parameter in step 2.5

#%%
wovo.data_types

Example output:

No Categories Data Type Code
0 Deformation Data Angle 1.1
1 Deformation Data EDM 1.2
2 Deformation Data GPS 1.3
3 Deformation Data GPS Vector 1.4
4 Deformation Data Levelling 1.5
5 Deformation Data Insar 1.6
6 Deformation Data Strain 1.7
7 Deformation Data Electronic Tilt 1.8
8 Deformation Data Tilt Vector 1.9
9 Fields Data Magnetic Fields 2.1
10 Fields Data Gravity Fields 2.2
11 Fields Data Electric Fields 2.3
12 Fields Data Magnetic Vector 2.4
13 Gas Data Sample Gas 3.1
14 Gas Data Soil Efflux 3.2
15 Gas Data Plume from Ground based station 3.3
16 Gas Data Plume From Satellite/Airplane 3.4
17 Hydrologic Sample Data Hydrology 4.1
18 Meteo Data Meteo 5.1
19 Seismic Data Seismic Event From Network 6.1
20 Seismic Data Seismic Event From Single Station 6.2
21 Seismic Data Seismic Tremor 6.3
22 Seismic Data Seismic Intensity 6.4
23 Seismic Data Seismic Interval 6.5
24 Seismic Data RSAM 6.6
25 Seismic Data SSAM 6.7
26 Thermal Data Thermal from Ground based station 7.1
27 Thermal Data Thermal From Satellite/Airplane 7.2

2.4 (Optional) Get data availability

This attribute will download the data availability from WOVOdat page.

wovo.availability

Example of the results:

No vd_name data_type stime etime rows_of_data
0 Abu seismic event 1920-06-14 07:39:16 2019-02-28 23:42:51 5223
1 Acamarachi seismic event 1959-09-19 13:37:30 2020-09-19 03:21:29 104
2 Acatenango seismic event 1951-07-25 18:42:23 2020-11-06 23:29:29 903
3 Acigöl-Nevsehir seismic event 2003-09-19 12:27:32 2020-10-31 09:18:51 162
4 Adams seismic event 1971-08-21 01:37:38 2017-11-18 09:52:46 438
5 Adams Seamount seismic event 2001-11-22 11:03:47 2001-11-22 11:03:47 1
6 Adatara GPS 2002-01-01 00:00:00 2014-01-31 00:00:00 9623
7 Adatara tilt 2011-10-08 00:00:00 2014-01-31 00:00:00 648
8 Adatara single station event 2002-01-20 09:13:00 2014-01-03 03:32:21 649
9 Adatara seismic interval 2002-01-20 00:00:00 2014-01-03 00:00:00 250

2.5 Download Data

Download the data using this method:

wovo.download(
    # VD Number/Smithsonian ID
    smithsonian_id="273083",
    
    # Data type code. You can check step 2.3 
    # In this example, "6.5" is RSAM data type code
    data_type_code="6.5",
    
    # Start and end date. Make sure start date < end date
    # The date format is: YYYY-MM-DD
    start_date="1991-05-10",
    end_date="1991-05-17",
    
    # Mandatory
    # Put your information. 
    username="martanto",
    email="martanto@live.com",
    affiliation="CVGHM",
    
    # Extract downloaded zip file.
    # Default to True.
    extract_zip=True,
)

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

wovodat-0.0.5.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

wovodat-0.0.5-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file wovodat-0.0.5.tar.gz.

File metadata

  • Download URL: wovodat-0.0.5.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for wovodat-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d4d4c5aed05bb35306b95ee5e5f87175a13039c8950a4b3aad66c012deb8ac47
MD5 64f0ae94989d30c447ff1e42e0b316cc
BLAKE2b-256 36bcd88a56ed68c945d7165a1610eddb6560fa11b26a0d59011c82fe0c5f7054

See more details on using hashes here.

File details

Details for the file wovodat-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: wovodat-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for wovodat-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 179cbd945bc28cb85052b76eed1e1d124ad9798f4e1c8574cb7360c692f590e4
MD5 81da15fa8ec7fb12c1989fd303fad5e4
BLAKE2b-256 5f6b289b5005b382c1c59169c19e5b2fd81b79305dd7fbd93aa6dfd84e7ee8b8

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