Skip to content

Commit 0b2ecf9

Browse files
authored
Merge pull request #10 from BritishGeologicalSurvey/matlab-scripts
This merge makes all VOLCANS Matlab scripts available to any PyVOLCANS user upon download/installation of the code
2 parents 34079b0 + fcf22c4 commit 0b2ecf9

19 files changed

+36995
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"Name","Region/Country","Region/Country code","Date of completeness"
2+
"Africa and Red Sea",0,1,1820
3+
"Alaska",0,2,1784
4+
"Antarctica",0,3,1893
5+
"Atlantic Ocean",0,4,1988
6+
"Canada and Western USA",0,5,1841
7+
"Hawaii and Pacific Ocean",0,6,1820
8+
"Iceland and Arctic Ocean",0,7,1702
9+
"Indonesia",0,8,1770
10+
"Japan, Taiwan, Marianas",0,9,1542
11+
"Kamchatka and Mainland Asia",0,10,1737
12+
"Kuril Islands",0,11,1760
13+
"Mediterranean and W Asia",0,12,1682
14+
"Melanesia and Australia",0,13,1855
15+
"México and Central America",0,14,1517
16+
"Middle East and Indian Ocean",0,15,1750
17+
"New Zealand to Fiji",0,16,1836
18+
"Philippines and SE Asia",0,17,1808
19+
"South America",0,18,1737
20+
"West Indies",0,19,1965
21+
"Chile",1,13,1737
22+
"Colombia",1,19,1822
23+
"Costa Rica",1,22,1821
24+
"Ecuador",1,27,1725
25+
"El Salvador",1,28,1766
26+
"France",1,39,1748
27+
"Guatemala",1,44,1565
28+
"Iceland",1,47,1702
29+
"Indonesia",1,49,1770
30+
"Italy",1,51,1682
31+
"Japan",1,52,1542
32+
"Mexico",1,57,1869
33+
"New Zealand",1,61,1836
34+
"Nicaragua",1,62,1849
35+
"Papua New Guinea",1,67,1872
36+
"Philippines",1,69,1822
37+
"Russia",1,71,1737
38+
"United States",1,92,1784
39+
"Vanuatu",1,93,1856

pyvolcans/VOLCANS_csv_files/PC81_GR2014_data.csv

Lines changed: 862 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# VOLCANS: code numbering
2+
3+
This README file details the code numbering adopted in the different csv files inside the folder:
4+
[../../VOLCANS_csv_files](https://github.com/BritishGeologicalSurvey/pyvolcans/tree/matlab-scripts/pyvolcans/VOLCANS_csv_files).
5+
This numbering was adopted to ease the calculations performed by the Matlab scripts that compose the VOLCANS method.
6+
7+
Please note that, in some cases, the code numbering can be directly checked on `.xls` files located inside
8+
the [current folder](https://github.com/BritishGeologicalSurvey/pyvolcans/tree/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers) (please see descriptions below). When this is not available, a legend is provided in this file, showing the correspondence between categorical variables and code numbering (please see next sub-sections).
9+
10+
Please also note that the `NO DATA` value used across all data files is `-9999`.
11+
12+
## VOTW467_8May18_volcano_data.csv
13+
14+
Code numbering for all the categorical variables can be found in the file [VOTW467_8May18_Holocene_list_textdata_portable.xls](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers/VOTW467_8May18_Holocene_list_textdata_portable.xls)
15+
(the variable displaying the code number in the spreadsheet is given between brackets):
16+
17+
Country (country#), Region (reg#), Subregion (subreg#), Primary Volcano Type (volctype#), Activity Evidence (procdate1),
18+
Dominant Rock Type (domrock#), Tectonic Setting (tectset#).
19+
20+
Please also note the following four aspects:
21+
22+
1. The variable ''Volcano Number'' (also expressed as ''VNUM'' in other data files) denotes a unique volcano identifier that
23+
the GVP database assigns to each volcanic system listed in the database.
24+
25+
2. The variables ''Major Rock 1-5'' and ''Minor Rock 1-5'' use the same code numbering as the variable ''Dominant Rock Type''.
26+
27+
3. The variable ''Last Known Eruption'' is given in years from current era, with negative values expressing dates before
28+
current era (BCE). The same convention is applicable to variables ''Start Year'' in file [VOTW467_8May18_eruption_data.csv](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOTW467_8May18_eruption_data.csv),
29+
''Eruption Start Year'' in file [VOTW467_8May18_event_data.csv](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOTW467_8May18_event_data.csv), and ''Date of completeness'' in [MeadMagill2014_June2018.csv](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/MeadMagill2014_June2018.csv).
30+
31+
4. The variables ''Latitude'' and ''Longitude'' (also included in the file [VOTW467_8May18_Eruption_list_textdata_portable.xls](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers/VOTW467_8May18_Eruption_list_textdata_portable.xls))
32+
correspond to the approximate spatial location of the volcanic system, and are expressed in decimal degrees.
33+
34+
## VOTW467_8May18_eruption_data.csv
35+
36+
Code numbering for the categorical variable ''VEI Modifier'' can be found in the file [VOTW467_8May18_Eruption_list_textdata_portable.xls](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers/VOTW467_8May18_Eruption_list_textdata_portable.xls)
37+
(please see column ''VEImod#'').
38+
39+
For the variable ''Eruption Category'', the following code numbering is applied:
40+
41+
1 = Confirmed Eruption
42+
43+
3 = Uncertain Eruption
44+
45+
## VOTW467_8May18_event_data.csv
46+
47+
Code numbering for the categorical variable ''Event Type'' can be found in the file [VOTW467_8May18_Event_list_textdata_portable.xls](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers/VOTW467_8May18_Event_list_textdata_portable.xls)
48+
(please see column ''event#'').
49+
50+
For the variable ''group#'', the following code numbering is applied (please also see [Tierz et al., 2019](https://doi.org/10.1007/s00445-019-1336-3)):
51+
52+
1 = Lava flow and/or fountaining
53+
54+
2 = Ballistics and Tephra
55+
56+
3 = Phreatic and phreatomagmatic activity
57+
58+
4 = Water-sediment flows
59+
60+
5 = Tsunamis
61+
62+
6 = Pyroclastic density currents
63+
64+
7 = Edifice collapse/destruction
65+
66+
8 = Caldera formation
67+
68+
## MeadMagill2014_June2018.csv
69+
70+
Code numbering for the categorical variable ''Region/Country code'' corresponds with the values in column ''Name''.
71+
These values are the same as those found in file [VOTW467_8May18_Holocene_list_textdata_portable.xls](https://github.com/BritishGeologicalSurvey/pyvolcans/blob/matlab-scripts/pyvolcans/VOLCANS_csv_files/VOLCANS_code_numbers/VOTW467_8May18_Holocene_list_textdata_portable.xls), for variables
72+
''Region (reg#)'' and ''Country (country#)''. The variable ''Region/Country'' denotes whether a given entry corresponds
73+
with a region (0) or a country (1).
74+
75+
## PC81_GR2014_data.csv
76+
77+
The following legend and code numbering is applicable to the merged database of volcano morphology:
78+
79+
- `VNUM`: Volcano Number (i.e. GVP unique volcano identifier)
80+
81+
- `Sub-feature`: The entry corresponds with a sub-feature (1) of a unique VNUM entry in GVP v4.6.7, or does not (0). In the latter case, the entry represents the _main_ volcanic feature of the corresponding VNUM.
82+
83+
- `small crater?`: The entry is (1) or is not (0) associated with a ''small crater'' flag according to the [Grosse et al. (2014)](https://doi.org/10.1007/s00445-013-0784-4) database.
84+
85+
- `NB`: It indicates whether there are any relevant remarks about the calculation of the morphology features displayed in the entry (these remarks coming from [Pike and Clow (1981)](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume), hereinafter PC81, and [Grosse et al. (2014)](https://doi.org/10.1007/s00445-013-0784-4), hereinafter GR2014):
86+
87+
* 1 = One or more dimensions uncertain and subject to revision.
88+
* 2 = Height and width calculated from volumetric information only.
89+
* 3 = Estimate of lake depth included in total crater depth.
90+
* 4 = Island volcano: height and width down to sea level only.
91+
* 5 = Height and width down to sea level only, plus one or more dimensions uncertain and subject to revision.
92+
93+
- `W*_T from`: It indicates from which database the value of `W*` (volcano's edifice half-width, please see below) was taken from:
94+
95+
* `W*_T from` = 0 → [PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume) database.
96+
* `W*_T from` = 1 → [GR2014](https://doi.org/10.1007/s00445-013-0784-4) database.
97+
98+
- `d`: Average diameter of crater rim-crest ([PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume)) or ''Crater Width'' variable in [GR2014](https://doi.org/10.1007/s00445-013-0784-4).
99+
100+
- `h`: Average depth of crater floor below rim crest ([PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume)) or ''Crater Depth'' variable in [GR2014](https://doi.org/10.1007/s00445-013-0784-4).
101+
102+
- `H`: Average height of rim crest above pre-volcano topographic datum ([PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume)) or ''Height Max'' variable in [GR2014](https://doi.org/10.1007/s00445-013-0784-4).
103+
104+
- `W*`: W\* = W + (1/2 · d) in [PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume), where W denotes the average half-width of the volcano, i.e. flank rim crest to edge of edifice; or W\* = 1/2 · W<sub>basal</sub> in [GR2014](https://doi.org/10.1007/s00445-013-0784-4), where W<sub>basal</sub> denotes the ''Basal Width'' variable.
105+
106+
- `C`: Circularity of rim crest, i.e. area inscribed circle/area circumscribed circle (only available in [PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume)).
107+
108+
- `ave. ei`: Ellipticity index [average contours] variable in [GR2014](https://doi.org/10.1007/s00445-013-0784-4).
109+
110+
- `T`: T = d/(2W + d) if taken from [PC81](https://www.researchgate.net/publication/259487495_Revised_classification_of_terrestrial_volcanoes_and_catalog_of_topographic_dimensions_with_new_results_on_edifice_volume); or T = W<sub>summit</sub>/W<sub>basal</sub> (''Summit Width/Basal Width'' variable) if taken from [GR2014](https://doi.org/10.1007/s00445-013-0784-4).
111+
112+
- `sv`: Secondary vents, i.e. ''Sec. Peaks [total]'' variable in [GR2014](https://doi.org/10.1007/s00445-013-0784-4).

0 commit comments

Comments
 (0)