forked from FarmMaps/FarmMapsApiClient
72 lines
2.2 KiB
JSON
72 lines
2.2 KiB
JSON
[
|
|
|
|
//Formule kan meerdere inputs aan
|
|
// Met blokhaken en een nummer specificeer je een input:
|
|
//[0], [10]. etc...
|
|
// Aan de hand van de volgorde van input wordt momenteel bepaald welk nummer bij welk input hoort.
|
|
//[0] is dus de eerst tiff opgegeven.Als het goed is maakt het nummer nu niks uit, dus als er 2 inputs zijn en in de formule staan[0] en[10] dan zal die nog steeds werken.
|
|
//De volgorde van de tiff kun je verslepen, bij de formule inputs kun je de input van het ene[0] slot naar het andere slepen[10]
|
|
//Functies: abs, min en max
|
|
//Constanten: pi en e
|
|
|
|
//if ([0] -[1])/ ([0] +[1]) < 0 then 0
|
|
//else if ([0] -[1])/ ([0] +[1]) > 1 then 1
|
|
//else ([0] -[1]) / ([0] +[1])
|
|
|
|
//{
|
|
// "InputItemOne": "20201106_Sentinel2_L2A_B04.tiff",
|
|
// "InputItemTwo": "20201106_Sentinel2_L2A_B08.tiff",
|
|
// "Formula": "([1]-[0])/([1]+[0])",
|
|
// "CreatedLayerName": "Biomassa",
|
|
// "CalculatedQuantity": "NDVI",
|
|
// "CalculatedUnit": "ndviValue",
|
|
|
|
// "OutputFileName": "FullField_NDVI",
|
|
// "CropFieldName": "FullField",
|
|
// "CreateNewCropfield": false,
|
|
// "CropYear": 2020,
|
|
// "geometryJson": {
|
|
// "type": "Polygon",
|
|
// "coordinates": [
|
|
|
|
// [
|
|
// [ 4.9593709, 52.8014339 ],
|
|
// [ 4.9675488, 52.7943149 ],
|
|
// [ 4.9735195, 52.7968665 ],
|
|
// [ 4.9667833, 52.8030414 ],
|
|
// [ 4.9593709, 52.8014339 ]
|
|
// ]
|
|
|
|
// ]
|
|
// },
|
|
{
|
|
"InputItemOne": "data_9001.tif",
|
|
"InputItemTwo": "data_times_two_4326.tiff",
|
|
"Formula": "if [0] >= 1.28 then [1] else 0",
|
|
"CreatedLayerName": "Biomassa",
|
|
"CalculatedQuantity": "NDVI",
|
|
"CalculatedUnit": "ndviValue",
|
|
"OutputFileName": "Zoning",
|
|
"CropFieldName": "Data_whole",
|
|
"UseShadow": false,
|
|
"GetWatBal": false,
|
|
"GetVanDerSat": true,
|
|
"storeVanDerSatStatistics": true,
|
|
"CropYear": 2020,
|
|
"geometryJson": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[ 5.66886041703652044, 52.52929999060298627 ],
|
|
[ 5.6716230923214912, 52.52946316399909676 ],
|
|
[ 5.67185376229668581, 52.5280565894154563 ],
|
|
[ 5.66903207841337231, 52.52790646510525363 ],
|
|
[ 5.66886041703652044, 52.52929999060298627 ]
|
|
]
|
|
]
|
|
|
|
}
|
|
}
|
|
|
|
]
|