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

Edit temporal intervals don't show date #253

Closed m-mohr closed 2 years ago

m-mohr commented 2 years ago
{
  "process_graph": {
    "load_collection_PYKKO7450N": {
      "process_id": "load_collection",
      "arguments": {
        "id": "SENTINEL2_L1C_SENTINELHUB",
        "spatial_extent": {
          "west": 5.811768,
          "east": 6.28418,
          "south": 49.639795,
          "north": 49.845559
        },
        "temporal_extent": [
          "2018-01-01",
          "2019-01-01"
        ],
        "bands": [
          "B04",
          "B08"
        ]
      }
    },
    "reduce_dimension_EEWIE6431Y": {
      "process_id": "reduce_dimension",
      "arguments": {
        "data": {
          "from_node": "load_collection_PYKKO7450N"
        },
        "reducer": {
          "process_graph": {
            "array_element_AUYXD5526J": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 1,
                "return_nodata": false
              }
            },
            "array_element_STWFA4426I": {
              "process_id": "array_element",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "index": 0,
                "return_nodata": false
              }
            },
            "subtract_BUGVG4855A": {
              "process_id": "subtract",
              "arguments": {
                "x": {
                  "from_node": "array_element_AUYXD5526J"
                },
                "y": {
                  "from_node": "array_element_STWFA4426I"
                }
              }
            },
            "add_CDWII3213C": {
              "process_id": "add",
              "arguments": {
                "x": {
                  "from_node": "array_element_AUYXD5526J"
                },
                "y": {
                  "from_node": "array_element_STWFA4426I"
                }
              }
            },
            "divide_VCXPC0008I": {
              "process_id": "divide",
              "arguments": {
                "x": {
                  "from_node": "subtract_BUGVG4855A"
                },
                "y": {
                  "from_node": "add_CDWII3213C"
                }
              },
              "result": true
            }
          }
        },
        "dimension": "bands"
      }
    },
    "aggregate_temporal_QACNR6356C": {
      "process_id": "aggregate_temporal",
      "arguments": {
        "data": {
          "from_node": "reduce_dimension_EEWIE6431Y"
        },
        "intervals": [
          [
            "2018-01-02",
            "2018-02-01"
          ],
          [
            "2018-02-01",
            "2018-03-01"
          ],
          [
            "2018-03-01",
            "2018-04-01"
          ],
          [
            "2018-04-01",
            "2018-05-01"
          ],
          [
            "2018-05-01",
            "2018-06-01"
          ],
          [
            "2018-06-01",
            "2018-07-01"
          ],
          [
            "2018-07-01",
            "2018-08-01"
          ],
          [
            "2018-08-01",
            "2018-09-01"
          ],
          [
            "2018-09-01",
            "2018-10-01"
          ],
          [
            "2018-10-01",
            "2018-11-01"
          ],
          [
            "2018-11-01",
            "2018-12-30"
          ]
        ],
        "reducer": {
          "process_graph": {
            "median_IJXMM1113E": {
              "process_id": "median",
              "arguments": {
                "data": {
                  "from_parameter": "data"
                },
                "ignore_nodata": true
              },
              "result": true
            }
          }
        },
        "labels": [
          "2018-01-02",
          "2018-02-01",
          "2018-03-01",
          "2018-04-01",
          "2018-05-01",
          "2018-06-01",
          "2018-07-01",
          "2018-08-01",
          "2018-09-01",
          "2018-10-01",
          "2018-11-01"
        ],
        "dimension": "t",
        "context": null
      }
    },
    "save_result_OTMUP6932X": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "aggregate_temporal_QACNR6356C"
        },
        "format": "NetCDF",
        "options": {}
      },
      "result": true
    }
  },
  "parameters": [],
  "returns": {
    "schema": {
      "type": "boolean"
    }
  }
}

Opening the parameter editor on aggregate_temporal doesn't show the dates:

image

m-mohr commented 2 years ago

Only happens if the times are Date only