-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create function to access crop varietal parameters through define_hisafe() #146
Comments
@Guillaume-Blanchet this is definitely a need for hisafer. I think I was lazy in not including a function like this along with the other table definition functions because I just didn't have a need to modify the variety parameters like this. I've created a new function, When using these functions, there are two things that are critical to remember: (1) In order to define multiple simulations using these table functions, you must call the the table function multiple times. That is, if, for example, you want to define three simulations in an experiment with different values of
Each call to
Of course, rather than a
(2) Any parameters passed to |
Wow ! Thanks for your reactivity Kevin ! 👍 |
Just let me know if you need help utilizing this within an optimization algorithm. |
Hey @kevinwolz ,
Not sure about the best solution regarding this, but one idea would be to add one additional argument to explicitly name the plant file we want to modify. |
Please share your code. Let me think about if/how renaming the table might work... |
Yep. Here is the code I tried.
Template could changed to "restinclieres_monocrop_A2", and performed over a year with winter pea (2014-2015 or 2018-2019). Tell me if you want a full reprex folder. |
Yes, please share the folder. You can just zip it and attach it here. |
Hi @kevinwolz , |
I took one look at your template folder and realized, in horror, what's going on. I will explain more later, but for right now to fix it all you need to do is remove all the .plt files from your template folder except the ONE that you want to use. The function will then pull from that one file. |
Hi Kevin,
I dug more into the parametrization of the Pea plant file according to field data.
You can have a look to the draft of a modelling report I am preparing here:
https://guillaume-blanchet.github.io/hisafe-winter-pea-calibration-restinclieres/calibration-WinterPea.html
https://guillaume-blanchet.github.io/hisafe-winter-pea-calibration-restinclieres/calibration-WinterPea-sim-outputs_visualization.html
I did not find any way to access to the varietal parameter through define_hisafe().
The way I worked so far was to prepare different "varieties" with a range of values for a given parameter. However, it is not very efficient as I had to prepare files by hand.
Do you think it'd be possible to access to varietal parameters with a function similar to layer_params() ; root_init_params() ; tree_init_params() ?
I would like such function to perform optimization of parameters with an algorithm, like a Nelder-Mead Simplex algorithm, generally used by the STICS team to optimize varietal parameters.
Looking at the code of those functions, they seems pretty similar, so I guess it should not be to complicated, but you have probably a better overview on this. I can work on this, but if you had few tips for guiding me, it'd be appreciated !
Cheers,
Guillaume
The text was updated successfully, but these errors were encountered: