APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
135 stars 163 forks source link

New Soybean Model #2731

Closed hut104 closed 3 years ago

hut104 commented 6 years ago

A new soybean model is to be developed within APSIM Next Generation in collaboration with Iowa State University.

sarahcleary commented 5 years ago

@yashvirchauhan - please raise your question in relation to difference between this new model and APSIM Classic Soybean model within this issue.

yashvirchauhan commented 5 years ago

I would like if the Next gen developers of soybean and chickpea models could enlighten me in what respect the science in the apsim nextgen soybean and chickpea from the APSIM classic models? Thanks.

hut104 commented 5 years ago

Hi, Firstly, note that the NG chickpea and soybean models are not yet released and so the science is not as yet settled. Having said that, much of the basic approach is similar in that we use RUE for photosynthesis, similar approaches for thermal time, etc However the implementations are slightly different and so many parameters have different meanings and so need to be altered. A more significant difference is in the calculation of transpiration - the new models only support penman monteith via the microclimate model (this was optional in apsim classic). The new legume models have a much more mechanistic approach to N fixation and partitioning within the plant. The arbitration rules are therefore also different to APSIM classic (see recent paper by Brown et al on the APSIM NG plant arbitrator). Uptake of soil water is still via KL, and uptake of N follows the approach from APSIM classic. The phenology models are basically the same, but extra stages have been incorporated into the model to match the VR system used in soybean etc.

yashvirchauhan commented 5 years ago

Thanks Neil There are a few additional issues in both chickpea and soybean models that I think that may need to be fixed for the APSIM NextGen. In chickpea I have found solution to poor prediction of various phenological events especially flowering time. Had a brief presentation at the todays reference panel meeting on this aspect. As a new team in DAF has been formed on crop improvement modelling, will be happy to chat with you guys to keep ourselves abreast with the latest developments and contribute to your efforts where you think we could e.g. on chickpea phenology.

sarahcleary commented 5 years ago

@sarchontoulis - FYI

hut104 commented 4 years ago

@sarahcleary This model should now be ready for review. Soterios and I suggest Enli Wang as a potential reviewer given his recent experience in Soybean modelling with a student in China.

sarahcleary commented 4 years ago

@APSIMInitiative/reference-panel - please note that this model is ready for review. @EnliWang - are you willing to review this model? @APSIMInitiative/reference-panel - anyone else that should be nominated as a reviewer?

sarahcleary commented 4 years ago

@yashvirchauhan - I believe this falls within your area of expertise. Would you mind providing a review for this model?

yashvirchauhan commented 4 years ago

Thanks Sarah. Could you please wait until I attend the APSIM week so that I can evalutate it with the soybean data I have.

sarahcleary commented 4 years ago

discussion in the next RP meeting? @yashvirchauhan - maybe you can seek assistance from RP NextGen developers/users?

sarahcleary commented 4 years ago

@EnliWang and @yashvirchauhan - as discussed in today's RP meeting, this model is now ready for review. As you are aware, the review process is now conducted solely via GitHub. You will note the checklist can now be found here: https://www.apsim.info/improvements/submission-of-improvements/ under "What the reviewer will be looking for". You should be able to find all of the modified files here: https://apsimnextgeneration.netlify.com/development/contribute/ If you have any questions, please let me or @peter-devoil know in first instance.

sarahcleary commented 4 years ago

Review by @EnliWang: @hut104 & @sarchontoulis - I have asked Yushan Wu (the former PhD student) to test the model with her data from two sites in China. I have attached a Soybean.rar file, which contains the modified Soybean.apsimx and Observed.xlsx, together with the met files for the two Chinese sites. The Yaan site provides data for 3 cultivars (early-, mid-, late-maturing) in three years (2014-16), while the Heze site for one (different) cultivar in three years (2014-16). The simulations results are not bad, but we needed to twist the AreaLargestLeaf and PotentialHarvestIndex a bit. However, the additions seems to upset the graphs under the ‘Combined Results’. I could not work out why, hope you can find what’s wrong and fix it.

Wang_SoybeanModelReview2020.docx

Soybean-New.pdf

sarahcleary commented 4 years ago

Can't upload the .rar file to GitHub. Any ideas?

hol430 commented 4 years ago

Convert to another format (e.g. .zip). I can do this if you send it to me.

sarahcleary commented 4 years ago

@hol4300 sent, it's 19MB

hol430 commented 4 years ago

Soybean.zip

sarahcleary commented 4 years ago

@yashvirchauhan - are you able provide an update on your review? if you have any issues, please let us know

yashvirchauhan commented 4 years ago

Hi, Have the module developers tested that all the variable that can be reported actually are actually able to output those variables. I could not output flowering and harvesting dates. it says 'Error in report HarvestReport: Invalid report variables found: Soybean.Flowering'. This suggests that each and every variable need to be tested. This is also an issue occasionally experienced in APSIM classic.

hol430 commented 4 years ago

Hi @yashvirchauhan - I'm not sure where your Soybean.Flowering variable came from, but as you've discovered, it's not a valid variable, and I can't see any documentation saying that it is.

If you open the latest version of the soybean test set, the harvest report already contains variables for flowering and harvesting dates, which are [Soybean].Phenology.FloweringDAS and [Soybean].Phenology.MaturityDAS respectively.

yashvirchauhan commented 4 years ago

Thanks, am I missing some component of the model? It did not work for me as you suggested. Probably I will have to drag your example and see how it works. I am new to NextG and hence struggling.

hut104 commented 4 years ago

Hi Yash, Try [Soybean].Phenology.EmergenceDAS [Soybean].Phenology.FloweringDAS [Soybean].Phenology.MaturityDAS


From: Yash Chauhan notifications@github.com Sent: Friday, 29 May 2020 11:47 AM To: APSIMInitiative/ApsimX ApsimX@noreply.github.com Cc: Huth, Neil (A&F, Toowoomba) Neil.Huth@csiro.au; Mention mention@noreply.github.com Subject: Re: [APSIMInitiative/ApsimX] New Soybean Model (#2731)

Hi, Have the module developers tested that all the variable that can be reported actually are actually able to output those variables. I could not output flowering and harvesting dates. it says 'Error in report HarvestReport: Invalid report variables found: Soybean.Flowering'. This suggests that each and every variable need to be tested. This is also an issue occasionally experienced in APSIM classic.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/APSIMInitiative/ApsimX/issues/2731#issuecomment-635709045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2UVWV6IO6K5QOOE3VMTKLRT4H2DANCNFSM4FHZPZRQ.

hol430 commented 4 years ago

Hmm, what went wrong exactly? Can you provide an error message? If you're referring to the above error about Soybean.Flowering, it just means you need to remove Soybean.Flowering from the harvest report. To do this, you can click on the harvest report, go to the variables tab, and remove the line which says Soybean.Flowering.

yashvirchauhan commented 4 years ago

Ok, [Soybean].flowering did not work but as suggested [Soybean].Phenology.FloweringDAS worked fine. I instead of copying typed and added a . between flowering and DAS that caused it to crash. The error it was throwing earlier was 'Error in report HarvestReport: Invalid report variables found:. But I wonder why it could not output that? If it is there, it should generate some output?

hol430 commented 4 years ago

Which version of apsim are you using (it should say at the top of the window)?

As for why you were getting the earlier error about invalid variables - typing in Soybean.Flowering would be just like typing in asdf. Apsim just doesn't understand it, and in that scenario, it will throw a fatal error.

yashvirchauhan commented 4 years ago

Would download the latest and work with that. When it can pick grain weight or crop type from the same source, what prevents it picking flowering or harvesting?

yashvirchauhan commented 4 years ago

Drew, where do I find the test run the soybean test set. Can you provide the link?

hol430 commented 4 years ago

Hi Yash, yep you can find it here. Just click on soybean.apsimx, then click download. You might need to download the .met files too if you don't already have them. Unfortunately I can't see a way to download the whole folder at once though so it might take a bit of clicking...

As for your previous question, the only reason Soybean.Flowering doesn't exist is because no one has added it, presumably because it's already accessible as Soybean.Phenology.FloweringDAS. Generally in next gen there aren't too many variables exposed at the plant level (ie Soybean.X), and instead they're exposed as properties/outputs of the sub-model, in this case phenology.

yashvirchauhan commented 4 years ago

Sorry Drew, can not save the downloaded file. I do not know how I did it first time? It just open a kind of html page.

hol430 commented 4 years ago

Hmm, you might have to do ctrl+s, or right click -> save as, depending on your browser.

sarahcleary commented 4 years ago

@yashvirchauhan - any update with your review of this model?

sarahcleary commented 4 years ago

@yashvirchauhan - any update with your review of this model?

yashvirchauhan commented 4 years ago

Sorry Sarah, Working on it. Will submit the review soon. Yash Chauhan

yashvirchauhan commented 4 years ago

Review of Soybean model in APSIM Next Gen Reviewer Name: Dr Yash Chauhan Does the submission meet the ‘Science Guidelines? Please identify where the submission meets the guidelines and where there are areas for improvement.

Yes. I have tested the model in two environments with two sowing dates each and seems to simulate phenology and yield well. My suggestion is that all released Australian cultivars should be parameterised and included in the list. Could find only Bunya and Soya 971 for which I evaluated the model performance. There should be a way of identifying Australian cultivars or cultivars or other origin.

How do you rate the importance of this submission? Major importance, Important, Limited value.

Major importance. Worldwide soybean cultivation is expanding at a faster rate than any other legume and since soybean is increasingly being introduced in new areas, applications of model will be very valuable in those areas in addition to applications in the existing areas.

How do you rate the quality of this submission? Excellent, Strong, Competent, Weak Excellent.

Is the submission adequately referenced? Yes. What is your overall recommendation? Ready for incorporation into APSIM, ready after minor changes, requires major changes and rereview, unsuitable for incorporation.

The model is ready for incorporation into APSIM NextG. I suggest no major or minor changes except for more Australian released cultivars to be parameterised and included and some way of identifying them (e.g. names in capital) or grouping them separately should be found.

Keith-Pembleton commented 4 years ago

Based on the two reviews of this model I suggest it is ready for release.

peter-devoil commented 4 years ago

No objection from me.

sarahcleary commented 4 years ago

@APSIMInitiative/reference-panel - can you please confirm this is ready for release? Require sign off from CSIRO, ISU, AgR

EnliWang commented 4 years ago

A yes from me. I reviewed the soybean model.

yashvirchauhan commented 4 years ago

A yes from me as well as suggested in my review.

sno036 commented 4 years ago

Sorry - it is the documentation police here! The "Descriptions" (Dean can assist with the detail of what/where is actually needed) needs the units of the properties inserted so that they show up on the UI for users and in the documentation at https://apsimdev.apsim.info/ApsimX/Releases/2020.10.16.5740/Soybean.description.pdf. This needs to be done before acceptance.

In the documentation, is "5.3 TimeOfSowing" the sensibility analysis? If so then suggest that another location be added where, based on physiological knowledge, a different pattern would be expected. I do want to see this before it is accepted as this type of thing has really exposed some issues in the past and is not a lot of work.

The example is minimalistic but not out of step with most other models. This can be improved over time.

jbrider commented 4 years ago

@hut104 Happy with the model but ran into a few minor graph issues (other than the password protected data).

The online documentation is missing most of the Model description section (Section 3). Something must have been toggled recently as Enli's review mentions sections not in the current online documentation. Or maybe it didn't get generated correctly.

I had a thorough look through the graphs - I have assumed the missing observed data was meant to be there if you added the series for it.

Australia->Gatton->Graphs->Biomass->HarvestIndex is blank. Australia->Gatton->Graphs->Canopy->SpecificLeafArea is showing observed but not predicted. Australia->Katherine->Katherine1988->Canopy->LAI is not showing observed data. Australia->Kununurra->Kununurra1980->Biomass->BiomassN is not showing observed data. Australia->Kununurra->Kununurra1980->Canopy->LAI is not showing observed data. Australia->Kununurra->Kununurra1979->Biomass->BiomassN is not showing observed data. China->Heze->Graphs->Biomass->LeafLiveWt is not showing observed data China->Heze->Graphs->Biomass->StemWt is not showing observed data China->Heze->Graphs->Biomass->PodWt is not showing observed data China->Heze->Graphs->Biomass->HarvestIndex is blank

Combined Results ->Evapotranspiration is missing table 'PredictedObservedET'

sarahcleary commented 3 years ago

@hut104 - this is now with you?

hut104 commented 3 years ago

@APSIMInitiative/reference-panel

This model was submitted for review on 5 March with suggested reviewers. The review process completing on October 15 with further input from the RP after this date with more suggestions. It is worth noting that funding for this development within CSIRO was provided in the previous financial year. I am now funded for work on other crops with contractual milestones in the coming months. I suggest that review processes should take into account working committments of individual developers.

It may also be worthwile thinking about the best way to capture feedback. In this case the feedback was provided in a mix of pdf, docx, github comments, etc.

There is great feedback in the reviews and input from the reference panel. I have summarised it below. I feel that some of this is directly related to soybean model development and some are more generic requirements of APSIM. I suggest that we finalise the work directly related to soybean, and that the other work be assigned to various developers for addressing. Whilst useful and important, the many general improvements will require significant time. Furthermore, many of these changes would be best addressed in a software sprint and some would best be addressed in a refactoring of classes to either remove the problem to provide a more general solution. I will seek to find somebody who can take on the soybean changes. I suggest the RP consider how to resource the general work.

Issues related purely to the soybean model

Reviewer one suggested some changes specific to the soybean model.

General APSIM Improvements

Reviewer 1 also highlighted some issues that are common for other crops, or might impact on the documentation for other/all crops.

Members of the reference panel have also suggested some changes

HamishBrownPFR commented 3 years ago

There has been mention in the past of a sprint focused on getting auto doc tidied up. We need to get onto this

jbrider commented 3 years ago

@hut104 The reference panel agrees with your proposal that the elements that are general can be assigned to someone else. Your responses to the reviewers and reference panel members have been accepted. There were a few points that you agreed needed to be changed within the soybean model - once those are complete can you let us know and then we will be able to recommend the model for release.

sarahcleary commented 3 years ago

I note the outstanding issue as per https://github.com/APSIMInitiative/ReferencePanel/issues/79 -- Outstanding issue around the lack of units. Model can't proceed to release until issue is resolved or there is a plan/issue to resolve. @sno036 to start an issue/discuss with @hut104 and report back. @sno036/@hut104 - has this been resolved?

hut104 commented 3 years ago

Hi all, In response to https://github.com/APSIMInitiative/ApsimX/issues/2731#issuecomment-737664882, we have spent time as part of a documentation sprint to fix generic issues with Autodoc. We have also updated units in the soybean model where we could. Our collaborators from ISU have also added text to documentation memos in response to questions from the reviewers. Code has been updated to address other issues (see above). Can we now 1) move the soybean model into a resource, 2) move the example to the examples folder, and 3) Move the validation set to the test folder, so that the model can be released?

jbrider commented 3 years ago

Thanks @hut104. @hol353 The Soybean model can be moved into release.