|
| 1 | +# EVI (Enhanced Vegetation Index) |
| 2 | + |
| 3 | +This example derives minimum EVI measurements over pixel time series of Sentinel 2 imagery. The EVI is defined as follows: `(2.5 * (nir - red)) / ((nir + 6.0 * red - 7.5 * blue) + 1.0)` |
| 4 | + |
| 5 | +The process graph could be visualized as follows: |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +This process graph is meant to be used as batch job or can be lazy evaluated. It returns a GeoTiff file with the computed results. |
| 10 | + |
| 11 | +This process graph assumes the dataset is called `Sentinel-2`. The temporal extent covered is January 2018 and bands `B02` (blue), `B04` (red) and `B08` (nir) are used for the computation. Please note that the order of the bands in `get_collection` is important as they are requested by their order (index) in the callback. |
| 12 | + |
| 13 | +## Process Graph |
| 14 | + |
| 15 | +```json |
| 16 | +{ |
| 17 | + "dc": { |
| 18 | + "process_id": "load_collection", |
| 19 | + "process_description": "Loading the data; The order of the specified bands is important for the following reduce operation.", |
| 20 | + "arguments": { |
| 21 | + "id": "Sentinel-2", |
| 22 | + "spatial_extent": { |
| 23 | + "west": 16.1, |
| 24 | + "east": 16.6, |
| 25 | + "north": 48.6, |
| 26 | + "south": 47.2 |
| 27 | + }, |
| 28 | + "temporal_extent": ["2018-01-01", "2018-02-01"], |
| 29 | + "bands": ["B08", "B04", "B02"] |
| 30 | + } |
| 31 | + }, |
| 32 | + "evi": { |
| 33 | + "process_id": "reduce", |
| 34 | + "process_description": "Compute the EVI. Formula: 2.5 * (NIR - RED) / (1 + NIR + 6*RED + -7.5*BLUE)", |
| 35 | + "arguments": { |
| 36 | + "data": {"from_node": "dc"}, |
| 37 | + "dimension": "spectral", |
| 38 | + "reducer": { |
| 39 | + "callback": { |
| 40 | + "nir": { |
| 41 | + "process_id": "array_element", |
| 42 | + "arguments": { |
| 43 | + "data": {"from_argument": "data"}, |
| 44 | + "index": 0 |
| 45 | + } |
| 46 | + }, |
| 47 | + "red": { |
| 48 | + "process_id": "array_element", |
| 49 | + "arguments": { |
| 50 | + "data": {"from_argument": "data"}, |
| 51 | + "index": 1 |
| 52 | + } |
| 53 | + }, |
| 54 | + "blue": { |
| 55 | + "process_id": "array_element", |
| 56 | + "arguments": { |
| 57 | + "data": {"from_argument": "data"}, |
| 58 | + "index": 2 |
| 59 | + } |
| 60 | + }, |
| 61 | + "sub": { |
| 62 | + "process_id": "subtract", |
| 63 | + "arguments": { |
| 64 | + "data": [{"from_node": "nir"}, {"from_node": "red"}] |
| 65 | + } |
| 66 | + }, |
| 67 | + "p1": { |
| 68 | + "process_id": "product", |
| 69 | + "arguments": { |
| 70 | + "data": [6, {"from_node": "red"}] |
| 71 | + } |
| 72 | + }, |
| 73 | + "p2": { |
| 74 | + "process_id": "product", |
| 75 | + "arguments": { |
| 76 | + "data": [-7.5, {"from_node": "blue"}] |
| 77 | + } |
| 78 | + }, |
| 79 | + "sum": { |
| 80 | + "process_id": "sum", |
| 81 | + "arguments": { |
| 82 | + "data": [1, {"from_node": "nir"}, {"from_node": "p1"}, {"from_node": "p2"}] |
| 83 | + } |
| 84 | + }, |
| 85 | + "div": { |
| 86 | + "process_id": "divide", |
| 87 | + "arguments": { |
| 88 | + "data": [{"from_node": "sub"}, {"from_node": "sum"}] |
| 89 | + } |
| 90 | + }, |
| 91 | + "p3": { |
| 92 | + "process_id": "product", |
| 93 | + "arguments": { |
| 94 | + "data": [2.5, {"from_node": "div"}] |
| 95 | + }, |
| 96 | + "result": true |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + "mintime": { |
| 103 | + "process_id": "reduce", |
| 104 | + "process_description": "Compute a minimum time composite by reducing the temporal dimension", |
| 105 | + "arguments": { |
| 106 | + "data": {"from_node": "evi"}, |
| 107 | + "dimension": "temporal", |
| 108 | + "reducer": { |
| 109 | + "callback": { |
| 110 | + "min": { |
| 111 | + "process_id": "min", |
| 112 | + "arguments": { |
| 113 | + "data": {"from_argument": "data"} |
| 114 | + }, |
| 115 | + "result": true |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | + }, |
| 121 | + "save": { |
| 122 | + "process_id": "save_result", |
| 123 | + "arguments": { |
| 124 | + "data": {"from_node": "mintime"}, |
| 125 | + "format": "GTiff" |
| 126 | + }, |
| 127 | + "result": true |
| 128 | + } |
| 129 | +} |
| 130 | +``` |
| 131 | + |
| 132 | +## Result |
| 133 | + |
| 134 | +TBD |
0 commit comments