Part 4 :Examining Volcanos and Earthquakes: Is there a correlation between the two?

Part 4 By Natalie Marcom

Adding onto the discussion of how earthquakes affect tsunamis, we will also discuss how earthquakes may affect volcanic eruptions. There are approximetely 1.5k active volcanos on earth. However, I will focus on connecting earthquakes and volcanic eruptions to stay within the scope of the class, as I am not a geophysicist.

I used data from NOAA, a website from Oregonstate.edu with the list of volcanos with their latitude and longitude, volcano and plate boundary shapefiles from ArcMap (Esri), as well as data from volcanodiscovery.org to find data concerning recent earthquakes near volcanos.

In [13]:
import requests
from lxml import html
from mpl_toolkits.basemap import Basemap

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

Let's plot all 1500 volcanos on a map to see where most of them are located. Due to the difficulty to acquire a reasonable dataset of volcanos, besides a shapefile from Arcmap, we will scrape from a website that indicates the Latitude and longiude of all the volcanos to make plotting easy. We will also plot the volcanos on a basemap by the size of the volcano, via it's elevation height in meters.

In [14]:
page = requests.get('http://volcano.oregonstate.edu/oldroot/volcanoes/alpha.html')
tree = html.fromstring(page.content)
tables = tree.xpath('//table')

volcano_data = []
for volc in range(4, len(tables)):
    df = pd.read_html(html.tostring(tables[volc]), header=0)[0]
    volcano_data.append(df)
In [15]:
df_volc = pd.concat(volcano_data, ignore_index=True)

Let's look at a small snippet of the volcano dataset that was scraped. We will take note of the main observations of this dataset.

In [16]:
df_volc.head(10)
Out[16]:
Name Location Type Latitude Longitude Elevation (m)
0 Abu Honshu-Japan Shield volcanoes 34.50 131.60 641.0
1 Acamarachi Chile-N Stratovolcano -23.30 -67.62 6046.0
2 Acatenango Guatemala Stratovolcano 14.50 -90.88 3976.0
3 Acigöl-Nevsehir Turkey Caldera 38.57 34.52 1689.0
4 Adams US-Washington Stratovolcano 46.21 -121.49 3742.0
5 Adams Seamount Pacific-C Submarine volcano -25.37 -129.27 -39.0
6 Adatara Honshu-Japan Stratovolcanoes 37.64 140.29 1718.0
7 Adwa Ethiopia Stratovolcano 10.07 40.84 1733.0
8 Afderà Ethiopia Stratovolcano 13.08 40.85 1295.0
9 Agrigan Mariana Is-C Pacific Stratovolcano 18.77 145.67 965.0

Where are the volcanos located? Are they near tetonic plates?

In [17]:
import pandas as pd
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt1
import matplotlib as mpl
import shapefile
from mpl_toolkits.basemap import Basemap
import geopandas as gp
In [18]:
import os as osf
osf.chdir('C:\Users\jenat\\Documents\\ringoffire\\new')

volc = gp.GeoDataFrame.from_file('volcs.shp')
plt1.figure(figsize = (20, 12))
y = volc.LATX
x = volc.LONGX
map1 = Basemap()
map1.readshapefile('plate', 'plate')
map1.drawmapboundary(fill_color = 'lightskyblue')
map1.fillcontinents(color = 'lavender',lake_color = 'aqua')
map1.drawcountries()
map1.drawcoastlines()
volc_info = map1.readshapefile('volc1', 'volcs')

x1,y1 = map1(x,y)
map1.scatter(x1,y1,c = 'red',marker = "o",alpha = 1.0)
plt1.title("Map of Volcanos and Plate Boundaries", fontsize = 25)
plt1.show()

Using two shape files (one for plate bounaries, the other of the world's volcanos), we see that majority of the volcanos are very close to plate boundaries, that or they are along the tetonic plate boundaries.


However, besides plotting the volcanos on a map, let us take it a step further and plot volcanos as well as data that indicates whether one of these volcanos, had an eruption that was associated with an earthquake. We will use two datasets to answer this question. The second dataset with the earthquake information mainly looks at volcano eruptions from 1790 to the present. I have decided to look at world volcanos for that data and not focus on a particular region of the world.


How many of the volcanos have had eruptions that were associated with earthquakes?

</u>

In [19]:
import os
import pandas as pd
from mpl_toolkits.basemap import Basemap
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
os.chdir('C:\Users\jenat\Documents')
#second dataset
data = pd.read_csv("new_world_data_results_up1.csv")
In [20]:
data
Out[20]:
Year Month Day TSU EQ Name Location Country Latitude Longitude Elevation Type Status
0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 -1610.0 NaN NaN TSU EQ Santorini Greece Greece 36.404 25.396 329.0 Shield volcano Historical
2 766.0 7.0 20.0 TSU EQ Sakura-jima Kyushu-Japan Japan 31.580 130.670 1117.0 Stratovolcano Historical
3 1169.0 2.0 4.0 TSU EQ Etna Italy Italy 37.734 15.004 3350.0 Stratovolcano Historical
4 1565.0 8.0 NaN NaN EQ Pacaya Guatemala Guatemala 14.381 -90.601 2552.0 Complex volcano Historical
5 1600.0 2.0 19.0 NaN EQ Huaynaputina Peru Peru -16.608 -70.850 4850.0 Stratovolcano Historical
6 1631.0 2.0 14.0 NaN EQ Dama Ali Africa-NE Ethiopia 11.280 41.630 1068.0 Shield volcano Historical
7 1631.0 12.0 16.0 TSU EQ Vesuvius Italy Italy 40.821 14.426 1281.0 Complex volcano Historical
8 1640.0 7.0 31.0 TSU EQ Komaga-take Hokkaido-Japan Japan 42.070 140.680 1140.0 Stratovolcano Historical
9 1659.0 9.0 30.0 NaN EQ San Salvador El Salvador El Salvador 13.736 -89.286 1893.0 Stratovolcano Historical
10 1669.0 3.0 11.0 NaN EQ Etna Italy Italy 37.734 15.004 3350.0 Stratovolcano Historical
11 1679.0 9.0 21.0 NaN EQ Zukur Red Sea Yemen 14.020 42.750 624.0 Shield volcano Holocene
12 1693.0 1.0 9.0 NaN EQ Etna Italy Italy 37.734 15.004 3350.0 Stratovolcano Historical
13 1707.0 12.0 16.0 NaN EQ Fuji Honshu-Japan Japan 35.350 138.730 3776.0 Stratovolcano Historical
14 1716.0 9.0 24.0 TSU EQ Taal Luzon-Philippines Philippines 14.002 120.993 400.0 Stratovolcano Historical
15 1741.0 8.0 23.0 TSU EQ Oshima-Oshima Hokkaido-Japan Japan 41.500 139.370 737.0 Stratovolcano Historical
16 1749.0 8.0 11.0 TSU EQ Taal Luzon-Philippines Philippines 14.002 120.993 400.0 Stratovolcano Historical
17 1754.0 5.0 13.0 TSU EQ Taal Luzon-Philippines Philippines 14.002 120.993 400.0 Stratovolcano Historical
18 1757.0 7.0 9.0 NaN EQ San Jorge Azores Portugal 38.650 -28.080 1053.0 Fissure vent Historical
19 1792.0 5.0 21.0 TSU EQ Unzen Kyushu-Japan Japan 32.750 130.300 1500.0 Complex volcano Historical
20 1820.0 3.0 1.0 TSU EQ Westdahl Aleutian Is United States 54.520 -164.650 1654.0 Stratovolcano Historical
21 1827.0 6.0 27.0 TSU EQ Avachinsky Kamchatka Russia 53.255 158.830 2741.0 Stratovolcano Historical
22 1837.0 9.0 NaN TSU EQ Peuet Sague Sumatra Indonesia 4.914 96.329 2801.0 Complex volcano Historical
23 1840.0 2.0 2.0 TSU EQ Gamalama Halmahera-Indonesia Indonesia 0.800 127.325 1715.0 Stratovolcano Historical
24 1845.0 2.0 8.0 TSU EQ Soputan Sulawesi-Indonesia Indonesia 1.108 124.725 1784.0 Stratovolcano Historical
25 1857.0 4.0 17.0 TSU EQ Umboi New Guinea-NE of Papua New Guinea -5.589 147.875 1548.0 Complex volcano Holocene
26 1863.0 8.0 17.0 TSU EQ Yasur Vanuatu-SW Pacific Vanuatu -19.520 169.425 361.0 Stratovolcano Historical
27 1868.0 4.0 3.0 TSU EQ Mauna Loa Hawaiian Is United States 19.475 -155.608 4170.0 Shield volcano Historical
28 1868.0 9.0 5.0 TSU EQ Etna Italy Italy 37.734 15.004 3350.0 Stratovolcano Historical
29 1871.0 4.0 30.0 TSU EQ Camiguin Mindanao-Philippines Philippines 9.203 124.673 1332.0 Stratovolcano Historical
30 1877.0 2.0 14.0 TSU EQ Mauna Loa Hawaiian Is United States 19.475 -155.608 4170.0 Shield volcano Historical
31 1878.0 2.0 11.0 TSU EQ Yasur Vanuatu-SW Pacific Vanuatu -19.520 169.425 361.0 Stratovolcano Historical
32 1878.0 8.0 29.0 TSU EQ Okmok Aleutian Is United States 53.420 -168.130 1073.0 Shield volcano Historical
33 1885.0 5.0 25.0 NaN EQ Purace Colombia Colombia 2.320 -76.400 4650.0 Stratovolcano Historical
34 1889.0 9.0 6.0 TSU EQ Banua Wuhu Sangihe Is-Indonesia Indonesia 3.138 125.491 -5.0 Submarine volcano Historical
35 1901.0 8.0 9.0 TSU EQ Epi Vanuatu-SW Pacific Vanuatu -16.680 168.370 833.0 Stratovolcano Historical
36 1909.0 4.0 28.0 NaN EQ Cameroon, Mt. Africa-W Cameroon 4.203 9.170 4095.0 Stratovolcano Historical
37 1911.0 1.0 30.0 TSU EQ Taal Luzon-Philippines Philippines 14.002 120.993 400.0 Stratovolcano Historical
38 1913.0 3.0 14.0 TSU EQ Awu Sangihe Is-Indonesia Indonesia 3.670 125.500 1320.0 Stratovolcano Historical
39 1914.0 1.0 12.0 TSU EQ Sakura-jima Kyushu-Japan Japan 31.580 130.670 1117.0 Stratovolcano Historical
40 1917.0 6.0 7.0 NaN EQ San Salvador El Salvador El Salvador 13.736 -89.286 1893.0 Stratovolcano Historical
41 1933.0 1.0 8.0 TSU EQ Kharimkotan Kuril Is Russia 49.120 154.508 1145.0 Stratovolcano Historical
42 1937.0 5.0 29.0 TSU EQ Rabaul New Britain-SW Pac Papua New Guinea -4.271 152.203 688.0 Pyroclastic shield Historical
43 1951.0 8.0 3.0 TSU EQ Cosiguina Nicaragua Nicaragua 12.980 -87.570 872.0 Stratovolcano Historical
44 1957.0 3.0 11.0 NaN EQ Vsevidof Aleutian Is United States 53.130 -168.680 2149.0 Stratovolcano Historical
45 1960.0 5.0 25.0 TSU EQ Puyehue Chile-C Chile -40.590 -72.117 2236.0 Stratovolcano Holocene
46 1963.0 5.0 16.0 NaN EQ Agung Lesser Sunda Is Indonesia -8.342 115.508 3142.0 Stratovolcano Historical
47 1975.0 11.0 29.0 TSU EQ Kilauea Hawaiian Is United States 19.425 -155.292 1222.0 Shield volcano Historical
48 1980.0 5.0 18.0 TSU EQ St. Helens US-Washington United States 46.200 -122.180 2549.0 Stratovolcano Historical
49 1982.0 3.0 28.0 NaN EQ Chichon, El Mexico Mexico 17.360 -93.228 1150.0 Tuff cone Historical
50 1983.0 10.0 3.0 NaN EQ Miyake-jima Izu Is-Japan Japan 34.080 139.530 815.0 Stratovolcano Historical
51 1987.0 12.0 1.0 NaN EQ Sirung Lesser Sunda Is Indonesia -8.510 124.148 862.0 Complex volcano Historical
52 1991.0 6.0 15.0 NaN EQ Pinatubo Luzon-Philippines Philippines 15.130 120.350 1486.0 Stratovolcano Historical
53 2000.0 6.0 27.0 TSU EQ Miyake-jima Izu Is-Japan Japan 34.080 139.530 815.0 Stratovolcano Historical
54 2002.0 8.0 28.0 NaN EQ Etna Italy Italy 37.734 15.004 3350.0 Stratovolcano Historical
55 2010.0 5.0 29.0 TSU EQ Sarigan Mariana Is-C Pacific United States 16.708 145.780 538.0 Stratovolcano Holocene
In [21]:
def plot_map2(lons, lats, elevations, llcrnrlat = -80, urcrnrlat = 90, llcrnrlon = -180, urcrnrlon = 180,resolution = 'i', projection='mill', lat_0 = 39.5, lon_0 = 1,min_marker_size=5):
    bins = np.linspace(0, elevations.max(), 10)
    marker_sizes = np.digitize(elevations, bins) + min_marker_size
    m2 = Basemap(projection=projection, llcrnrlat=llcrnrlat, urcrnrlat=urcrnrlat, llcrnrlon=llcrnrlon, urcrnrlon=urcrnrlon, resolution=resolution)
    m2.drawcountries()
    m2.drawmapboundary(fill_color='lightskyblue')
    m2.fillcontinents(color = '#ddaa66',lake_color='aqua')
    m2.drawcoastlines()

    for lon, lat, m2size in zip(lons, lats, marker_sizes):
        x, y = m2(lon, lat)
        m2.plot(x, y, 'bs', markersize=m2size, alpha=.7, zorder=4)

    return m2

def plot_map1(lons, lats, elevations, llcrnrlat=-80, urcrnrlat=90, llcrnrlon=-180, urcrnrlon=180,resolution='i', projection='mill', lat_0 = 39.5, lon_0 = 1,min_marker_size=2):
    bins = np.linspace(0, elevations.max(), 10)
    marker_sizes = np.digitize(elevations, bins) + min_marker_size
    m = Basemap(projection=projection, llcrnrlat=llcrnrlat, urcrnrlat=urcrnrlat, llcrnrlon=llcrnrlon, urcrnrlon=urcrnrlon, resolution=resolution)
    m.drawcountries()
    m.drawmapboundary(fill_color='lightskyblue')
    m.fillcontinents(color = '#ddaa66',lake_color='aqua')
    m.drawcoastlines()

    for lon, lat, msize in zip(lons, lats, marker_sizes):
        x, y = m(lon, lat)
        m.plot(x, y, '^r', markersize=msize, alpha=.7, zorder=4)

    return m

plt.figure(figsize=(60, 30))
m2 = plot_map2(data['Longitude'], data['Latitude'], data['Elevation'], min_marker_size=35)
m = plot_map1(df_volc['Longitude'], df_volc['Latitude'], df_volc['Elevation (m)'], min_marker_size=10)


plt.title('Volcano Eruptions with Associated Earthquakes', color='#000000', fontsize=50)

plt.show()

In the original NOAA dataset, there are 797 volcanic eruption observations, and 55 of them are eruptions associated with earthquakes. Taking this into account from this dataset (Volcanic eruptions from 1790-2016), 6.9% of the volcanic eruptions from the NOAA dataset, had an association with an earthquake.


The red triangles indicate the volcanos, and the blue squares indicate the volcanos who had an association with an earthquake prior to its eruption. Out of 1500 volcanos, there were about 55 volcanic eruptions that had this association. Many have these occurred in the 20th century. We also see that the majority of these earthquake and volcano association have happened along the ring of fire, which stretches along the Eastern edge of Asia, down to New Zealand, as well as from Alaska down to South America.


Closer Examination of Volcano Eruptions with Associated Earthquakes

</u></center>

Let's examine the different types of volcanos as well as the top 10 countries that had the most volcanic eruptions with associated earthquakes. Is there a particular region that had the most volcano eruptions?

In [22]:
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt

Is there a type of Volcano that is more frequent with eruptions?

In [23]:
objects = ('Stratovolcano', 'Shield Volcano', 'Complex Volcano', 'Pyroclastic shield', 'Tuff cone', 'Fissure vent','Submarine volcano')
y_pos = np.arange(len(objects))
performance = [38,7,6,1,1,1,1]
plt.barh(y_pos, performance, align='center', alpha=0.5)
plt.yticks(y_pos, objects)
plt.xlabel('Amount')
plt.title('Variation of Volcano Types with Associated Earthquakes')
plt.show()

We see that stratovolcanos (for instance Mount St.Helens, is a stratovolcano) had the overall highest frequency of volcanic eruptions, and by a large proportion.

Which country has had volcanic eruptions the most?

In [24]:
data['Country'].value_counts()[:10].plot(kind = 'barh', title = 'Top 10 Countries with Volcanic Eruptions with Associated Earthquakes')
plt.show()

We see that the United States and Japan have an equal amount of volcanic eruptions that had associations with earthquakes.

Due to the lack of magnitude observation, from the NOAA data (which gave an option of volcanic eruptions with association of earthquakes), a goal is to have a better observation of more detailed variables to help establish a correlatiopn between earthquakes and volcanic eruptions. However, because this is a topic that scientists are still debating, and many do not see an exact correlation between the two, we will take a different approach that may lead us to answers that we are looking for, which is establishing a correlation between earthquakes and volcanos.

Using data concerning earthquakes occurring close to volcanos

Examining link between Earthquakes and Volcanic eruptions

As stated before, scientists still are debating whether earthquakes and volcanic eruptions are connected or not, and there is a lack of information available that proved that the two are substantially linked to one or the other. However, I have found enough data indicating that earthquakes do occur near volcanos, which can suggest that it is possible for earthquakes and volcanos to be somewhat linked.

Is it possible for earthquakes and volcanos to come into close contact with one another?

In [25]:
import os
os.chdir('C:\Users\jenat\\Documents\\ringoffire')
import pandas as pd
import numpy as np
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import matplotlib as mpl
In [26]:
os.chdir('C:\Users\jenat\Documents\\ringoffire')
eqdata = pd.read_csv('earthquakesdata.csv')#dataset
eqdata1 = eqdata.convert_objects(convert_numeric=True)
C:\Users\jenat\Anaconda2\lib\site-packages\ipykernel\__main__.py:3: FutureWarning: convert_objects is deprecated.  Use the data-type specific converters pd.to_datetime, pd.to_timedelta and pd.to_numeric.
  app.launch_new_instance()

Feb and March 2017 Earthquakes near Volcano data:

</center>

In [27]:
eqdata1
Out[27]:
Time Mag Depth Location Latitude Longitude
0 Sat, 18 ar 19:47 UTC 2.3 13.2 - 3 SSW of Volcano, Hawaii 19.4000 -155.2500
1 Sat, 18 ar 14:48 UTC 1.9 17.6 11 SSW fro Corinth 19.3975 -155.2522
2 Sat, 18 ar 13:57 UTC 1.6 2.2 4.6 SSW of Her�ubrei� 37.7902 14.9158
3 Sat, 18 ar 13:13 UTC 2.3 1 016 S 66? W of Wao (Lanao Del Sur) 37.8527 22.8490
4 Sat, 18 ar 12:57 UTC 2.2 27.7 - 5 NNW of Volcano, Hawaii 65.1360 -16.3860
5 Sat, 18 ar 12:29 UTC 1.8 1.8 - 5 WSW of Volcano, Hawaii 7.5900 124.6200
6 Sat, 18 ar 12:08 UTC 1.6 0.7 2.7 ESE of Go�abunga 19.4768 -155.2662
7 Sat, 18 ar 11:41 UTC 1.8 4 3.7 SW of Her�ubrei� 19.4047 -155.2835
8 Sat, 18 ar 11:27 UTC 3 17 012 S 87? W of Wao (Lanao Del Sur)I FELT IT 19.4372 -155.6165
9 Sat, 18 ar 11:20 UTC 1.5 4 4.1 SW of Her�ubrei� 63.6350 -19.1960
10 Sat, 18 ar 10:51 UTC 4.7 10 Northern Suatra, IndonesiaI FELT IT 65.1510 -16.4060
11 Sat, 18 ar 10:43 UTC 1.6 3.3 3.8 SW of Her�ubrei� 7.6400 124.6500
12 Sat, 18 ar 10:07 UTC 2.3 3.1 3.1 SW of Her�ubrei� 65.1460 -16.4070
13 Sat, 18 ar 10:07 UTC 1.6 6.4 4.4 SW of Her�ubrei� 3.4200 98.4800
14 Sat, 18 ar 09:51 UTC 1.6 7.7 5.7 SW of Her�ubrei� 65.1500 -16.4070
15 Sat, 18 ar 09:28 UTC 1.6 4.8 5.3 SW of Her�ubrei� 65.1570 -16.4030
16 Sat, 18 ar 09:25 UTC 2 4.8 5.3 SW of Her�ubrei� 65.1460 -16.4140
17 Sat, 18 ar 09:25 UTC 1.5 9.2 5.1 N of Her�ubrei�art�gl 65.1370 -16.4340
18 Sat, 18 ar 08:59 UTC 1.5 7.6 3.1 N of B�r�arbunga 65.1370 -16.4200
19 Sat, 18 ar 08:44 UTC 1.6 3.8 - 11 WNW of Calipatria, CA 65.1350 -16.4140
20 Sat, 18 ar 08:40 UTC 2.1 3.4 4.0 SW of Her�ubrei� 65.1330 -16.3990
21 Sat, 18 ar 08:26 UTC 2.5 4 SOUTHERN CALIFORNIA 64.6680 -17.5160
22 Sat, 18 ar 08:26 UTC 1.5 4.8 4.6 SW of Her�ubrei� 33.1607 -115.6203
23 Sat, 18 ar 06:47 UTC 1.5 6.6 4.8 SW of Her�ubrei� 65.1480 -16.4070
24 Sat, 18 ar 06:22 UTC 2.9 7.1 5.1 SW of Her�ubrei�I FELT IT 33.1500 -115.6300
25 Sat, 18 ar 06:22 UTC 2.1 3.3 5.0 SW of Her�ubrei� 65.1440 -16.4170
26 Sat, 18 ar 05:28 UTC 2.4 5.1 4.9 SW of Her�ubrei� 65.1450 -16.4230
27 Sat, 18 ar 05:28 UTC 2.2 5.1 4.9 SW of Her�ubrei� 65.1410 -16.4240
28 Sat, 18 ar 05:05 UTC 2 26.4 - 5 NW of Volcano, Hawaii 65.1420 -16.4240
29 Sat, 18 ar 04:37 UTC 1.5 3.6 3.8 SW of Her�ubrei� 65.1440 -16.4250
... ... ... ... ... ... ...
826 Thu, 2 Feb 18:04 UTC 3 7 SOUTHERN GREECE -39.2588 173.9287
827 Thu, 2 Feb 12:47 UTC 3.3 8 16 al Norte de Cascajal, V. de Coronado. 19.3812 -155.2410
828 Thu, 2 Feb 06:52 UTC 2.1 1.2 - 128 NNW of Kodiak Station, Alaska 58.3636 -154.7016
829 Thu, 2 Feb 04:50 UTC 1.9 3 Alaska 19.3073 -155.2138
830 Thu, 2 Feb 01:37 UTC 2.4 5.9 - 123 NNW of Kodiak Station, Alaska -39.4653 175.7146
831 Wed, 1 Feb 21:37 UTC 1.9 9.3 - 119 SE of Old Iliana, Alaska 55.6660 160.3470
832 Wed, 1 Feb 21:33 UTC 2.3 8.5 - 127 SE of Old Iliana, Alaska 38.8077 -122.7707
833 Wed, 1 Feb 21:29 UTC 1.9 14.8 Catania 55.6980 160.4760
834 Wed, 1 Feb 18:52 UTC 2.1 3.1 Avellino 37.5500 23.5900
835 Wed, 1 Feb 18:24 UTC 2 1.2 Catania 10.1290 -83.9620
836 Wed, 1 Feb 17:58 UTC 2.3 23.5 14.4 SW fro Leni (E) 58.7621 -153.6923
837 Wed, 1 Feb 16:43 UTC 2.4 1 058 N 45? E of Davao City 58.8027 -153.8385
838 Wed, 1 Feb 16:21 UTC 2 2 NORTHERN CALIFORNIA 58.7243 -153.6634
839 Wed, 1 Feb 14:23 UTC 2.1 2.8 - 7 SW of Volcano, Hawaii 58.9080 -153.6289
840 Wed, 1 Feb 14:19 UTC 2.3 1.9 - 2 SSW of Cobb, California 58.8481 -153.5432
841 Wed, 1 Feb 13:25 UTC 1.9 11.5 21 SSE fro Aigina 37.6653 14.9807
842 Wed, 1 Feb 13:18 UTC 2.6 3 ISLAND OF HAWAII, HAWAII 40.8987 14.6692
843 Wed, 1 Feb 12:33 UTC 2.1 5 1.5 ENE of Kr�suv�k 37.7540 15.0060
844 Wed, 1 Feb 11:24 UTC 2.4 12 SOUTHERN GREECE 38.4690 14.7060
845 Wed, 1 Feb 10:40 UTC 3 4 8 al Norte de Capellades, Alvarado. 7.4800 125.9900
846 Wed, 1 Feb 09:59 UTC 2.2 5.2 New Zealand 38.7600 -122.7300
847 Wed, 1 Feb 09:47 UTC 2.3 15 Alaska 19.3827 -155.2812
848 Wed, 1 Feb 09:20 UTC 2.7 1 SOUTHERN GREECE 38.8025 -122.7377
849 Wed, 1 Feb 08:16 UTC 2.8 0.2 - 96 NNW of Nikiski, Alaska 37.5725 23.5370
850 Wed, 1 Feb 07:29 UTC 2.1 3 NORTHERN CALIFORNIA 19.3900 -155.2800
851 Wed, 1 Feb 05:56 UTC 1.9 17 Catania 63.8930 -22.0380
852 Wed, 1 Feb 02:32 UTC 2.3 3 NORTHERN CALIFORNIA 37.6000 23.5100
853 Wed, 1 Feb 00:41 UTC 2.3 3 ISLAND OF HAWAII, HAWAII 9.9900 -83.8030
854 Wed, 1 Feb 00:39 UTC 2.1 2 NORTHERN CALIFORNIA -37.6903 177.2383
855 Wed, 1 Feb 00:39 UTC 2.8 3 ISLAND OF HAWAII, HAWAII 61.4317 -152.2931

856 rows × 6 columns

These are two small datasets consisting of earthquakes that have happened near volcanos since Feb 1-March 18th. As we can see from these datasets, particularly the distance (km) from the volcano itself, we see that it is very likely that earthquakes and volcanos can come into close contact with another, thus the possibiltiy of volcanic eruptions and earthquakes occurring is a possibility, as it is proven in the first dataset. The question remains, how frequenly does it occur, and what causes it (two questions for Geologists!)


In [28]:
latlong = pd.read_csv('latlong.csv')
eqdata = pd.read_csv('earthquakesdata.csv')

#earth.Latitude
#earth.Longitude


def earth_near(lons, lats, magnitude, min_marker_size=2):
    bins = np.linspace(0, magnitude.max(), 10)
    marker_sizes = np.digitize(magnitude, bins) + min_marker_size

    m = Basemap()
    m.readshapefile('C:\Users\jenat\\Documents\\ringoffire\\new\\plate', 'plate')
    
    
    m.bluemarble(alpha=0.42)

    for lon, lat, msize in zip(lons, lats, marker_sizes):
        x, y = m(lon, lat)
        m.plot(x, y, '*', c='#fff8dc',markersize=msize, alpha=1.0, zorder=10)

    return m
    

Legend for Plot:
Symbol
Meaning
*Earthquake
oVolcano
LinePlate boundary
</tr></td>

In [29]:
plt.figure(figsize=(15, 12))
map1.scatter(x1,y1,c='red',marker="o",alpha=0.7)
m = earth_near(eqdata1['Longitude'], eqdata1['Latitude'], eqdata1['Mag'], min_marker_size=2)
plt.title('Earthquakes near Volcanos Since Feb 1', color='#000000', fontsize=40)
plt.show()

We see that they are quite close to tetonic plates. The white stars are the earthquakes, and the red circles are the volcanos. As we see, the earthquakes are all quite close to the volcanos. In addition, the size of the stars is based upon the magnitude of the earthquake.


Where are these earthquakes happening the most?

In [30]:
import matplotlib.pyplot as plt; plt.rcdefaults()
import numpy as np
import matplotlib.pyplot as plt
In [31]:
eqdata1['Location'].value_counts()[:10].plot(kind = 'barh', title = 'Top 10 Locations with Earthquakes near Volcanos since Feb 1')
plt.show()

For Top 3 (out of 10) : We see that New Zealand has had the most earthquakes, followed by the big island of Hawai'i, then Russia. We also see that Central California, southern California, Northern California (which should include the Geysers) also have a lot of activity as well.


Is there a specific magnitude that is happening more frequently?

In [32]:
plt.figure()
plt.hist(eqdata1['Mag'].dropna(), bins = 20)
plt.xlabel('Magnitude')
plt.ylabel('Amount')
plt.title("Variation and Amount of Earthquake Magnitudes Since Feb 1")
plt.show()

Most of the earthquakes magnitudes are quite small, as in 2.5 or below.


Is there a correlation between the depth of the earthquake and the magnitude of the earthquake?

In [33]:
import matplotlib.pyplot
import pylab
import os
os.chdir('C:\Users\jenat\\Documents\\ringoffire')
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl

tes3 = pd.read_csv('earthquakesdata.csv',usecols = [1,2])#dataset
data1 = tes3.convert_objects(convert_numeric=True)
data1 = data1.rename(columns={' Depth': 'Depth'})

matplotlib.pyplot.scatter(data1.Mag,data1.Depth)
matplotlib.pyplot.title('Scatter Plot of Magnitudes and Depths of Earthquakes')
matplotlib.pyplot.xlabel("Magnitude")
matplotlib.pyplot.ylabel("Depth (M)")
matplotlib.pyplot.show()
C:\Users\jenat\Anaconda2\lib\site-packages\ipykernel\__main__.py:11: FutureWarning: convert_objects is deprecated.  Use the data-type specific converters pd.to_datetime, pd.to_timedelta and pd.to_numeric.

As we can see, there is not a strong correlation between Magnitudes of earthquakes and the depths of the earthquakes. Most of the earthquakes from smaller magnitudes to the larger ones are typically within the same range of depth, which indicates that magnitude an depth are likely not correlated.


Let's use a Spearman, non-parametric correlation test between Magnitude and Depth

In [34]:
import os
os.chdir('C:\Users\jenat\\Documents\\ringoffire')
import pandas as pd

data1.corr()

data1.corr(method='spearman', min_periods=1)
Out[34]:
Mag Depth
Mag 1.000000 0.139534
Depth 0.139534 1.000000

The matrix correlation, using the spearman test concerning the two columns magnitude and Depth, indicates too that there is not a strong correlation between Magnitude and Depth.


CONCLUSION

There is not enough scientific evidence, or data to link earthquakes and volcano eruptions as being statistically significant to one another. More specifically, if an Earthquake can cause a volcanic eruption. While scientists are still debating the connection between the two, there is evidence that earthquakes occur (and rather frequently) near volcanos. With that information given, this brings the possibility that it is possible for earthquakes and volcanos to correlate with one another.

Another aspect worth looking into, is determing which earthquake is an aftershock and which earthquake is not.

In [ ]: