Skip to content

CubeWerx OAProc Server Execute Examples

Panagiotis (Peter) A. Vretanos edited this page Jan 14, 2026 · 2 revisions

Overview

The following OAProc execute examples use a small repository of EO imagery found here.

The shell script

The following shell script can be used to execute a process on the CubeWerx server. The script takes two arguments, the identifier of the process to execute and the JSON-encoded execute request. Other repo's (e.g. the SENTINEL archive) should work too. The only caveat is that the EO product has to be unzipped.

#!/usr/bin/sh
if [ "$#" -ne 2 ]
then
   echo "usage: ./execute <processId> <executeRequest.json>"
else
  curl -i -s -H "Content-Type: application/json" -H "Accept: application/json" -H "Prefer: respond-async, return=minimal" -X POST -d @$2 'https://www.pvretano.com/cubewerx/cubeserv/default/ogcapi/processing/processes/'$1'/execution'
fi

Ship Detection (dsi)


./execute dsi

{
  "inputs": {
    "product": { 
      "href": "https://www.pvretano.com/repositories/tep_demo/radarsat/RS2_OK95449_IK624854_PEK008721491_OSVN_20180318_223433_VV_VH_SCF/"

    }
  }
}

Spectral Index (

{
  "inputs": {
    "product": [
      {
        "href": "https://www.pvretano.com/repositories/tep_demo/rcm/RCM1_OK1943578_PK2106665_1_SC50MA_20220530_095150_HH_HV_GRD/"
      },
      {
        "href": "https://www.pvretano.com/repositories/tep_demo/rcm/RCM1_OK1951017_PK2106654_1_SC50MC_20220530_095004_HH_HV_GRD/"
      }
    ],
    "applyColormap": true
  }
}

Clone this wiki locally