Skip to content
Snippets Groups Projects
Commit d7a4f6f5 authored by Lemaire Louis's avatar Lemaire Louis
Browse files

[fix] clip minimal water content to zero

Was clipped to wilting point, which underestimates drought
parent 68a48772
No related branches found
No related tags found
2 merge requests!32[feature] New module sky_model with Reinhart sky discretization scheme, water balance correction in GrasSim,!26Resolve "[fix] GrasSim: clip soil water content min value to zero"
......@@ -47,7 +47,7 @@ class Soil():
self.water -= self.water_leached
# water content limits
self.water = self.water.clip(self.wilting_point, self.water_saturation)
self.water = self.water.clip(0, self.water_saturation)
# Water (%)
self.W = (self.water - self.wilting_point) / (self.water_capacity - self.wilting_point)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment