AgMIP open source software development and use.
This function will clone the original management events for each year in the experiment duration. Only the date of each event will be increased year by year to simulate multiple years. If the experiment duration only 1 year, no generation will be done.
If this function is used in conjunction with with AUTO_PDATE(), then the generated event dates are based on the generated planting dates and the original days after planting.
&, REPLACE, EXP_DUR, 3
&, REPLACE, SC_YEAR, 1981
&, REPLACE, PDATE, AUTO_REPLICATE_EVENTS()
[
{"event":"planting", "date":"19820226", "crid":"MAZ"},
{"event":"irrigation", "date":"19820304", "irop":"IR001", "irval":"13"}
]
[
[
{"event":"planting", "date":"19810226", "crid":"MAZ"},
{"event":"irrigation", "date":"19820304", "irop":"IR001", "irval":"13"}
],
[
{"event":"planting", "date":"19820226", "crid":"MAZ"},
{"event":"irrigation", "date":"19830304", "irop":"IR001", "irval":"13"}
],
[
{"event":"planting", "date":"19830226", "crid":"MAZ"},
{"event":"irrigation", "date":"19840304", "irop":"IR001", "irval":"13"}
]
]
&, REPLACE, EXP_DUR, 3
&, REPLACE, SC_YEAR, 1982
&, REPLACE, PDATE, AUTO_PDATE(),0501,0701,25,5
&, REPLACE, PDATE, AUTO_REPLICATE_EVENTS()
[
{"event":"planting", "date":"19820226", "crid":"MAZ"},
{"event":"irrigation", "date":"19820304", "irop":"IR001", "irval":"13"}
]
[
[
{"event":"planting", "date":"19820515", "crid":"MAZ"},
{"event":"irrigation", "date":"19820521", "irop":"IR001", "irval":"13"}
],
[
{"event":"planting", "date":"19830606", "crid":"MAZ"},
{"event":"irrigation", "date":"19830612", "irop":"IR001", "irval":"13"}
],
[
{"event":"planting", "date":"19840526", "crid":"MAZ"},
{"event":"irrigation", "date":"19840601", "irop":"IR001", "irval":"13"}
]
]
The following DOME spreadsheet is using this function.
Seasonal DOME Template (check the sheet Seasonal_strategy_baseline_2 )