mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make create_wbs_plot.py set depth range based on reservoir bounding box
This commit is contained in:
parent
529696de89
commit
d8dfca5bad
@ -8,7 +8,7 @@ resInsight = rips.Instance.find()
|
||||
|
||||
cases = resInsight.project.cases()
|
||||
|
||||
well_paths = resInsight.project.import_well_paths(well_path_folder='D:/Projects/ResInsight-regression-test/ModelData/Norne_LessWellPaths')
|
||||
well_paths = resInsight.project.import_well_paths(well_path_folder='D:/Projects/ResInsight-regression-test/ModelData/Norne_WellPaths')
|
||||
well_log_files = resInsight.project.import_well_log_files(well_log_folder='D:/Projects/ResInsight-regression-test/ModelData/Norne_PLT_LAS')
|
||||
|
||||
well_paths = resInsight.project.well_paths()
|
||||
@ -16,6 +16,9 @@ well_paths = resInsight.project.well_paths()
|
||||
if len(well_paths) < 1:
|
||||
print("No well paths in project")
|
||||
exit(1)
|
||||
|
||||
well_paths = well_paths[0:4]
|
||||
|
||||
print(well_paths)
|
||||
|
||||
# Example of creating parameters for new plots
|
||||
@ -28,6 +31,8 @@ wbs_parameters.user_fg_shale = 1.13
|
||||
|
||||
for case in cases:
|
||||
if case.type == "GeoMechCase":
|
||||
min_res_depth, max_res_depth = case.reservoir_depth_range()
|
||||
|
||||
print (case.case_id)
|
||||
case_path = case.grid_path()
|
||||
folder_name = os.path.dirname(case_path)
|
||||
@ -47,8 +52,10 @@ for case in cases:
|
||||
replace_params.user_fg_shale = 1.0321
|
||||
wbsplot.set_parameters(replace_params)
|
||||
# Demonstrate altering general well log plot settings
|
||||
wbsplot.set_depth_type("TRUE_VERTICAL_DEPTH_RKB")
|
||||
|
||||
min_depth, max_depth = wbsplot.depth_range()
|
||||
wbsplot.set_depth_range(max(min_depth, min_res_depth), min(max_depth, max_res_depth))
|
||||
#wbsplot.set_depth_type("TRUE_VERTICAL_DEPTH_RKB")
|
||||
|
||||
wbsplot.export_snapshot(export_folder=dirname)
|
||||
|
||||
except grpc.RpcError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user