Closed dylanbeaudette closed 3 years ago
I haven't tried to test this fix yet, but it seems like it would work fine.
It appears that this is the result of generalizing of the the REGEX I did in https://github.com/ncss-tech/SoilKnowledgeBase/commit/38264d7b5d6852b8f2e793f800a7d188c1dbe001.
I think there is nothing wrong with proposed fix removing first line when it matches the horizon pattern... but considering that allowing "-"
in lieu of "to"
is non-standard--perhaps we should be flagging those OSDs as they should be using"to"
between top and bottom depths in horizon narratives.
OK, thanks. I'm working on some new code that will find specific problems in the OSDs for a more detailed "TODO" list sent to RO staff. I like your idea to include the use of one or more '-' as something to fix. I've seen some cases where there are 1, 2, 3, and even 5 '-' used to delimit depths.
As far as I can tell, there is a lot of support among SRSS to fix these kind of errors. A more polished report might make the process simpler.
There are a few cases like in the MENDEL OSD, where a spurious horizon is detected in the first line of the TYPICAL PEDON section.
Proposed fix, pending some more testing.