-
Notifications
You must be signed in to change notification settings - Fork 19
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
get_chorizon_from_SDA() returning duplicate horizons #348
Comments
It appears that the issue here is that after filtering chtexturegrp to just representative values, chtexture table gets right joined. In the case of these "duplicate" horizons they are stratified textures (i.e. SR-SL CL) that are representative so it is technically valid to have multiple entries, including SL and CL. There are certainly more contrasting stratified textures out there. I think the intent is to return I suppose we could concatenate As far as combination of arguments having no effect despite the name |
OK, thanks for checking. I agree that the data in question and 1:many relationships are reasonable. This may be more of an aqp issue, or a reporting issue for the parent function Adding a new argument to flatten multiple textures could lead to even more complexity in an already complex function. Open to ideas on how to avoid unexpected outcomes... |
In general the reporting that the The aqp PR for collapseHz() would be a way for folks to address this type of overlap due to join issues in post-processing. I think it would not be that difficult to concatenate texcl and lieutex from chtexture table for final chorizon result, and I think this should be the default behavior. It wouldn't be that big of a deal to add an argument to get the old behavior--if anyone thinks that should be retained. |
Thanks. I'll put some time in later today and tomorrow on a more informative message to the user. I'd also like to try out the texture-concatonating solution you've suggested. I suspect that most of the time that kind of "flattening" would be helpful. Still--walking the line of preserving the original intent of the data AND supporting robust analysis / visualization is a challenge. I do like the idea of having a general purpose "horizon flattening" method like |
I just noticed that
fetchSDA()
will sometimes return duplicate horizons, probably due to a join with a child table having >1 record per genetic horizon. The following warning supports that:I would guess that it is the join to
chtexturegrp
and/orchtexture
tables. I'd suggest converting rows → single delimited list to account for multiple textures. It is wild to think that the affected component has both cl and sl textures in the same horizon.Previous, probably unrelated issues:
Example.
The text was updated successfully, but these errors were encountered: