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

Change how generate_maps (grid3d_aggregate_maps.py) handles undefined values #73

Open
vegardkv opened this issue Jan 23, 2023 · 0 comments

Comments

@vegardkv
Copy link
Contributor

Currently, generate_maps (of grid3d_aggregate_maps.py), can ignore cells with properties below a certain threshold. The primary purpose of this is speed-up. However, this also affects the result: areas with no cell properties above this threshold is handled in the same manner as areas outside the extent of the grid. This can be confusing and also leads to issues when doing surface-surface operations with xtgeo (differences maps or statistics).

The default behavior should be the same for this function as it is for the functions under avghc (to the extent reasonable). One option could be to add an optional fill value to be used for undefined values, and perform this as a post-processing step before returning results in the generate_maps function. This should be relatively easy to implement, however it has the limitation that this value will also be used outside the grid extents.

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