Skip to content

Reading non-complaint grdecl files #963

@alin256

Description

@alin256

My geologist gave me a .grdecl file produced by RMS which contains a property ConnectedChannels_only.

I am trying to read it with

with cwrap.open(file_path) as f:
    property = resdata.resfile.ResdataKW.read_grdecl(f, "ConnectedChannels_only", rd_type=ResDataType.RD_INT)

This obviously fails the check from rd_kw.py

        if kw:
            if len(kw) > 8:
                raise TypeError(
                    "Sorry keyword:%s is too long, must be eight characters or less."
                    % kw
                )

I am wondering if it would be useful to reduce the strictness of the check with an optional flag to make the library useful for such .grdecl files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions