Skip to content

Conversation

@jjmaynard
Copy link
Collaborator

Fix for issue #292

Changes made to getTexture function:

  • Return None instead of 'Unknown' for invalid/NaN inputs
  • Fix Loamy sand condition to use silt + 2.0*clay < 30
  • Add missing Silty clay loam texture class
  • Fix Silty clay condition to require silt >= 40%
  • Fix Clay condition to require sand <= 45% and silt < 40%
  • Ensures texture classification matches USDA standards

- Return None instead of 'Unknown' for invalid/NaN inputs
- Fix Loamy sand condition to use silt + 2.0*clay < 30
- Add missing Silty clay loam texture class
- Fix Silty clay condition to require silt >= 40%
- Fix Clay condition to require sand <= 45% and silt < 40%
- Ensures texture classification matches USDA standards
Removed unnecessary blank line in the get soil components function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants