AgMIP open source software development and use.
This function will generate a new Event with given information. It MUST be used with the CREATE command.
Currently, the following events are supported. PLANTING, IRRIGATION, AUTO_IRRIG, FERTILIZER, TILLAGE, ORGANIC_MATTER, HARVEST, CHEMICALS, MULCH
CREATE, FERTILIZER, NEW_EVENT(), 14, FEAMN, 40, FECD, FE005, FEACD, AP002, FEDEP, 10
PDATE = “19820312” in the original data set
The new generated event will be,
{"event":"fertilizer", "date":"19820326", "feamn":"40", "fecd":"FE005", "feacd":"AP002", "fedep":"10"}
For creating multiple same type events with repeated information, you can create event with only non-repeated variables first, and then use FILL command to fill repeated variable together.
CREATE, FERTILIZER, NEW_EVENT(), 14, FEAMN, 40
CREATE, FERTILIZER, NEW_EVENT(), 45, FEAMN, 60
FILL, FECD, FE005
FILL, FEACD, AP002
FILL, FEDEP, 10
PDATE = “19820312” in the original data set
The new generated event will be,
[
{"event":"fertilizer", "date":"19820326", "feamn":"40", "fecd":"FE005", "feacd":"AP002", "fedep":"10"},
{"event":"fertilizer", "date":"19820426", "feamn":"60", "fecd":"FE005", "feacd":"AP002", "fedep":"10"}
]
Sample for irrigation event:
CREATE, IRRIGATION, NEW_EVENT(), 25, IRVAL, 70, IROP, IR003
PDATE = “19820312” in the original data set
The new generated event will be,
{"event":"fertilizer", "date":"19820406", "irval":"70", "irop":"IR003"}
The following DOME spreadsheet is using this function. PADDY Overlay DOME