Skip to content

Commit

Permalink
Fixed example, 1.0.0-alpha.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 6, 2020
1 parent b9ec47b commit 9ce0414
Showing 1 changed file with 133 additions and 144 deletions.
277 changes: 133 additions & 144 deletions tests/assets/evi.json
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
}
}
}

0 comments on commit 9ce0414

Please sign in to comment.