Skip to content

Restore Area-Weighted Sampling for SSURGO #3609

Description

@dlebauer

Bug Description

Current sampling in extract_soil_gssurgo() uses counts, not true area-weighted aggregation. This can bias soil property estimates, especially for heterogeneous polygons.

Solution

  • Use SoilDB package
  • Not sure what of the following is handled by that package, but sampling should:
    • Request SSURGO polygon geometries (GML) from WFS for the sampling area.
    • Intersect polygons with sample buffers e.g. using sf or terra.
    • Compute area fractions
    • Aggregate soil properties using these area weights.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions