For developers
sim2sumo couples together three packages often used in the FMU sphere.
fmu-dataio (docs) the FMU package for exporting data, with rich metadata, out of FMU workflows
res2df (docs), package used for extracting results from reservoir simulator runs. Not strictly tied down to FMU, but often used in this domain
fmu.sumo.uploader (repo), package that uploads files exported to disc with metadata to Sumo
The package makes available export of all datatypes that you can export with
res2df, and uploads these results to Sumo. It is part of komodo and can
be accessed from the command line with sim2sumo, or from ert with the
SIM2SUMO ERT forward model.
In its simplest form it needs no extra configuration settings, but comes
pre-configured to extract certain datatypes. See the supported datatypes
section.
Using sim2sumo in scripts
Exporting data from eclipse with metadata
from fmu.sumo.utilities.sim2sumo as s2s
DATAFILE = "eclipse/model/2_REEK-0.DATA"
CONFIG_PATH = "fmuconfig/output/global_variables.yml"
SUBMODULE = "summary"
s2s.upload_with_config(CONFIG_PATH, DATAFILE, SUBMODULE, "prod")
The intention of sim2sumo is to be run as an ert FORWARD_MODEL.
The following environment variables need to be set if sim2sumo is not run as part of an ert FORWARD_MODEL:
_ERT_EXPERIMENT_ID
_ERT_RUNPATH
_ERT_SIMULATION_MODE