diff --git a/04-FFT_DFT_and_Applications/resample.ipynb b/04-FFT_DFT_and_Applications/resample.ipynb index 3a6571e..06db523 100644 --- a/04-FFT_DFT_and_Applications/resample.ipynb +++ b/04-FFT_DFT_and_Applications/resample.ipynb @@ -25,6 +25,7 @@ "source": [ "# Import all required packages\n", "%matplotlib inline\n", + "import os\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from obspy import read\n", @@ -38,8 +39,8 @@ "outputs": [], "source": [ "# Read the data\n", - "st = read(\"../data/DOR50/*063\")\n", - "print(st)" + "datapath = os.path.join(os.path.expanduser('~'),'work', 'data', 'DOR50', '*063')\n", + "st = read(datapath)" ] }, { diff --git a/05-Spectrogram/multipleFilterTechnique.ipynb b/05-Spectrogram/multipleFilterTechnique.ipynb index ec8197a..3cce08e 100644 --- a/05-Spectrogram/multipleFilterTechnique.ipynb +++ b/05-Spectrogram/multipleFilterTechnique.ipynb @@ -174,8 +174,9 @@ "stime = UTCDateTime('2013-01-23 14:17:00Z') # use record starting at 1400\n", "etime = UTCDateTime('2013-01-23 14:19:00Z')\n", "ttitle = ', depth: 56.5 m'\n", - " \n", - "datapath = \"../data/{}/{}\".format(station, 'e*'+record+'*.HHZ') # search string for database\n", + "\n", + "# search string for database\n", + "datapath = os.path.join(os.path.expanduser('~'),'work', 'data', 'GE-stations', station, 'e*'+record+'*.HHZ')\n", "st = read(datapath) # read file using obspy read\n", "print(st)\n", "\n", @@ -298,7 +299,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.11" + "version": "3.6.7" } }, "nbformat": 4, diff --git a/05-Spectrogram/nonlinear_thresholding.ipynb b/05-Spectrogram/nonlinear_thresholding.ipynb index 09a7998..10d12bf 100644 --- a/05-Spectrogram/nonlinear_thresholding.ipynb +++ b/05-Spectrogram/nonlinear_thresholding.ipynb @@ -36,6 +36,7 @@ "outputs": [], "source": [ "# Load all required packages\n", + "import os\n", "import numpy as np\n", "from scipy.signal import stft, istft\n", "import matplotlib.pyplot as plt" @@ -48,9 +49,9 @@ "outputs": [], "source": [ "# Load our earthquake data and plot\n", - "d = np.load(\"../data/events/bug2019mgoh_Z.npz\")\n", - "#d = np.load(\"../data/events/bug2019gbbo_Z.npz\")\n", - "#d = np.load(\"../data/events/bug2019ibsd_Z.npz\")\n", + "d = np.load(os.path.join(os.path.expanduser('~'),'work', 'data', 'events', 'bug2019mgoh_Z.npz'))\n", + "#d = np.load(os.path.join(os.path.expanduser('~'),'work', 'data', 'events', 'bug2019gbbo_Z.npz'))\n", + "#d = np.load(os.path.join(os.path.expanduser('~'),'work', 'data', 'events', 'bug2019ibsd_Z.npz'))\n", "plt.figure(figsize=(15, 8))\n", "plt.plot(d['data']);" ] diff --git a/05-Spectrogram/time_frequency_analysis.ipynb b/05-Spectrogram/time_frequency_analysis.ipynb index e180647..fd1e134 100644 --- a/05-Spectrogram/time_frequency_analysis.ipynb +++ b/05-Spectrogram/time_frequency_analysis.ipynb @@ -2,7 +2,6 @@ "cells": [ { "cell_type": "markdown", - "id": "delayed-degree", "metadata": {}, "source": [ "# Time Frequency Analysis\n", @@ -23,7 +22,6 @@ }, { "cell_type": "markdown", - "id": "rising-paint", "metadata": {}, "source": [ "## Borehole Data and Test Site\n", @@ -43,7 +41,6 @@ { "cell_type": "code", "execution_count": null, - "id": "lonely-caribbean", "metadata": {}, "outputs": [], "source": [ @@ -58,7 +55,6 @@ { "cell_type": "code", "execution_count": null, - "id": "serial-stanford", "metadata": {}, "outputs": [], "source": [ @@ -77,7 +73,7 @@ " etime = UTCDateTime('2013-01-23 14:19:00Z')\n", " ttitle = ', depth: 56.5 m'\n", " \n", - "datapath = \"../data/{}/{}\".format(station, 'e*'+record+'*.HHZ') # search string for database\n", + "datapath = os.path.join(os.path.expanduser('~'),'work', 'data','GE-stations', station, 'e*'+record+'*.HHZ') # search string for database\n", "st = read(datapath) # read file using obspy read\n", "print(st)\n", "\n", @@ -91,7 +87,6 @@ { "cell_type": "code", "execution_count": null, - "id": "boring-killer", "metadata": {}, "outputs": [], "source": [ @@ -113,7 +108,6 @@ { "cell_type": "code", "execution_count": null, - "id": "drawn-ability", "metadata": {}, "outputs": [], "source": [ @@ -132,7 +126,6 @@ { "cell_type": "code", "execution_count": null, - "id": "stylish-monte", "metadata": {}, "outputs": [], "source": [ @@ -159,7 +152,6 @@ { "cell_type": "code", "execution_count": null, - "id": "unnecessary-military", "metadata": {}, "outputs": [], "source": [ @@ -194,7 +186,6 @@ { "cell_type": "code", "execution_count": null, - "id": "hydraulic-productivity", "metadata": {}, "outputs": [], "source": [ @@ -209,7 +200,6 @@ { "cell_type": "code", "execution_count": null, - "id": "biological-championship", "metadata": {}, "outputs": [], "source": [ @@ -227,7 +217,6 @@ }, { "cell_type": "markdown", - "id": "simple-humidity", "metadata": {}, "source": [ "## Exercise \n", @@ -245,7 +234,6 @@ }, { "cell_type": "markdown", - "id": "previous-concern", "metadata": {}, "source": [ "### The Hamming window\n", @@ -255,7 +243,6 @@ { "cell_type": "code", "execution_count": null, - "id": "ultimate-disaster", "metadata": {}, "outputs": [], "source": [] @@ -277,7 +264,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.11" + "version": "3.6.7" } }, "nbformat": 4, diff --git a/data/DOR50/YD.DOR50..EHZ.D.2021.063 b/data/DOR50/YD.DOR50..EHZ.D.2021.063 deleted file mode 100644 index 95f879c..0000000 Binary files a/data/DOR50/YD.DOR50..EHZ.D.2021.063 and /dev/null differ diff --git a/data/GEO2/e3987130123130000.HHZ b/data/GEO2/e3987130123130000.HHZ deleted file mode 100644 index 80d1edd..0000000 Binary files a/data/GEO2/e3987130123130000.HHZ and /dev/null differ diff --git a/data/GEO2/e3987130123140000.HHZ b/data/GEO2/e3987130123140000.HHZ deleted file mode 100644 index 570a1c3..0000000 Binary files a/data/GEO2/e3987130123140000.HHZ and /dev/null differ diff --git a/data/GEO3/e3981130123140000.HHZ b/data/GEO3/e3981130123140000.HHZ deleted file mode 100644 index 4fb3b63..0000000 Binary files a/data/GEO3/e3981130123140000.HHZ and /dev/null differ diff --git a/data/GEO4/e3985130123130000.HHZ b/data/GEO4/e3985130123130000.HHZ deleted file mode 100644 index 76e6f4f..0000000 Binary files a/data/GEO4/e3985130123130000.HHZ and /dev/null differ diff --git a/data/GEO4/e3985130123140000.HHZ b/data/GEO4/e3985130123140000.HHZ deleted file mode 100644 index b2e8caf..0000000 Binary files a/data/GEO4/e3985130123140000.HHZ and /dev/null differ diff --git a/data/GEO5/e3984130123130000.HHZ b/data/GEO5/e3984130123130000.HHZ deleted file mode 100644 index a36b611..0000000 Binary files a/data/GEO5/e3984130123130000.HHZ and /dev/null differ diff --git a/data/GEO5/e3984130123140000.HHZ b/data/GEO5/e3984130123140000.HHZ deleted file mode 100644 index eb96f18..0000000 Binary files a/data/GEO5/e3984130123140000.HHZ and /dev/null differ diff --git a/data/GEO6/e3989130123130000.HHZ b/data/GEO6/e3989130123130000.HHZ deleted file mode 100644 index ce69b3a..0000000 Binary files a/data/GEO6/e3989130123130000.HHZ and /dev/null differ diff --git a/data/GEO6/e3989130123140000.HHZ b/data/GEO6/e3989130123140000.HHZ deleted file mode 100644 index eaa92c0..0000000 Binary files a/data/GEO6/e3989130123140000.HHZ and /dev/null differ diff --git a/data/GEO7/e3979130123130400.HHZ b/data/GEO7/e3979130123130400.HHZ deleted file mode 100644 index cbb1aae..0000000 Binary files a/data/GEO7/e3979130123130400.HHZ and /dev/null differ diff --git a/data/GEO7/e3979130123140000.HHZ b/data/GEO7/e3979130123140000.HHZ deleted file mode 100644 index 8eff7ac..0000000 Binary files a/data/GEO7/e3979130123140000.HHZ and /dev/null differ diff --git a/data/events/bug2019gbbo_Z.npz b/data/events/bug2019gbbo_Z.npz deleted file mode 100644 index 4a7cbaa..0000000 Binary files a/data/events/bug2019gbbo_Z.npz and /dev/null differ diff --git a/data/events/bug2019ibsd_Z.npz b/data/events/bug2019ibsd_Z.npz deleted file mode 100644 index 9944650..0000000 Binary files a/data/events/bug2019ibsd_Z.npz and /dev/null differ diff --git a/data/events/bug2019mgoh_Z.npz b/data/events/bug2019mgoh_Z.npz deleted file mode 100644 index f8da0a8..0000000 Binary files a/data/events/bug2019mgoh_Z.npz and /dev/null differ