Note
Go to the end to download the full example code.
Visualizing ERT measurements using Pseudosections¶
This example is all about import data from IRIS Instruments Syscal systems. There is a variety of different options that should cover most use cases. Also, shortly introduced are the data journal, action log, filtering, and accessing data using the underlying dataframe.
In this example output files are saved into subdirectories. In order to not have problems with file paths, we store the original path here
data import:
# note that you should prefer importing the binary data as the text export
# sometimes is missing some of the auxiliary data contained in the binary data.
ert.import_syscal_txt('data_syscal_ert/data_normal.txt')
# the second data set was measured in a reciprocal configuration by switching
# the 24-electrode cables on the Syscal Pro input connectors. The parameter
# "reciprocals" changes electrode notations.
ert.import_syscal_txt(
'data_syscal_ert/data_reciprocal.txt',
reciprocals=48
)
# compute geometrical factors using the analytical half-space equation for a
# spacing of 0.25 m
ert.compute_K_analytical(spacing=0.25)
array([-18.84955592, -18.84955592, -47.1238898 , ..., -47.1238898 ,
-18.84955592, -18.84955592])
create some plots in a subdirectory
with reda.CreateEnterDirectory('output_04'):
ert.pseudosection_type1(
column='r', filename='pseudosection_type1_log10_r.pdf', log10=True)
ert.pseudosection_type2(
column='r', filename='pseudosection_type2_log10_r.pdf', log10=True)
with reda.CreateEnterDirectory('output_04'):
crmod_settings = {
'elem': pwd + os.sep + 'data_syscal_ert/elem.dat',
'elec': pwd + os.sep + 'data_syscal_ert/elec.dat',
'rho': 100,
'2D': False,
'sinke_node': None,
}
ert.pseudosection_type3(
column='r',
filename='pseudosection_type3_log10_r.pdf',
log10=True,
crmod_settings=crmod_settings,
)
This grid was sorted using CutMcK. The nodes were resorted!
Rectangular grid found
reading sensitivities
Total running time of the script: (0 minutes 19.271 seconds)