In [18]:
%matplotlib inline
In [19]:
import mtpy.core.mt as mt
In [20]:
edi_fn = r"c:\Users\jrpeacock\Documents\GitHub\mtpy\examples\data\edi_files\pb40c.edi"
In [21]:
mt_obj = mt.MT(edi_fn)
In [29]:
mt_plot = mt_obj.plot_mt_response(plot_pt='y')
In [23]:
help(mt_obj.remove_distortion)
In [24]:
distortion, new_z = mt_obj.remove_distortion()
print distortion
mt_obj.write_edi_file(new_fn=r"c:\Users\jrpeacock\Documents\GitHub\mtpy\examples\data\edi_files\pb40c_dr.edi",
new_Z=new_z)
In [25]:
mt_obj_dr = mt.MT(r"c:\Users\jrpeacock\Documents\GitHub\mtpy\examples\data\edi_files\pb40c_dr.edi")
mt_plot_dr = mt_obj_dr.plot_mt_response(plot_pt='y')