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

Fix PTF for estimation of residual water content #300

Merged
merged 11 commits into from
Nov 4, 2024
Merged

Fix PTF for estimation of residual water content #300

merged 11 commits into from
Nov 4, 2024

Conversation

verseve
Copy link
Contributor

@verseve verseve commented Oct 13, 2024

Issue addressed

Fixes #285

Explanation

The PTF used from Tóth et al. (2015) estimates the water content at wilting point which can result in an overestimation of the residual water content. This PTF has been replaced by a PTF for residual water content from Rawls and Brakensiek (1989).

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Tests & pre-commit hooks pass
  • Updated documentation if needed

The PTF used from Tóth et al. (2015) estimates the water content at wilting point which can result in an overestimation of the residual water content. This PTF is replaced by a PTF from Rawls and Brakensiek (1989).
@verseve
Copy link
Contributor Author

verseve commented Oct 13, 2024

Tests fail, probably caused by this issue.

@verseve verseve self-assigned this Oct 22, 2024
@verseve verseve requested a review from JoostBuitink October 22, 2024 12:04
@verseve verseve marked this pull request as ready for review October 22, 2024 12:05
@verseve verseve requested a review from shartgring October 23, 2024 12:03
Copy link
Collaborator

@shartgring shartgring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Willem,

I checked the paper and indeed the equation form Toth refers to the wilting point. After some thought, I do think that it might be worth leaving the PTF of Toth in the code and rename it to thetawp_toth to indicate that it refers to the wilting point.

Similar to ksatver, we can give the user the option to select the corresponding PTF for thetar in setup_soilmaps. Where the default option will points to thetar_rawls_brakensiek. And include in the docs that using the wilting point for theta_r only typically works for sandy soils.

It might not be used (neither recommended) but I do think it is nice to prevent breaking changes and also improve transparancy by showing the user that this PTF is involved in an explicit way. This may also apply to thetas now that I am inspecting the code a bit more

So summarized I would suggest to leave the PTF of Toth in, make Rawls & Brakensiek the default and include a ptf_thetar (and ptf_thetas?) parameter in setup_soilmaps. What do you think? I could also do this myself as I am nos suggesting a bit more than some small changes to the code

@shartgring
Copy link
Collaborator

Also saw this chapter in a book: https://www.researchgate.net/file.PostFileLoader.html?id=588ae3ceed99e19c704b6243&assetKey=AS%3A455022786945024%401485497294074

Where they state that:

"The wilting point is an excellent approximation of the residual water content of very coarse�textured (sandy) soils. However, the wilting point at pF ¼ 4.2 likely over-estimates the residual water content of fine-textured (clay) soils where still lots of bound water may be present that collectively (because of the large surface area) may still yield a reasonable liquid flow rate." (pg. 159)

@verseve
Copy link
Contributor Author

verseve commented Nov 4, 2024

Hi Willem,

I checked the paper and indeed the equation form Toth refers to the wilting point. After some thought, I do think that it might be worth leaving the PTF of Toth in the code and rename it to thetawp_toth to indicate that it refers to the wilting point.

Hi @shartgring , "to keep it simple" I think it is best to remove this function from the code. I agree, for very coarse textured soils the wilting point is a good approximation for the residual water content. However, I think it will be difficult to decide (for a user) when to use this function: it could be based on the sand percentage, but this check is then required for multiple soil layers (e.g. SoilGrids provides data for 7 soil depths), and for one location you may need then both PTFs depending on the sand percentage.

Copy link
Collaborator

@shartgring shartgring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your reply Willem. I think you made a valid point so I'll approve the review

@verseve verseve merged commit 08ec535 into main Nov 4, 2024
4 checks passed
@hboisgon hboisgon deleted the ptf_thetar branch December 5, 2024 06:49
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.

Wrong equation for residual moisture content seems to be used
3 participants