Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mt-course into 2024
  • Loading branch information
kujaku11 committed Oct 18, 2024
2 parents d714108 + e290409 commit 755c0a9
Show file tree
Hide file tree
Showing 3 changed files with 1,261 additions and 14 deletions.
27 changes: 20 additions & 7 deletions notebooks/mth5/07a_make_mth5_from_phoenix_from_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,25 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"id": "6348263b-79f2-4bae-9981-cf4268d7a48b",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Source directory: /home/kkappler/shared/shortcourses/mt/phoenix\n",
"Target directory: /home/kkappler/software/irismt/earthscope-mt-course/data/timeseries/phoenix\n"
]
}
],
"source": [
"data_dir = Path().cwd().parent.parent.parent.joinpath(\"shared\", \"shortcourses\", \"mt\", \"phoenix\")"
"source_dir = Path.home().joinpath(\"shared\", \"shortcourses\", \"mt\", \"phoenix\")\n",
"target_dir = Path().cwd().parent.parent.joinpath(\"data\", \"timeseries\", \"phoenix\")\n",
"target_dir.mkdir(parents=True, exist_ok=True)\n",
"print(f\"Source directory: {source_dir}\")\n",
"print(f\"Target directory: {target_dir.absolute()}\")\n"
]
},
{
Expand Down Expand Up @@ -105,11 +118,11 @@
],
"source": [
"local_station = \"9043\"\n",
"local_station_dir = data_dir.joinpath(local_station)\n",
"local_station_dir = source_dir.joinpath(local_station)\n",
"\n",
"phx_mth5_fn = MakeMTH5.from_phoenix(\n",
" local_station_dir,\n",
" save_path=Path.cwd(),\n",
" save_path=target_dir,\n",
" mth5_filename=f\"from_phoenix_{local_station}.h5\",\n",
" sample_rates=[150, 24000],\n",
" receiver_calibration_dict=Path(local_station_dir.joinpath(\"calibrations\")),\n",
Expand Down Expand Up @@ -144,11 +157,11 @@
],
"source": [
"remote_station = \"remote\"\n",
"remote_station_dir = data_dir.joinpath(remote_station)\n",
"remote_station_dir = source_dir.joinpath(remote_station)\n",
"\n",
"phx_mth5_fn = MakeMTH5.from_phoenix(\n",
" remote_station_dir,\n",
" save_path=Path.cwd(),\n",
" save_path=target_dir,\n",
" mth5_filename=f\"from_phoenix_{remote_station}.h5\",\n",
" sample_rates=[150, 24000],\n",
" receiver_calibration_dict=Path(remote_station_dir.joinpath(\"calibrations\")),\n",
Expand Down
18 changes: 11 additions & 7 deletions notebooks/mtpy/12_aurora_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
"metadata": {},
"outputs": [],
"source": [
"survey_dir = Path(r\"c:\\\\Users\\\\jpeacock\\\\OneDrive - DOI\\\\mt\\\\mt_short_course\\\\data\\\\phx\")\n",
"# survey_dir = Path(r\"c:\\\\Users\\\\jpeacock\\\\OneDrive - DOI\\\\mt\\\\mt_short_course\\\\data\\\\phx\")\n",
"survey_dir = Path().cwd().parent.parent.joinpath(\"data\", \"timeseries\", \"phoenix\")\n",
"edi_path = survey_dir.joinpath(\"EDI_Files_aurora\")\n",
"band_file = r\"c:\\\\Users\\\\jpeacock\\\\OneDrive - DOI\\\\MTData\\\\bandset.cfg\"\n",
"# band_file = r\"c:\\\\Users\\\\jpeacock\\\\OneDrive - DOI\\\\MTData\\\\bandset.cfg\"\n",
"band_file = Path().cwd().parent.joinpath(\"aurora\", \"bs_256_29.cfg\")\n",
"\n",
"edi_path.mkdir(exist_ok=True)\n",
"\n",
Expand Down Expand Up @@ -62,8 +64,10 @@
"source": [
"ap = AuroraProcessing(merge_dictionary=merge_dict)\n",
"\n",
"ap.local_mth5_path = Path(r\"c:\\Users\\jpeacock\\OneDrive - DOI\\mt\\mt_short_course\\data\\phx\\9043\\phx_9043.h5\")\n",
"ap.remote_mth5_path = Path(r\"c:\\Users\\jpeacock\\OneDrive - DOI\\mt\\mt_short_course\\data\\phx\\remote\\remote_02.h5\")\n",
"# ap.local_mth5_path = Path(r\"c:\\Users\\jpeacock\\OneDrive - DOI\\mt\\mt_short_course\\data\\phx\\9043\\phx_9043.h5\")\n",
"# ap.remote_mth5_path = Path(r\"c:\\Users\\jpeacock\\OneDrive - DOI\\mt\\mt_short_course\\data\\phx\\remote\\remote_02.h5\")\n",
"ap.local_mth5_path = survey_dir.joinpath(\"from_phoenix_9043.h5\")\n",
"ap.remote_mth5_path = survey_dir.joinpath(\"from_phoenix_remote.h5\")\n",
"\n",
"ap.local_station_id = \"9043\"\n",
"ap.remote_station_id = \"1003\"\n",
Expand Down Expand Up @@ -1407,7 +1411,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "py39",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1421,9 +1425,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
1,230 changes: 1,230 additions & 0 deletions notebooks/simpeg/13_2d_from_mtpy_example_sk.ipynb

Large diffs are not rendered by default.

0 comments on commit 755c0a9

Please sign in to comment.