Skip to content
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

WIP: Improvements in SUBSTOR-Potato model #421

Draft
wants to merge 73 commits into
base: develop
Choose a base branch
from

Conversation

khan004
Copy link

@khan004 khan004 commented Jun 9, 2024

  • Introduced and compiled a Beta thermal time sub-routine in the SUBSTOR-Potato.
  • Introduced and compiled a sub-routine into SUBSTOR-Potato identifying the start of the linear phase of tuber bulking and the attainment of physiological maturity of potato.

NOTE: This is a work in progress and requires cleanup.

PT_OPGROW contols the output stage of simulation and write results
to the output file. Since we are interested in storing the DTT value
as well, pass it as an argument to the PT_OPGROW subroutine.
Use the format F4.2 for DTT output to the file which means it is a
4 digit floating point number and there are 2 digits after the
decimal. Also some of the calls to PT_OPGROW were missing DTT in the
subroutine argument resulting in crashes.
Break the line down into less than 72 characters wide to fix compilation error. See the link https://stackoverflow.com/a/1947394
The value of CUMDTT was not being passed as an argument at
the PT_OPGROW call site.
The DAYL information is stored in the WeatherType variable.
Add changes to enable passing the DAYL data from the weather
variable to the PT_BTHTIME subroutine.

Also mapped the DSSAT's ISTAGE values for different growth
stages to the PT_BTHTIME's DS (develpment stage) value range
of  0-to-1.
Corrected STT and CUMSTT in the PT_BTHTIME. Corrected the header
formating in PT_OPGROW. Added the STT and CUMSTT at call points.
Corrected value 0.079 in STT equation in PT_THTIME. Calculated and
added values of SBD, SOD, SCD, and SSEN in the STT calculation in BT_THTIME.
Added comments in the PT_PHENOL regarding calculation of STT
cardinal temperatures.
Added remarks about assuming DIF as zero in PT_PHENOL. Also explained
variables SBD, SOD, SCD, SSEN in PT_BTHTIME
The variable SD was essentially same as TD so no need to introduce
a new variable and use TD instead. Also instead of having two
separate loops, the SDU can be calculated using the existing
loop for air TDU calculation.
Also remove the Gecross's DS reference and use the DSSAT's
internal ISTAGE variable for growth stage.
Add some more helpful information to the commit.
…BGR (potential tuber growth rate)

AS both ETGT and STT  are the same.
Removed redundant lines for calculating the ETGT as no need.
STT is already calculated in PT_THTIME or BT_THTIME
Move the newly added parameters i.e. DTT, CUMDTT,
STT, CUMSTT, and DAYL to the end of the PlantGro.OUT
file to make it compatible with the existing plotting
tools.
Added a new subroutine PT_MATURITY that calculates the tuber
maturity and return maturity date, WMAX and tuber intitiation
date based on the beta method.

Signed-off-by: Muhammad Sohail Khan <sohail.wur@gmail.com>
Signed-off-by: Muhammad Sohail Khan <sohail.wur@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant