2019-10-09 09:21:28 +02:00
|
|
|
# Import the tempfile module
|
|
|
|
|
import tempfile
|
|
|
|
|
# Load ResInsight Processing Server Client Library
|
|
|
|
|
import rips
|
|
|
|
|
# Connect to ResInsight instance
|
|
|
|
|
resInsight = rips.Instance.find()
|
|
|
|
|
|
|
|
|
|
# Get a list of all plots
|
|
|
|
|
plots = resInsight.project.plots()
|
|
|
|
|
|
|
|
|
|
export_folder = tempfile.mkdtemp()
|
|
|
|
|
|
|
|
|
|
print("Exporting to: " + export_folder)
|
|
|
|
|
|
|
|
|
|
for plot in plots:
|
|
|
|
|
plot.export_snapshot(export_folder=export_folder)
|
2020-01-21 12:36:22 +01:00
|
|
|
plot.export_snapshot(export_folder=export_folder, output_format='PDF')
|
2020-01-21 08:48:56 +01:00
|
|
|
well_log_plot = rips.WellLogPlot.from_pdm_object(plot)
|
|
|
|
|
if well_log_plot is not None:
|
|
|
|
|
well_log_plot.export_data_as_las(export_folder=export_folder)
|
|
|
|
|
well_log_plot.export_data_as_ascii(export_folder=export_folder)
|