td_plot module

Tool to plot inversion results of tomodir. Included data is * magnitude * coverage * phase * phase of FPI * real part * real part of FPI * imaginary part * imaginary part of FPI

The three main options are to plot everything in one figure, to plot individual figures (–single) or to plot anisotropic results of magnitude and phase (–aniso). The script has to be run in a tomodir. Output file will be saved in tomodir.

td_plot.alpha_from_cov(plotman, alpha_cov)[source]

Calculate alpha values from the coverage/2.5.

td_plot.calc_complex(rmag, rpha)[source]

Calculate real and imaginary part of the complex conductivity from magnitude and phase in log10.

td_plot.check_minmax(plotman, cid, xmin, xmax, zmin, zmax, vmin, vmax)[source]

Get min and max values for axes and colorbar if not given

td_plot.create_anisomagplot(plotman, x, y, z, alpha, options)[source]

Plot the data of the tomodir in one overview plot.

td_plot.create_anisophaplot(plotman, x, y, z, alpha, options)[source]

Plot the data of the tomodir in one overview plot.

td_plot.create_fpiplots(plotman, ax, mag, pha_fpi, options, alpha)[source]
td_plot.create_hlammagplot(plotman, h, ratio, alpha, options)[source]

Plot the data of the tomodir in one overview plot.

td_plot.create_hlamphaplot(plotman, h, v, alpha, options)[source]

Plot the data of the tomodir in one overview plot.

td_plot.create_non_dcplots(plotman, ax, mag, pha, options, alpha)[source]
td_plot.create_singleplots(plotman, cov, mag, pha, pha_fpi, alpha, options)[source]

Plot the data of the tomodir in individual plots.

td_plot.create_tdplot(plotman, cov, mag, pha, pha_fpi, alpha, options)[source]

Plot the data of the tomodir in one overview plot.

td_plot.getfigsize(plotman)[source]

calculate appropriate sizes for the subfigures

td_plot.handle_options()[source]

Handle options.

td_plot.list_datafiles()[source]

Get the type of the tomodir and the highest iteration to list all files, which will be plotted.

td_plot.load_cov(name)[source]

Load a datafile with coverage file structure.

td_plot.load_rho(name, column)[source]

Load a datafile with rho structure like mag and phase

td_plot.main()[source]
td_plot.plot_cov(cid, ax, plotman, title, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot coverage of the complex resistivity using the cov_options.

td_plot.plot_imag(cid, ax, plotman, title, alpha, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot imag parts of the complex conductivity using the imag_options.

td_plot.plot_mag(cid, ax, plotman, title, unit, alpha, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot magnitude of the complex resistivity using the mag_options.

td_plot.plot_pha(cid, ax, plotman, title, alpha, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot phase of the complex resistivity using the pha_options.

td_plot.plot_ratio(cid, ax, plotman, title, alpha, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot ratio of two conductivity directions.

td_plot.plot_real(cid, ax, plotman, title, alpha, vmin, vmax, xmin, xmax, zmin, zmax, xunit, cbtiks, elecs)[source]

Plot real parts of the complex conductivity using the real_options.

td_plot.read_datafiles(files, dtype, column)[source]

Load the datafiles and return cov, mag, phase and fpi phase values.

td_plot.read_iter(use_fpi)[source]

Return the path to the final .mag file either for the complex or the fpi inversion.

td_plot.td_type()[source]

get type of the tomodir (complex or dc and whether fpi)