Skip to content
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

Leem is not the same as silt #188

Open
JobdePater opened this issue Oct 6, 2023 · 2 comments
Open

Leem is not the same as silt #188

JobdePater opened this issue Oct 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@JobdePater
Copy link
Contributor

For the soil workability A_SILT_MI is used. Is that correct? According to Locher and Backer leem = lutum + silt

https://github.com/AgroCares/Open-Bodem-Index-Calculator/blob/7b799211c348c3cd15e7544cec5cc36c627fc171/R/workability.R#L92C35-L92C35

@BrentWHR
Copy link
Contributor

BrentWHR commented Oct 6, 2023

Do I understand correctly that you are wondering whether:

    # sandy soils with variable silt content    
    dt[soiltype.m == 'zand' & A_SILT_MI < 10, c(cols) := list(45,35)]
    dt[soiltype.m == 'zand' & A_SILT_MI >= 10 & A_SILT_MI < 20, c(cols) := list(55,30)]
    dt[soiltype.m == 'zand' & A_SILT_MI >= 20, c(cols) := list(60,30)]

should be changed to:

    # sandy soils with variable silt content    
    dt[soiltype.m == 'zand' & A_SILT_MI + A_CLAY_MI < 10, c(cols) := list(45,35)]
    dt[soiltype.m == 'zand' & A_SILT_MI + A_CLAY_MI >= 10 & A_SILT_MI+ A_CLAY_MI < 20, c(cols) := list(55,30)]
    dt[soiltype.m == 'zand' & A_SILT_MI + A_CLAY_MI >= 20, c(cols) := list(60,30)]

?

@JobdePater
Copy link
Contributor Author

yes indeed. That will result in higher depths.

you forgot 1 in the second line:

dt[soiltype.m == 'zand' & A_SILT_MI + A_CLAY_MI >= 10 & A_SILT_MI + A_CLAY_MI < 20, c(cols) := list(55,30)]

@BrentWHR BrentWHR added the bug Something isn't working label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants