Skip to content
Jay edited this page Dec 11, 2024 · 2 revisions

VolcanoMap

VolcanoMap creates a map and cross sections. It is designed to make square maps around a volcano for the purpose of plotting earthquake location data. Basemaps are currently not working. I am troubleshooting a recent issue with Cartopy and PyGMT. Look at VolcanoMap_Hood_earthquakes.py for full functionality. The method returns a MatPlotLib Figure object so that the user can further customize the plot.

$ cd /home/jwellik/PYTHON
$ mv vdapseisutils-main vdapseisutils
$ cd /home/jwellik/PYTHON/vdapseisutils/gallery
$ conda activate vseis399
$ python
>>> import sys
>>> sys.path.append("/home/jwellik/PYTHON")  # Add all codes in the repository to your path
>>> from vdapseisutils.gallery import VolcanoMap_Hood_earthquakes
>>> VolcanoMap_Hood_earthquakes.main()  # Make sure your terminal has graphics forwarding

VolcanoFigure (Hood)
A VolcanoFigure with mostly default settings.

Maps, Cross Sections, and Time Series

Maps, cross sections, and time series plots can also be created individually. The methods also return MatPlotLib figures. Here are example outputs:

Map (Banua Wuhu)
Just a map, with a location map added in the top right corner. (Banua Wuhu, Indonesia)

CrossSection
Five CrossSection figures from US Volcanoes.

TimeSeries
TimeSeries figure of earthquakes prior to and after the 1980 eruption of Mount St Helens.

Clone this wiki locally