Single-frequency CRTomo data import

Import CRTomo-style single-frequency measurement data into a CR container

structure of the input data:

import os
input_dir = 'data_crtomo_format'
for filename in sorted(os.listdir(input_dir)):
    print(filename)

# the frequencies.dat filename contains the frequencies, corresponding to the
# volt* files
import subprocess
print('content of frequencies.dat')
subprocess.call('cat {}/frequencies.dat'.format(input_dir), shell=True)
frequencies.dat
volt_01_0.462963Hz.crt
volt_02_1.0Hz.crt
volt_03_2.12766Hz.crt
volt_04_4.54545Hz.crt
volt_05_10.0Hz.crt
content of frequencies.dat

0

import only one frequency into a CR (complex resistivity) container

import reda
cr = reda.CR()
cr.import_crtomo_data('data_crtomo_format/volt_01_0.462963Hz.crt')

Gallery generated by Sphinx-Gallery