Skip to content

Commit cbe2a25

Browse files
committed
update
1 parent e7a2539 commit cbe2a25

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/fmu/tools/rms/localisation/create_obs_with_localisation_attributes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ def create_obs_local(project, config_file):
789789
defined_zone_names = get_defined_zone_names(defined_field_names, zone_dict)
790790

791791
# Set default settings for all observations initially
792+
min_hlength = 100
792793
output_dict_default = {}
793794
output_dict = {}
794795
for zone_name in defined_zone_names:
@@ -801,6 +802,14 @@ def create_obs_local(project, config_file):
801802
obs_localisation_dict["yrange"] = default_ranges[1]
802803
obs_localisation_dict["anisotropy_angle"] = default_ranges[2]
803804
obs_localisation_dict["summary_key"] = obs_dict["KEY"]
805+
if obs_localisation_dict["hlength"] > min_hlength:
806+
well_path_angle = obs_localisation_dict["well_path_angle"]
807+
obs_localisation_dict["anisotropy_angle"] = well_path_angle
808+
obs_localisation_dict["xrange"] = max(
809+
obs_localisation_dict["hlength"],
810+
1.5 * obs_localisation_dict["xrange"],
811+
)
812+
804813
if result_id not in output_dict_default:
805814
output_dict_default[result_id] = obs_localisation_dict
806815

0 commit comments

Comments
 (0)