Closed dylanbeaudette closed 2 years ago
SDA/SQL syntax error corrected in 885e14ac10fc1838b09d43a5bec49620b4b80900. Still need to figure out long-term interface to these data.
Related issue in soilDB: https://github.com/ncss-tech/soilDB/issues/60
Note that soilDB::fetchOSD()
returns two of the four summaries.
Deprecated and slated for removal in the next major release. Need to add the surface shape morph to fetchOSD.
These functions are currently broken, due to a minor SQL syntax error.
SoilWeb has pre-cached versions of these data available for hillslope, geomorphic component, and mountain slope. A couple of options:
fetchOSD()
?soilDB::get_component_from_SDA
.Major differences in implementation between SoilWeb cached proportions and SDA/R on-the-fly:
WHERE UPPER(compname) IN ", in.statement, "
doesn't properly utilize existing indexesMore importantly: should proportions be based on acres-mapped or number of occurrences? Incorporating acres-mapped is much more efficiently done in a big batch (e.g. SoilWeb version), but may be possible with SDA if done one series at a time.
Once this is sorted out, we can start making figures like this: