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.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_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_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.list_datafiles()[source]¶
Get the type of the tomodir and the highest iteration to list all files, which will be plotted.
- 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.