R2 data input validator: validates if required inputs are provided and backend has necessary XML files.
Input is the standard rusle2 payload, which matches the v1.3 version of the service.
Performs validation checking on operations, crops, and residues to confirm if they exist on the backend for the run.
If the files are missing Rusle2 will still run, but substitutes default operations, crops, and residues in place of the requested values from the LMOD management.
Reports file existence in JSON payload:
"result":
[
{
"name": "Operation_1",
"value": "operations\\Chisel, st. pt. ",
"description": "operation is valid"
},
{
"name": "OPERATION_INVALID_2",
"value": "operations\\disk, tandem light finishing",
"description": "OPERATION IS MISSING!"
},
{
"name": "Operation_3",
"value": "operations\\Cultivator, field 6-12 in sweeps",
"description": "operation is valid"
},
{
"name": "Operation_4",
"value": "operations\\Drill or airseeder, double disk ",
"description": "operation is valid"
},
{
"name": "Operation_5",
"value": "operations\\Harvest, killing crop 50pct standing stubble",
"description": "operation is valid"
},
{
"name": "Vegetation_1",
"value": "vegetations\\Barley, spring",
"description": "vegetation is valid"
}
]