Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the notebook used in the lab to use the true 2.5D code #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 34 additions & 113 deletions notebooks/dcip/DC_SurveyDataInversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/syckdog/opt/anaconda3/envs/e350_notebook/lib/python3.9/site-packages/discretize/utils/code_utils.py:247: FutureWarning: ExtractCoreMesh has been deprecated, please use extract_core_mesh. It will be removed in version 1.0.0 of discretize.\n",
" warnings.warn(\n"
]
}
],
"outputs": [],
"source": [
"import warnings\n",
"warnings.filterwarnings(\"ignore\")\n",
"from geoscilabs.dcip.DC_cylinder import cylinder_app\n",
"from geoscilabs.dcip.DCLayers import plot_layer_potentials_app\n",
"from geoscilabs.dcip.DC_Pseudosections import (\n",
" DC2DPseudoWidget, MidpointPseudoSectionWidget, DC2DfwdWidget\n",
")\n"
")\n",
"from geoscilabs.dcip.DCWidgetResLayer2_5D import ResLayer_app\n"
]
},
{
Expand Down Expand Up @@ -54,24 +46,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "04569e8a845b4a32bc77d043b2950dd3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"MyApp(children=(ToggleButtons(description='survey', options=('Dipole-Dipole', 'Dipole-Pole', 'Pole-Dipole', 'P…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"cylinder_app()"
]
Expand Down Expand Up @@ -119,46 +96,37 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Two layer app"
"## Two layer + cylinder app"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- **A**: (+) Current electrode location\n",
"- **B**: (-) Current electrode location\n",
"- **M**: (+) Potential electrode location\n",
"- **N**: (-) Potential electrode location\n",
"- **$\\rho_1$**: Resistivity of the top layer\n",
"- **$\\rho_2$**: Resistivity of the bottom layer\n",
"- **h**: thickness of the first layer\n",
"- **Plot**: Field to visualize\n",
"- **Type**: which part of the field"
" - **survey**: Type of survey\n",
" - **A**: Electrode A (+) location\n",
" - **B**: Electrode B (-) location\n",
" - **M**: Electrode A (+) location\n",
" - **N**: Electrode B (-) location\n",
" - **$dz_{layer}$**: thickness of the resistive layer\n",
" - **$zc_{ayer}$**: z location of the resistive layer\n",
" - **xc**: x location of cylinder center\n",
" - **zc**: z location of cylinder center\n",
" - **$\\rho_{1}$**: Resistivity of the half-space\n",
" - **$\\rho_{2}$**: Resistivity of the layer\n",
" - **$\\rho_{3}$**: Resistivity of the cylinder\n",
" - **Field**: Field to visualize\n",
" - **Type**: which part of the field\n",
" - **Scale**: Linear or Log Scale visualization"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d1384e6efce843ca873e1a2f8571cc74",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"MyApp(children=(FloatSlider(value=-30.0, continuous_update=False, description='A', max=40.0, min=-40.0, step=1…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"plot_layer_potentials_app()"
"ResLayer_app()"
]
},
{
Expand Down Expand Up @@ -198,24 +166,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d645ed44e78b485a93927aa419e818e8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"MyApp(children=(IntSlider(value=0, description='i', max=17), Output()), layout=Layout(align_items='stretch', d…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"MidpointPseudoSectionWidget()"
]
Expand All @@ -242,26 +195,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6a25181275ec473a99eb1e64715b50d2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(BoundedFloatText(value=1000.0, description='$\\\\rho_1$', max=1000.0, min=10.0), BoundedFl…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"DC2DPseudoWidget()"
]
Expand Down Expand Up @@ -296,24 +232,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "79e1c6477a08484db56eb9cd47a1916a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"MyApp(children=(BoundedFloatText(value=1000.0, description='$\\\\rho_1$', max=1000.0, min=10.0), BoundedFloatTex…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"DC2DfwdWidget()"
]
Expand Down Expand Up @@ -343,7 +264,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.11.10"
},
"widgets": {
"state": {
Expand All @@ -366,5 +287,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Loading