The build_global_config_stratigraphy function is responsible for converting mappings from .fmu into the legacy config.stratigraphy format used by fmu-dataio.
It works by marking all horizons and zones mapped to SMDA as stratigraphic=True. All remaining horizons and zones defined in .fmu under config.rms are set to stratigraphic=False.
The challenge is that stratigraphic=False currently covers two different cases:
- The horizon/zone has explicitly been marked as unmappable by the user.
- The horizon/zone has not yet been mapped.
Because these cases can't be distinguished, fmu-dataio cannot raise an error or warning when users forget to map a horizon or zone (as it previously did). As a result, data that could and should be mapped to SMDA may silently end up with stratigraphic=False.
Not sure how and where to best solve this, or even if we want to solve this... but we should at least have a way to clearly indicate to users that some horizons or zones have not yet been mapped, either to SMDA or as explicitly unmappable. Right now it is only the checklist in the GUI that will indicate it.
Discussions needed 🙂
The
build_global_config_stratigraphyfunction is responsible for converting mappings from.fmuinto the legacyconfig.stratigraphyformat used byfmu-dataio.It works by marking all horizons and zones mapped to SMDA as
stratigraphic=True.All remaining horizons and zones defined in.fmuunderconfig.rmsare set tostratigraphic=False.The challenge is that
stratigraphic=Falsecurrently covers two different cases:Because these cases can't be distinguished,
fmu-dataiocannot raise an error or warning when users forget to map a horizon or zone (as it previously did). As a result, data that could and should be mapped to SMDA may silently end up withstratigraphic=False.Not sure how and where to best solve this, or even if we want to solve this... but we should at least have a way to clearly indicate to users that some horizons or zones have not yet been mapped, either to SMDA or as explicitly unmappable. Right now it is only the checklist in the GUI that will indicate it.
Discussions needed 🙂