Skip to content

Commit

Permalink
Added more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Nov 8, 2023
1 parent c7d5657 commit 6c14e86
Show file tree
Hide file tree
Showing 12 changed files with 124 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ settings:
trend_params: [ 1.0, -1.0 ]
trend_relstd: 0.15
grid_dimension: [150, 250, 1]
grid_file_name: "GRID.EGRID"
grid_file_name: "GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID"

response:
name: "UPSCALED"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ settings:
trend_params: [ 1.0, -1.0 ]
trend_relstd: 0.15
grid_dimension: [150, 250, 1]
grid_file_name: "GRID.EGRID"
grid_file_name: "GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID"

response:
name: "UPSCALED"
Expand Down
53 changes: 53 additions & 0 deletions tests/jobs/localisation/example_case/example_test_config_C.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# ROFF format standard RMS origo
settings:
grid_size:
xsize: 7500.0
ysize: 12500.0
zsize: 50.0
use_eclipse_grid_index_origo: False

field:
name: "FIELDPAR"
algorithm: "gstools"
file_format: "ROFF"
initial_file_name: "init_files/FieldParam"
updated_file_name: "FieldParam"
seed_file: "randomseeds.txt"
variogram: "gaussian"
correlation_range: [3000.0, 2000.0, 2.0]
correlation_azimuth: 45.0
correlation_dip: 0.0
correlation_exponent: 1.9
trend_use: False
trend_params: [ 1.0, -1.0 ]
trend_relstd: 0.15
grid_dimension: [150, 250, 1]
grid_file_name: "GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID"

response:
name: "UPSCALED"
grid_dimension: [15, 25, 1]
upscaled_file_name: "Upscaled"
grid_file_name: "UpscaleGrid.EGRID"
file_format: "ROFF"
write_upscaled_field: True
response_function: "average"
gen_data_file_name: "UpscaledField_0.txt"

observation:
directory: "observations"
file_name: "observations.obs"
data_dir: "obs_data"
reference_param_file: "init_files/ObsField"
reference_field_name: "ObsField"
rel_error: 0.10
min_abs_error: 0.01
# selected_grid_cells:
# - [5, 10, 1]
# - [10, 5, 1]

localisation:
method: "gaussian"

optional:
write_obs_pred_diff_field_file: True
53 changes: 53 additions & 0 deletions tests/jobs/localisation/example_case/example_test_config_D.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# GRDECL format standard RMS origo
settings:
grid_size:
xsize: 7500.0
ysize: 12500.0
zsize: 50.0
use_eclipse_grid_index_origo: False

field:
name: "FIELDPAR"
algorithm: "gstools"
file_format: "GRDECL"
initial_file_name: "init_files/FieldParam"
updated_file_name: "FieldParam"
seed_file: "randomseeds.txt"
variogram: "gaussian"
correlation_range: [3000.0, 2000.0, 2.0]
correlation_azimuth: 45.0
correlation_dip: 0.0
correlation_exponent: 1.9
trend_use: False
trend_params: [ 1.0, -1.0 ]
trend_relstd: 0.15
grid_dimension: [150, 250, 1]
grid_file_name: "GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID"

response:
name: "UPSCALED"
grid_dimension: [15, 25, 1]
upscaled_file_name: "Upscaled"
grid_file_name: "UpscaleGrid.EGRID"
file_format: "GRDECL"
write_upscaled_field: True
response_function: "average"
gen_data_file_name: "UpscaledField_0.txt"

observation:
directory: "observations"
file_name: "observations.obs"
data_dir: "obs_data"
reference_param_file: "init_files/ObsField"
reference_field_name: "ObsField"
rel_error: 0.10
min_abs_error: 0.01
# selected_grid_cells:
# - [5, 10, 1]
# - [10, 5, 1]

localisation:
method: "gaussian"

optional:
write_obs_pred_diff_field_file: True
4 changes: 2 additions & 2 deletions tests/jobs/localisation/example_case/sim_field_case_A.ert
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.roff, <TO>=<RUNPATH>/init_files/ObsField.roff)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)


GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.roff INIT_FILES:init_files/FieldParam.roff MIN:-5.0 MAX:5.0 FORWARD_INIT:True
4 changes: 2 additions & 2 deletions tests/jobs/localisation/example_case/sim_field_case_B.ert
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.GRDECL, <TO>=<RUNPATH>/init_files/ObsField.GRDECL)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)
-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)


GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.GRDECL INIT_FILES:init_files/FieldParam.GRDECL MIN:-5.0 MAX:5.0 FORWARD_INIT:True
4 changes: 2 additions & 2 deletions tests/jobs/localisation/example_case/sim_field_case_C.ert
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.roff, <TO>=<RUNPATH>/init_files/ObsField.roff)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)


GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.roff INIT_FILES:init_files/FieldParam.roff MIN:-5.0 MAX:5.0 FORWARD_INIT:True
4 changes: 2 additions & 2 deletions tests/jobs/localisation/example_case/sim_field_case_D.ert
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.GRDECL, <TO>=<RUNPATH>/init_files/ObsField.GRDECL)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)
-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)


GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.GRDECL INIT_FILES:init_files/FieldParam.GRDECL MIN:-5.0 MAX:5.0 FORWARD_INIT:True
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.roff, <TO>=<RUNPATH>/init_files/ObsField.roff)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)

GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.roff INIT_FILES:init_files/FieldParam.roff MIN:-5.0 MAX:5.0 FORWARD_INIT:True
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.GRDECL, <TO>=<RUNPATH>/init_files/ObsField.GRDECL)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)

GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_ECLIPSE_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.GRDECL INIT_FILES:init_files/FieldParam.GRDECL MIN:-5.0 MAX:5.0 FORWARD_INIT:True
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.roff, <TO>=<RUNPATH>/init_files/ObsField.roff)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)

GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.roff INIT_FILES:init_files/FieldParam.roff MIN:-5.0 MAX:5.0 FORWARD_INIT:True
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=<ITER>)
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/<ENSEMBLE_SEED_FILE>, <TO>=<RUNPATH>/<ENSEMBLE_SEED_FILE>)
-- For QC purpose only
FORWARD_MODEL COPY_FILE(<FROM>=<CONFIG_PATH>/init_files/ObsField.GRDECL, <TO>=<RUNPATH>/init_files/ObsField.GRDECL)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID.EGRID, <LINKNAME>=<RUNPATH>/GRID.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID, <LINKNAME>=<RUNPATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID)
FORWARD_MODEL MAKE_SYMLINK(<TARGET>=<CONFIG_PATH>/UpscaleGrid.EGRID, <LINKNAME>=<RUNPATH>/UpscaleGrid.EGRID)

-- The main forward model simulating gaussian field with trend, and upscale
FORWARD_MODEL SIM_FIELD(<ITERATION>=<ITER>, <REALNUMBER>=<IENS>, <TEST_CONFIG>=<TEST_CONFIG>)

GRID <CONFIG_PATH>/GRID.EGRID -- Necessary for AHM using field parameters
GRID <CONFIG_PATH>/GRID_RMS_STANDARD_GRID_INDEX_ORIGO.EGRID -- Necessary for AHM using field parameters

FIELD FIELDPAR PARAMETER FieldParam.GRDECL INIT_FILES:init_files/FieldParam.GRDECL MIN:-5.0 MAX:5.0 FORWARD_INIT:True

0 comments on commit 6c14e86

Please sign in to comment.