In this tutorial, we will see how to use ResIPy API to analyse the field data shown in Figure 5.1.
from resipy import R2
k = R2(typ='R2')
k.createSurvey(r'C:\ResIPy\Notebook examples\Basic DC resistivity inversion\All_data.dat', ftype='ProtocolDC')
k.showError()
k.fitErrorPwl()
k.importElec(r'C:\ResIPy\Notebook examples\Basic DC resistivity inversion\electrodes.csv')
k.showPseudo()
k.createMesh(typ='trian')
k.showMesh()
k.err = True # setting this flag is necessary for adopting the fitted error model, otherwise a default error is set
k.invert()
k.showResults(contour=True, sens=False, zlim=[-20,20], color_map='jet')
k.showPseudoInvError(vmin=-3, vmax=3) # the range is set as -3 to 3