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 column with total oil/gas volumes to VolumetricAnalysis #1293

Merged
merged 1 commit into from
May 21, 2024

Conversation

tnatt
Copy link
Collaborator

@tnatt tnatt commented May 21, 2024

Add automatic calculation of STOIIP_TOTAL and GIIP_TOTAL columns to VolumetricAnalysis.

Drogon example:
image

Also included a bugfix on the logic for evaluating if the data is compatible for a water fall plot

@tnatt tnatt requested a review from rnyb May 21, 2024 09:15
@tnatt tnatt self-assigned this May 21, 2024
Copy link
Collaborator

@rnyb rnyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. Some micro comments only.
Could there be a use case to also have the total column included when there is only one of the stoiip columns is present?

# create HC_TOTAL columns
if "STOIIP" in self._dataframe and "ASSOCIATEDOIL" in self._dataframe:
self._dataframe["STOIIP_TOTAL"] = self._dataframe["STOIIP"].fillna(
0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the fillna(0) split needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is due to e.g. the STOIIP being nan for FLUID_ZONE != "oil".. so need to fill it before adding them together otherwise the resulting STOIIP_TOTAL is also nan 🙂

) + self._dataframe["ASSOCIATEDOIL"].fillna(0)
if "GIIP" in self._dataframe and "ASSOCIATEDGAS" in self._dataframe:
self._dataframe["GIIP_TOTAL"] = self._dataframe["GIIP"].fillna(
0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@tnatt tnatt merged commit 2dcbed9 into equinor:master May 21, 2024
6 checks passed
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.

None yet

2 participants