#!/usr/bin/env python # coding: utf-8 # In[ ]: from geoscilabs.dcip.DC_Pseudosections import DC2DfwdWidget # # Inverting Data # # In this final widget you are able to forward model the apparent resistivity of a cylinder embedded in an otherwise uniform halfspace. Pseudo-sections of the apparent resistivity can be generated using dipole-dipole, pole-dipole, or dipole-pole arrays to see how survey geometry can distort the size, shape, and location of conductive bodies in a pseudo-section. Due to distortion and artifacts present in pseudo-sections trying to interpret them directly is typically difficult and dangerous due to the risk of misinterpretation. Inverting the data to find a model which fits the observed data and is geologically reasonable should be standard practice. # # By systematically varying the model parameters and comparing the plots of observed vs. predicted apparent resistivity a parametric inversion can be preformed by hand to find the "best" fitting model. Normalized data misfits, which provide a numerical measure of the difference between the observed and predicted data, are useful for quantifying how well and inversion model fits the observed data. The manual inversion process can be difficult and time consuming even with small examples sure as the one presented here. Therefore, numerical optimization algorithms are typically utilized to minimized the data misfit and a model objective function, which provides information about the model structure and complexity, in order to find an optimal solution. # # Definition of variables: # - **$\rho_1$**: Resistivity of the halfspace # - **$\rho_2$**: Resistivity of the cylinder # - **xc**: x location of cylinder center # - **zc**: z location of cylinder center # - **r**: radius of cylinder # - **predmis**: toggle which allows you to switch the bottom pannel from predicted apparent resistivity to normalized data misfit # - **suveyType**: toggle which allows you to switch between survey types. # - **Run Interact**: Use this button to update your plot # # ### **This app can be slow. You need to hit* Run Interact* to update the figure after you made modifications to the parameters** # In[ ]: DC2DfwdWidget() # In[ ]: