-
Notifications
You must be signed in to change notification settings - Fork 6
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
Change thickness of soil layers from outside the code #241
Comments
Hi @MostafaGomaa93, Thanks for opening this issue. relates #237 |
lets create a csv file to store the soil layer information and add it to the repository under a new folder"data" (perhaps this can be moved to a zenodo entry). |
@MostafaGomaa93 @SarahAlidoost @Crystal-szj This sounds tangible to me. One would like to have a more 'generic'/'flexible' Dtrmn_Z, so the layer thickness as well as the total depth can be defined by the end-user via configure file, or a csv file. In my opinion, csv file can do, but then it is then again creating additional file, on top of the config file, so question here: One principle should be followed. The top layer should be sufficiently fine (e.g., 1mm-5mm, for the top 1cm or so), and then increase the thickness in an exponential manner, which is usually an optimal combination between the number of layers and the need for an accurate numerical solution of STEMMUS. |
Right, but the current configuration file is a |
A new branch with a new pull request is pushed to
|
The thickness of the soil layers is calculated in the
Dtrmn_Z
function. The calculations are fixed (first 1-3 layers with thickness = 1 cm, next 4-14 layers with thickness = 2 cm, ...... and from layer 42-end, thickness is 20 cm).I was thinking of an option to import the layers' thickness from an external input file (e.g. txt file) instead of hardcoding them in the code. This will allow for some flexibility, which is highly needed when we have a deeper soil profile (e.g. 10 or 20 m), so to increase a bit the layers' thickness (especially for deeper layers) and consequently minimize the running time.
@yijianzeng, what do you think? If agreed, I can discuss further with @SarahAlidoost about the best input option to use (txt, netcdf, whatever) and then we can modify the
Dtrmn_Z
function. We can keep theDtrmn_Z
function as default and use the external input as an option if the user needsThe text was updated successfully, but these errors were encountered: