Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

CSV interprets nan as 0 + wrong headers #255

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago

Example process:

{
  "process_graph": {
    "2": {
      "process_id": "aggregate_spatial",
      "arguments": {
        "data": {
          "from_node": "reduce_dimension_YKPRJ5397F"
        },
        "geometries": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                6.9438023908142705,
                50.72500086020489
              ],
              [
                6.939710994342476,
                50.72500086020489
              ],
              [
                6.939710994342476,
                50.726807823388754
              ],
              [
                6.9438023908142705,
                50.726807823388754
              ],
              [
                6.9438023908142705,
                50.72500086020489
              ]
            ]
          ]
        },
        "reducer": {
          "process_graph": {
            "1": {
              "process_id": "mean",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                }
              },
              "result": true
            }
          }
        }
      }
    },
    "load_collection_TFGGG5804Z": {
      "process_id": "load_collection",
      "arguments": {
        "id": "SENTINEL2_L2A",
        "spatial_extent": {
          "type": "Polygon",
          "coordinates": [
            [
              [
                6.9438023908142705,
                50.72500086020489
              ],
              [
                6.939710994342476,
                50.72500086020489
              ],
              [
                6.939710994342476,
                50.726807823388754
              ],
              [
                6.9438023908142705,
                50.726807823388754
              ],
              [
                6.9438023908142705,
                50.72500086020489
              ]
            ]
          ]
        },
        "temporal_extent": [
          "2018-01-01",
          "2019-01-01"
        ],
        "bands": [
          "B04",
          "B08"
        ]
      }
    },
    "reduce_dimension_YKPRJ5397F": {
      "process_id": "reduce_dimension",
      "arguments": {
        "data": {
          "from_node": "load_collection_TFGGG5804Z"
        },
        "reducer": {
          "process_graph": {
            "array_element_QKECH6850E": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 1,
                "return_nodata": false
              }
            },
            "array_element_MSFQS3932Z": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 0,
                "return_nodata": false
              }
            },
            "subtract_UVTEO4296J": {
              "process_id": "subtract",
              "arguments": {
                "x": {
                  "from_node": "array_element_QKECH6850E"
                },
                "y": {
                  "from_node": "array_element_MSFQS3932Z"
                }
              }
            },
            "add_SBSHO4464Z": {
              "process_id": "add",
              "arguments": {
                "x": {
                  "from_node": "array_element_QKECH6850E"
                },
                "y": {
                  "from_node": "array_element_MSFQS3932Z"
                }
              }
            },
            "divide_HQGNF5295P": {
              "process_id": "divide",
              "arguments": {
                "x": {
                  "from_node": "subtract_UVTEO4296J"
                },
                "y": {
                  "from_node": "add_SBSHO4464Z"
                }
              },
              "result": true
            }
          }
        },
        "dimension": "bands"
      }
    },
    "save_result_RFCZN7272E": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "2"
        },
        "format": "CSV"
      },
      "result": true
    }
  },
  "parameters": [],
  "returns": {
    "schema": {
      "type": "boolean"
    }
  }
}