Open-EO / openeo-qgis-plugin

QGIS Plugin to connect and use openEO compliant backends.
Apache License 2.0
17 stars 1 forks source link

Correct Spelling #57

Closed Nina-Gn closed 5 years ago

Nina-Gn commented 5 years ago

Find a way to write this:

"bands": [ "[\"cloud_fraction\", \"cloud_top_pressure\", \"cloud_top_height\", \"cloud_base_pressure\", \"cloud_base_height\", \"cloud_optical_depth\", \"surface_albedo\", \"sensor_azimuth_angle\", \"sensor_zenith_angle\", \"solar_azimuth_angle\", \"solar_zenith_angle\"]" ]

like this:

"bands": [ "cloud_fraction", "cloud_top_pressure", "cloud_top_height", "cloud_base_pressure", "cloud_base_height", "cloud_optical_depth", "surface_albedo", "sensor_azimuth_angle", "sensor_zenith_angle", "solar_azimuth_angle", "solar_zenith_angle" ],

Nina-Gn commented 5 years ago

It is only an Issue for multiple band selection or all band selection

The Idea behind it: http://www.unit-conversion.info/texttools/replace-text/

Nina-Gn commented 5 years ago

Issue above is solved, new one:

Proper process graph looks like:

{ "1": { "process_id": "load_collection", "arguments": { "id": "COPERNICUS/S2", "spatial_extent": null, "temporal_extent": [ "2018-04-30", "2018-06-26" ], "bands": [ "B4", "B8" ] } }, "2": { "process_id": "normalized_difference_fast", "arguments": { "data": { "from_node": 1 }, "band1": "B4", "band2": "B8" } }, "3": { "process_id": "reduce", "arguments": { "data": { "from_node": 2 }, "reducer": { "callback": { "min": { "arguments": { "data": { "from_argument": "data" } }, "process_id": "min", "result": true } } }, "dimension": "temporal" } }, "4": { "process_id": "apply", "arguments": { "data": { "from_node": 3 }, "process": { "callback": { "lsr": { "arguments": { "x": { "from_argument": "x" }, "inputMin": -1, "inputMax": 1, "outputMin": 0, "outputMax": 255 }, "process_id": "linear_scale_range", "result": true } } } } }, "5": { "process_id": "save_result", "arguments": { "data": { "from_node": 4 }, "format": "png" }, "result": true } }

We get something like (only if New Job is created):

{ "loadcollection1": { "arguments": { "bands": ["B2", "B3", "B4"], "id": "COPERNICUS/S2_SR", "spatial_extent": {"west": 881225.94, "east": 887824.7, "north": 7118563.4, "south": 7114832.51, "crs": "EPSG:3857"}, "temporal_extent": [ "2019-09-23", "2019-09-23" ] }, "process_id": "load_collection", "result": false } }