-
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
upload the original code of PG model #276
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All global variables have been removed. Please review the revisions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DanyangYu, thank you very much for your efforts on the PG model. I left some suggestions for your reference. After you resolve all conversations, I'll create a new execute file for this branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Crystal-szj @MostafaGomaa93 Hi, Zengjing and Mostafa. I’ve added some code to bin_to_csv.m, but there are conflicts preventing the merge. I’ve tried several times to resolve the issue but haven’t been successful. Do you have any suggestions on how to fix this?
Hi @DanyangYu, I resolved the conflict. But the style check has not passed yet. Could you
You can also run the |
Hi @DanyangYu, I noticed you added both There are two options to address this: |
fprintf(strcat('\n KT = ', num2str(KT), ' \r')); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fprintf(strcat('\n KT = ', num2str(KT), ' \r')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use print statements in the main loop or any other loop of the model. If users run the model for long time series, it could create a huge log output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Sarah. Thanks for your comments. I just want to test how many steps are simulated. I will delete it in the final version.
Hi @DanyangYu I didn't review your changes yet, but I have a major question. Did you add WOFOST in such a way to be an option for the user to activate or deactivate? |
Hi Mostafa, yes, you are right. I add an option in 'input_data.xlsx' file |
Okay, in an earlier discussion with @SarahAlidoost. She suggested that any new configuration should be done in the I am not sure if you have time to shift your code by activating/deactivating WOFOST to be in BMI mode and using the If not, then it is okay, you can keep everything as it is, but we must update the documentation, so the user can know the activation/deactivation of WOFSOT is done through the |
The most important checks we need to do (as suggested by @SarahAlidoost) are the following:
@DanyangYu, Can you please check your edits align with those checks above? |
Hi @MostafaGomaa93 In my opinion, Danyan didn't couple the whole WOFOST model into the STEMMUS-SCOPE, but only the crop/plant growth part. And all the codes he used were rewritten in Matlab (from Fortran). @DanyangYu Feel free to correct me If I'm wrong. |
Description
fix #275
Checklist
linter, below the pull request, are
successful (green).
Unreleased
.