Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading non-complaint grdecl files #963

Open
alin256 opened this issue Apr 9, 2024 · 0 comments
Open

Reading non-complaint grdecl files #963

alin256 opened this issue Apr 9, 2024 · 0 comments

Comments

@alin256
Copy link

alin256 commented Apr 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant