-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed example, 1.0.0-alpha.3 release
- Loading branch information
Showing
1 changed file
with
133 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,205 +1,194 @@ | ||
{ | ||
"parameters": [ | ||
"parameters":[ | ||
{ | ||
"name": "collection-id", | ||
"description": "The ID of the collection to load.", | ||
"default": "COPERNICUS/S2", | ||
"schema": { | ||
"type": "string", | ||
"subtype": "collection-id", | ||
"pattern": "^[\\w\\-\\.~/]+$" | ||
} | ||
"name":"collection-id", | ||
"description":"The ID of the collection to load.", | ||
"default":"COPERNICUS/S2", | ||
"schema":{ | ||
"type":"string", | ||
"subtype":"collection-id", | ||
"pattern":"^[\\w\\-\\.~/]+$" | ||
} | ||
}, | ||
{ | ||
"name": "bands", | ||
"description": "The band names for the NIR, RED and BLUE bands in exactly this order.", | ||
"default": [ | ||
"name":"bands", | ||
"description":"The band names for the NIR, RED and BLUE bands in exactly this order.", | ||
"default":[ | ||
"B08", | ||
"B04", | ||
"B02" | ||
], | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"subtype": "band-name" | ||
"schema":{ | ||
"type":"array", | ||
"items":{ | ||
"type":"string", | ||
"subtype":"band-name" | ||
} | ||
} | ||
} | ||
], | ||
"process_graph": { | ||
"dc": { | ||
"process_id": "load_collection", | ||
"description": "Loading the data; The order of the specified bands is important for the following reduce operation.", | ||
"arguments": { | ||
"id": { | ||
"from_parameter": "collection-id" | ||
"process_graph":{ | ||
"dc":{ | ||
"process_id":"load_collection", | ||
"description":"Loading the data; The order of the specified bands is important for the following reduce operation.", | ||
"arguments":{ | ||
"id":{ | ||
"from_parameter":"collection-id" | ||
}, | ||
"spatial_extent": { | ||
"west": 16.1, | ||
"east": 16.6, | ||
"north": 48.6, | ||
"south": 47.2 | ||
"spatial_extent":{ | ||
"west":16.1, | ||
"east":16.6, | ||
"north":48.6, | ||
"south":47.2 | ||
}, | ||
"temporal_extent": [ | ||
"temporal_extent":[ | ||
"2018-01-01", | ||
"2018-02-01" | ||
], | ||
"bands": { | ||
"from_parameter": "bands" | ||
"bands":{ | ||
"from_parameter":"bands" | ||
} | ||
} | ||
}, | ||
"evi": { | ||
"process_id": "reduce_dimension", | ||
"description": "Compute the EVI. Formula: 2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)", | ||
"arguments": { | ||
"data": { | ||
"from_node": "dc" | ||
"evi":{ | ||
"process_id":"reduce_dimension", | ||
"arguments":{ | ||
"data":{ | ||
"from_node":"dc" | ||
}, | ||
"dimension": "spectral", | ||
"reducer": { | ||
"process_graph": { | ||
"nir": { | ||
"process_id": "array_element", | ||
"arguments": { | ||
"data": { | ||
"from_parameter": "data" | ||
"reducer":{ | ||
"process_graph":{ | ||
"nir":{ | ||
"process_id":"array_element", | ||
"arguments":{ | ||
"data":{ | ||
"from_parameter":"data" | ||
}, | ||
"index": 0 | ||
"index":0 | ||
} | ||
}, | ||
"red": { | ||
"process_id": "array_element", | ||
"arguments": { | ||
"data": { | ||
"from_parameter": "data" | ||
"sub":{ | ||
"process_id":"subtract", | ||
"arguments":{ | ||
"x":{ | ||
"from_node":"nir" | ||
}, | ||
"index": 1 | ||
"y":{ | ||
"from_node":"red" | ||
} | ||
} | ||
}, | ||
"blue": { | ||
"process_id": "array_element", | ||
"arguments": { | ||
"data": { | ||
"from_parameter": "data" | ||
"div":{ | ||
"process_id":"divide", | ||
"arguments":{ | ||
"x":{ | ||
"from_node":"sub" | ||
}, | ||
"index": 2 | ||
"y":{ | ||
"from_node":"sum" | ||
} | ||
} | ||
}, | ||
"sub": { | ||
"process_id": "subtract", | ||
"arguments": { | ||
"data": [ | ||
"p3":{ | ||
"process_id":"multiply", | ||
"arguments":{ | ||
"x":2.5, | ||
"y":{ | ||
"from_node":"div" | ||
} | ||
}, | ||
"result":true | ||
}, | ||
"sum":{ | ||
"process_id":"sum", | ||
"arguments":{ | ||
"data":[ | ||
1, | ||
{ | ||
"from_node": "nir" | ||
"from_node":"nir" | ||
}, | ||
{ | ||
"from_node": "red" | ||
} | ||
] | ||
} | ||
}, | ||
"p1": { | ||
"process_id": "product", | ||
"arguments": { | ||
"data": [ | ||
6, | ||
"from_node":"p1" | ||
}, | ||
{ | ||
"from_node": "red" | ||
"from_node":"p2" | ||
} | ||
] | ||
} | ||
}, | ||
"p2": { | ||
"process_id": "product", | ||
"arguments": { | ||
"data": [ | ||
-7.5, | ||
{ | ||
"from_node": "blue" | ||
} | ||
] | ||
"red":{ | ||
"process_id":"array_element", | ||
"arguments":{ | ||
"data":{ | ||
"from_parameter":"data" | ||
}, | ||
"index":1 | ||
} | ||
}, | ||
"sum": { | ||
"process_id": "sum", | ||
"arguments": { | ||
"data": [ | ||
1, | ||
{ | ||
"from_node": "nir" | ||
}, | ||
{ | ||
"from_node": "p1" | ||
}, | ||
{ | ||
"from_node": "p2" | ||
} | ||
] | ||
"p1":{ | ||
"process_id":"multiply", | ||
"arguments":{ | ||
"x":6, | ||
"y":{ | ||
"from_node":"red" | ||
} | ||
} | ||
}, | ||
"div": { | ||
"process_id": "divide", | ||
"arguments": { | ||
"data": [ | ||
{ | ||
"from_node": "sub" | ||
}, | ||
{ | ||
"from_node": "sum" | ||
} | ||
] | ||
"blue":{ | ||
"process_id":"array_element", | ||
"arguments":{ | ||
"data":{ | ||
"from_parameter":"data" | ||
}, | ||
"index":2 | ||
} | ||
}, | ||
"p3": { | ||
"process_id": "product", | ||
"arguments": { | ||
"data": [ | ||
2.5, | ||
{ | ||
"from_node": "div" | ||
} | ||
] | ||
}, | ||
"result": true | ||
"p2":{ | ||
"process_id":"multiply", | ||
"arguments":{ | ||
"x":-7.5, | ||
"y":{ | ||
"from_node":"blue" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"dimension":"bands" | ||
} | ||
}, | ||
"mintime": { | ||
"process_id": "reduce_dimension", | ||
"description": "Compute a minimum time composite by reducing the temporal dimension", | ||
"arguments": { | ||
"data": { | ||
"from_node": "evi" | ||
"mintime":{ | ||
"process_id":"reduce_dimension", | ||
"description":"Compute a minimum time composite by reducing the temporal dimension", | ||
"arguments":{ | ||
"data":{ | ||
"from_node":"evi" | ||
}, | ||
"dimension": "temporal", | ||
"reducer": { | ||
"process_graph": { | ||
"min": { | ||
"process_id": "min", | ||
"arguments": { | ||
"data": { | ||
"from_parameter": "data" | ||
"dimension":"temporal", | ||
"reducer":{ | ||
"process_graph":{ | ||
"min":{ | ||
"process_id":"min", | ||
"arguments":{ | ||
"data":{ | ||
"from_parameter":"data" | ||
} | ||
}, | ||
"result": true | ||
"result":true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"save": { | ||
"process_id": "save_result", | ||
"arguments": { | ||
"data": { | ||
"from_node": "mintime" | ||
"save":{ | ||
"process_id":"save_result", | ||
"arguments":{ | ||
"data":{ | ||
"from_node":"mintime" | ||
}, | ||
"format": "GTiff" | ||
"format":"GTiff" | ||
}, | ||
"result": true | ||
"result":true | ||
} | ||
} | ||
} |