equinor / fmu-dataio

FMU data standard and data export with rich metadata in the FMU context
https://fmu-dataio.readthedocs.io/en/latest/
Apache License 2.0
10 stars 15 forks source link

Add `export_fault_lines()` one liner export #763

Open mferrera opened 3 months ago

mferrera commented 3 months ago

Currently fault polygons are exported from RMS projects in the following way:

Simplification

A possible one-liner export could instead look something like this:

for category_name in HORIZON_NAMES:
    export_fault_lines(
        project: Any, 
        category_name: str,
        vertical_domain: str = "depth",  # or "time"
        config_path: str | Path = "../../fmuconfig/output/global_variables.yml",
        classification: str | None = None, # Actual default from config
    )

This means we will provide defaults for tagname, name, and workflow (and anything else not listed). This provides a good substrate to accomplish standardization and guide assets to conforming to a single way of doing it, while also allowing an escape hatch of using ExportData directly to deviate from them.

TODO

Tasks

mferrera commented 3 months ago

Consider naming this fault_lines over fault_polygons to prefer the data product over the data type.

mferrera commented 2 months ago

Sept 25 2024 - updated root comment with refinement from discussions and removing the list of unanswered questions as we have now mostly answered them. This is now approaching "final".