Open-EO / openeo-spring-driver

openEO driver build on spring using WCPS and ODC storage access
Apache License 2.0
0 stars 0 forks source link

Basic ADO process graphs not working #76

Open clausmichele opened 1 year ago

clausmichele commented 1 year ago

I was going through the notebook I prepared last year for ADO and I encountered a simple example I'm not able to run with Rasdaman/WCPS.

I would need to load the CORINE land cover data and mask out urban areas.

The process graph could be the following. We could have also different ways of doing it, but I couldn't find one working.

{
  "process_graph": {
    "loadcollection1": {
      "process_id": "load_collection",
      "arguments": {
        "id": "ADO_CORINE_100m_3035",
        "spatial_extent": {
          "west": 11.222878,
          "east": 11.45256,
          "south": 46.45958,
          "north": 46.532611
        },
        "temporal_extent": [
          "2017-01-01T00:00:00Z",
          "2019-12-31T00:00:00Z"
        ],
        "bands": [],
        "properties": {}
      }
    },
    "apply1": {
      "process_id": "apply",
      "arguments": {
        "data": {
          "from_node": "loadcollection1"
        },
        "process": {
          "process_graph": {
            "gte1": {
              "process_id": "gte",
              "arguments": {
                "x": {
                  "from_parameter": "x"
                },
                "y": 200
              },
              "result": true
            }
          }
        }
      }
    },
    "save1": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "mask2"
        },
        "format": "NETCDF"
      },
      "result": true
    },
    "mask2": {
      "process_id": "mask",
      "arguments": {
        "mask": {
          "from_node": "apply1"
        },
        "data": {
          "from_node": "loadcollection1"
        }
      }
    }
  },
  "parameters": []
}