We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e25fe commit 805d38bCopy full SHA for 805d38b
aquacrop/initialize/compute_crop_calendar.py
@@ -171,15 +171,15 @@ def compute_crop_calendar(
171
if tCD <= 0:
172
tCD = 1
173
174
- CCi = crop.CCx * (1 - 0.05 * (np.exp((crop.CDC_CD / crop.CCx) * tCD) - 1))
+ CCi = crop.CCx * (1 - 0.05 * (np.exp(((3.33 * crop.CDC_CD) / (crop.CCx + 2.29)) * tCD) - 1))
175
if CCi < 0:
176
CCi = 0
177
178
tGDD = crop.Maturity - crop.Senescence
179
if tGDD <= 0:
180
tGDD = 5
181
182
- crop.CDC = (crop.CCx / tGDD) * np.log(1 + ((1 - CCi / crop.CCx) / 0.05))
+ crop.CDC = ((crop.CCx + 2.29) * np.log((((CCi/crop.CCx) - 1) / -0.05) + 1)) / (3.33 * tGDD)
183
# Set calendar type to gdd mode
184
crop.CalendarType = 2
185
0 commit comments