Skip to content

Commit

Permalink
Merge pull request #25 from jpvantassel/dev
Browse files Browse the repository at this point in the history
For v2.0.0 : Example Updates
  • Loading branch information
jpvantassel authored Jul 13, 2024
2 parents d44b467 + e469656 commit 25de818
Show file tree
Hide file tree
Showing 12 changed files with 237 additions and 213 deletions.
56 changes: 29 additions & 27 deletions examples/example_ehvsr_traditional.ipynb

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions examples/example_hvsr_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"text": [
"Preprocessing Summary\n",
"------------------------------------------------------------\n",
"hvsrpy_version : 2.0.0rc7\n",
"hvsrpy_version : 2.0.0\n",
"orient_to_degrees_from_north : 0.0\n",
"filter_corner_frequencies_in_hz : (None, None)\n",
"window_length_in_seconds : 100\n",
Expand Down Expand Up @@ -145,7 +145,7 @@
"text": [
"Processing Summary\n",
"------------------------------------------------------------\n",
"hvsrpy_version : 2.0.0rc7\n",
"hvsrpy_version : 2.0.0\n",
"window_type_and_width : ('tukey', 0.2)\n",
"smoothing :\n",
" operator : konno_and_ohmachi\n",
Expand Down Expand Up @@ -189,14 +189,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"UT.STN11.A2_C300.miniseed completed in 1.348 seconds.\n",
"UT.STN11.A2_C50.miniseed completed in 1.427 seconds.\n",
"UT.STN11.A2_C150.miniseed completed in 1.565 seconds.\n"
"UT.STN11.A2_C50.miniseed completed in 1.295 seconds.\n",
"UT.STN11.A2_C150.miniseed completed in 1.415 seconds.\n",
"UT.STN11.A2_C300.miniseed completed in 1.416 seconds.\n",
"Results in ./data/ directory.\n"
]
}
],
"source": [
"!cd data && hvsrpy UT*.miniseed --preprocessing_settings_file preprocess.json --processing_settings_file process.json"
"!cd data && hvsrpy UT*.miniseed --preprocessing_settings_file preprocess.json --processing_settings_file process.json\n",
"print(\"Results in ./data/ directory.\")"
]
},
{
Expand Down
56 changes: 29 additions & 27 deletions examples/example_hvsr_io.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/example_hvsr_smoothing.ipynb

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions examples/example_mhvsr_azimuthal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"output_type": "stream",
"text": [
"Number of recordings: 1\n",
"All files exists.\n"
"All files exist.\n"
]
}
],
Expand All @@ -117,7 +117,7 @@
" for file in fname_set:\n",
" if not pathlib.Path(file).exists():\n",
" raise FileNotFoundError(f\"file {file} not found; check spelling.\")\n",
"print(\"All files exists.\")"
"print(\"All files exist.\")"
]
},
{
Expand All @@ -140,7 +140,7 @@
"text": [
"Preprocessing Summary\n",
"------------------------------------------------------------\n",
"hvsrpy_version : 2.0.0rc7\n",
"hvsrpy_version : 2.0.0\n",
"orient_to_degrees_from_north : 0.0\n",
"filter_corner_frequencies_in_hz : (None, None)\n",
"window_length_in_seconds : 300\n",
Expand Down Expand Up @@ -183,7 +183,7 @@
"text": [
"Processing Summary\n",
"------------------------------------------------------------\n",
"hvsrpy_version : 2.0.0rc7\n",
"hvsrpy_version : 2.0.0\n",
"window_type_and_width : ('tukey', 0.1)\n",
"smoothing :\n",
" operator : konno_and_ohmachi\n",
Expand Down Expand Up @@ -257,49 +257,49 @@
"data": {
"text/html": [
"<style type=\"text/css\">\n",
"#T_09ab0 caption {\n",
"#T_84c89 caption {\n",
" caption-side: bottom;\n",
" font-size: 1.25em;\n",
"}\n",
"</style>\n",
"<table id=\"T_09ab0\">\n",
"<table id=\"T_84c89\">\n",
" <caption>The peak of the mean curve is at 0.678 Hz with amplitude 4.532.</caption>\n",
" <thead>\n",
" <tr>\n",
" <th class=\"blank level0\" >&nbsp;</th>\n",
" <th id=\"T_09ab0_level0_col0\" class=\"col_heading level0 col0\" >Exponentitated Lognormal Median (units)</th>\n",
" <th id=\"T_09ab0_level0_col1\" class=\"col_heading level0 col1\" >Lognormal Standard Deviation (log units)</th>\n",
" <th id=\"T_09ab0_level0_col2\" class=\"col_heading level0 col2\" >-1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_09ab0_level0_col3\" class=\"col_heading level0 col3\" >+1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_84c89_level0_col0\" class=\"col_heading level0 col0\" >Exponentitated Lognormal Median (units)</th>\n",
" <th id=\"T_84c89_level0_col1\" class=\"col_heading level0 col1\" >Lognormal Standard Deviation (log units)</th>\n",
" <th id=\"T_84c89_level0_col2\" class=\"col_heading level0 col2\" >-1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_84c89_level0_col3\" class=\"col_heading level0 col3\" >+1 Lognormal Standard Deviation (units)</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th id=\"T_09ab0_level0_row0\" class=\"row_heading level0 row0\" >Resonant Site Frequency, fn (Hz)</th>\n",
" <td id=\"T_09ab0_row0_col0\" class=\"data row0 col0\" >0.668</td>\n",
" <td id=\"T_09ab0_row0_col1\" class=\"data row0 col1\" >0.072</td>\n",
" <td id=\"T_09ab0_row0_col2\" class=\"data row0 col2\" >0.622</td>\n",
" <td id=\"T_09ab0_row0_col3\" class=\"data row0 col3\" >0.718</td>\n",
" <th id=\"T_84c89_level0_row0\" class=\"row_heading level0 row0\" >Resonant Site Frequency, fn (Hz)</th>\n",
" <td id=\"T_84c89_row0_col0\" class=\"data row0 col0\" >0.668</td>\n",
" <td id=\"T_84c89_row0_col1\" class=\"data row0 col1\" >0.072</td>\n",
" <td id=\"T_84c89_row0_col2\" class=\"data row0 col2\" >0.622</td>\n",
" <td id=\"T_84c89_row0_col3\" class=\"data row0 col3\" >0.718</td>\n",
" </tr>\n",
" <tr>\n",
" <th id=\"T_09ab0_level0_row1\" class=\"row_heading level0 row1\" >Resonant Site Period, Tn (s)</th>\n",
" <td id=\"T_09ab0_row1_col0\" class=\"data row1 col0\" >1.497</td>\n",
" <td id=\"T_09ab0_row1_col1\" class=\"data row1 col1\" >0.072</td>\n",
" <td id=\"T_09ab0_row1_col2\" class=\"data row1 col2\" >1.609</td>\n",
" <td id=\"T_09ab0_row1_col3\" class=\"data row1 col3\" >1.393</td>\n",
" <th id=\"T_84c89_level0_row1\" class=\"row_heading level0 row1\" >Resonant Site Period, Tn (s)</th>\n",
" <td id=\"T_84c89_row1_col0\" class=\"data row1 col0\" >1.497</td>\n",
" <td id=\"T_84c89_row1_col1\" class=\"data row1 col1\" >0.072</td>\n",
" <td id=\"T_84c89_row1_col2\" class=\"data row1 col2\" >1.609</td>\n",
" <td id=\"T_84c89_row1_col3\" class=\"data row1 col3\" >1.393</td>\n",
" </tr>\n",
" <tr>\n",
" <th id=\"T_09ab0_level0_row2\" class=\"row_heading level0 row2\" >Resonance Amplitude, An</th>\n",
" <td id=\"T_09ab0_row2_col0\" class=\"data row2 col0\" >4.799</td>\n",
" <td id=\"T_09ab0_row2_col1\" class=\"data row2 col1\" >0.149</td>\n",
" <td id=\"T_09ab0_row2_col2\" class=\"data row2 col2\" >4.134</td>\n",
" <td id=\"T_09ab0_row2_col3\" class=\"data row2 col3\" >5.570</td>\n",
" <th id=\"T_84c89_level0_row2\" class=\"row_heading level0 row2\" >Resonance Amplitude, An</th>\n",
" <td id=\"T_84c89_row2_col0\" class=\"data row2 col0\" >4.799</td>\n",
" <td id=\"T_84c89_row2_col1\" class=\"data row2 col1\" >0.149</td>\n",
" <td id=\"T_84c89_row2_col2\" class=\"data row2 col2\" >4.134</td>\n",
" <td id=\"T_84c89_row2_col3\" class=\"data row2 col3\" >5.570</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n"
],
"text/plain": [
"<pandas.io.formats.style.Styler at 0x7fb0887e4610>"
"<pandas.io.formats.style.Styler at 0x7f181ce30100>"
]
},
"metadata": {},
Expand Down
14 changes: 8 additions & 6 deletions examples/example_mhvsr_diffuse_field.ipynb

Large diffs are not rendered by default.

56 changes: 29 additions & 27 deletions examples/example_mhvsr_traditional.ipynb

Large diffs are not rendered by default.

70 changes: 41 additions & 29 deletions examples/example_mhvsr_traditional_sesame.ipynb

Large diffs are not rendered by default.

66 changes: 34 additions & 32 deletions examples/example_mhvsr_traditional_window_rejection.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/example_microtremor_preprocessing.ipynb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions examples/example_psd_and_self_noise.ipynb

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions examples/example_spatial_hvsr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -338,36 +338,36 @@
"text/html": [
"<style type=\"text/css\">\n",
"</style>\n",
"<table id=\"T_eddb5\">\n",
"<table id=\"T_5beae\">\n",
" <thead>\n",
" <tr>\n",
" <th class=\"blank level0\" >&nbsp;</th>\n",
" <th id=\"T_eddb5_level0_col0\" class=\"col_heading level0 col0\" >Exponentiated Lognormal Median (units)</th>\n",
" <th id=\"T_eddb5_level0_col1\" class=\"col_heading level0 col1\" >Lognormal Standard Deviation (log units)</th>\n",
" <th id=\"T_eddb5_level0_col2\" class=\"col_heading level0 col2\" >-1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_eddb5_level0_col3\" class=\"col_heading level0 col3\" >+1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_5beae_level0_col0\" class=\"col_heading level0 col0\" >Exponentiated Lognormal Median (units)</th>\n",
" <th id=\"T_5beae_level0_col1\" class=\"col_heading level0 col1\" >Lognormal Standard Deviation (log units)</th>\n",
" <th id=\"T_5beae_level0_col2\" class=\"col_heading level0 col2\" >-1 Lognormal Standard Deviation (units)</th>\n",
" <th id=\"T_5beae_level0_col3\" class=\"col_heading level0 col3\" >+1 Lognormal Standard Deviation (units)</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th id=\"T_eddb5_level0_row0\" class=\"row_heading level0 row0\" >Resonant Site Frequency, fn (Hz)</th>\n",
" <td id=\"T_eddb5_row0_col0\" class=\"data row0 col0\" >0.575</td>\n",
" <td id=\"T_eddb5_row0_col1\" class=\"data row0 col1\" >0.153</td>\n",
" <td id=\"T_eddb5_row0_col2\" class=\"data row0 col2\" >0.493</td>\n",
" <td id=\"T_eddb5_row0_col3\" class=\"data row0 col3\" >0.671</td>\n",
" <th id=\"T_5beae_level0_row0\" class=\"row_heading level0 row0\" >Resonant Site Frequency, fn (Hz)</th>\n",
" <td id=\"T_5beae_row0_col0\" class=\"data row0 col0\" >0.574</td>\n",
" <td id=\"T_5beae_row0_col1\" class=\"data row0 col1\" >0.153</td>\n",
" <td id=\"T_5beae_row0_col2\" class=\"data row0 col2\" >0.492</td>\n",
" <td id=\"T_5beae_row0_col3\" class=\"data row0 col3\" >0.669</td>\n",
" </tr>\n",
" <tr>\n",
" <th id=\"T_eddb5_level0_row1\" class=\"row_heading level0 row1\" >Resonant Site Period, Tn (s)</th>\n",
" <td id=\"T_eddb5_row1_col0\" class=\"data row1 col0\" >1.738</td>\n",
" <td id=\"T_eddb5_row1_col1\" class=\"data row1 col1\" >0.153</td>\n",
" <td id=\"T_eddb5_row1_col2\" class=\"data row1 col2\" >2.026</td>\n",
" <td id=\"T_eddb5_row1_col3\" class=\"data row1 col3\" >1.491</td>\n",
" <th id=\"T_5beae_level0_row1\" class=\"row_heading level0 row1\" >Resonant Site Period, Tn (s)</th>\n",
" <td id=\"T_5beae_row1_col0\" class=\"data row1 col0\" >1.743</td>\n",
" <td id=\"T_5beae_row1_col1\" class=\"data row1 col1\" >0.153</td>\n",
" <td id=\"T_5beae_row1_col2\" class=\"data row1 col2\" >2.031</td>\n",
" <td id=\"T_5beae_row1_col3\" class=\"data row1 col3\" >1.496</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n"
],
"text/plain": [
"<pandas.io.formats.style.Styler at 0x7f9f2051dac0>"
"<pandas.io.formats.style.Styler at 0x7f7868beaac0>"
]
},
"metadata": {},
Expand Down

0 comments on commit 25de818

Please sign in to comment.