-
Notifications
You must be signed in to change notification settings - Fork 14
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
SoilProfileCollection minimum requirements and validity checks #137
Comments
We have two functions for checking and filtering SPCs for validity constraints as they pertain to horizon data.
I think some of which historically would have precluded creation of SPC in the first place. This hard requirement has been relaxed for as long as I have been using these packages.
|
Thanks for the reminder, I had forgotten entirely about those functions. You are correct, the original SPC validity checks would have stopped creation in the presence of:
I relaxed all of these checks after we began importing data from NASIS via I'll review these validation functions and think some more about it. |
Expanding on the above functions that focus on horizon-level validity [within profiles of a collection], the following new function in aqp/aqpdf branch Currently this logic DOES rely on the historic assumption that profile IDs in site are unique and match the levels of profile IDs found in horizon. Any deviation from that results in one or more "integrity check" failures. It is imminently achievable (though, probably difficult to work the bugs out) to provide site indexes in |
I think we have agreed, and many functions rely on the the authoritative source being It makes more sense to represent sites without horizons with a horizon that has depths missing. Conceptually this recognizes there is a soil being represented, but all information about the layers of that soil is missing. This is easier to account for across all functions than the possibility of sites existing with no corresponding horizon records at all--which would be difficult and error prone, if it is even possible with a "horizon-first" approach to creating SPCs. There are a variety of methods now available for finding and fixing invalid horizon data--but all rely on the ability to have NA/missing depths, gaps, overlaps, in a SPC object. Not every function needs to be able to use invalid data, but the possibility should either be handled or error informatively. |
What constitutes the minimum data required to create a valid
SoilProfieCollection
?Should all functions attempt to deal with problematic (NA horizon depths) data, or should some functions require clean data so that code complexity is minimized? In other words, how can we strike a reasonable balance between flexibility and simplicity?
Major Tasks
profile_id
? It is currently@horizons
but this may be problematic for the proposed horizon-less SPC members [test horizon-less members of an SPC #134].The text was updated successfully, but these errors were encountered: