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
try to make functions robust to overlapping horizons #296
Comments
Can you elaborate on what you think is needed for As discussed in #197 (where the |
Still working on the full write-up + examples. In short:
I was exploring some ways in which More context and examples to follow. |
I don't think having byhz=TRUE report overlap would be wise, but I may not understand what output you are expecting. |
Note that I agreed with that in bullet point 3 above-- you are correct that I have no plans to tinker any further with |
Forgot to tag this issue in c80b0d0, which toggles |
Simple example of new library(aqp)
## two overlapping horizons
z <- data.frame(
id = 'SPC',
top = c(0, 25, 25, 50, 75, 100, 100),
bottom = c(25, 50, 50, 75, 100, 125, 125)
)
depths(z) <- id ~ top + bottom
z$.overlapFlag <- flagOverlappingHz(z)
plotSPC(z, color = '.overlapFlag') |
Either adapt or fail gracefully when a profile contains overlapping horizons.
There are several kinds of horizon overlap:
There is no way to judge intent, but we can differentiate perfect vs. partial overlap.
A proper weighted average or dominant condition requires either assumption of equal contribution (50% B and 50% E) or proportionality.
Affected functions (so far):
checkHzDepthLogic(..., byhz = TRUE)
(returnNA
in theoverlapOrGap
column)fillHzGaps()
(this is currently the worst offender)dice()
(due to ``fillHzGaps()`)plotSPC()
(can't fix here) this will require specific changes and a new issueThe text was updated successfully, but these errors were encountered: