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

Add example json volumetrics #93

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

berland
Copy link
Collaborator

@berland berland commented Dec 16, 2020

The table in the json file in this PR can be parsed into a DataFrame like this:

from pathlib import Path
import json
import pandas as pd
js = json.loads(Path('1_geogrid_vol_oil_1.json').read_text())
df = pd.DataFrame.from_records(js["table"]["data"], columns=js["table"]["columns"])

This PR is an example, and not for merging.

The table in this file can be parsed into a DataFrame like this::

  js = json.loads(Path('1_geogrid_vol_oil_1.json').read_text())
  df = pd.DataFrame.from_records(js["table"]["data"], columns=js["table"]["columns"])
@berland berland marked this pull request as draft December 16, 2020 09:55
@jcrivenaes
Copy link
Collaborator

What is the use case?

@berland
Copy link
Collaborator Author

berland commented Dec 16, 2020

What is the use case?

This is a potentially way-too-late suggestion for Emerson on how to export RMS volumetrics and other data, as both txt files and xlsx export of different RMS-data requires writing dedicated parsers.

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

Successfully merging this pull request may close these issues.

2 participants