export_plots

petrophys.visualization.export_plots

export_plots(
input_dir,
output_dir,
pattern='*.las',
recursive=False,
top=None,
bottom=None,
figsize=(20, 14),
dpi=150,
standardize=True,
)[source]

Export one PNG per LAS file, drawn with the interpretation template.

The files are plotted as read; no interpretation is run, so template curves a file does not hold are left out and listed in each result’s warnings.

Parameters:
  • input_dir (str or Path) – Directory containing LAS files to visualize.

  • output_dir (str or Path) – Directory where PNG files will be written.

  • pattern (str) – File glob pattern.

  • recursive (bool) – Whether to search subdirectories recursively.

  • top (float, optional) – Depth window, in the depth unit of the data; an end not given is the data’s own.

  • bottom (float, optional) – Depth window, in the depth unit of the data; an end not given is the data’s own.

  • figsize (tuple) – Figure size for each plot.

  • dpi (int) – Output image DPI.

  • standardize (bool) – Standardize curve names/units before plotting.

Return type:

List[BatchVisualizationResult]