| ... | ... | @@ -3,9 +3,20 @@ | 
| 
 | 
 | 
 | 
| 
 | 
 | 
# Part 4 - Upload and run your own processor
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
1.     Create your own processor. Here we will use a shell processor "proc1.sh" (don't forget to put #!/bin/sh at the beginning). This script will take two arguments in input and write the result in a text file.
 | 
| 
 | 
 | 
(You must use the environment variable $CTEP_OUTPUT_DIR).
 | 
| 
 | 
 | 
In this section, we learn how to integrate a new processor on the CTEP.
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
Suitable processors include:
 | 
| 
 | 
 | 
* Linux executables
 | 
| 
 | 
 | 
* shell scripts
 | 
| 
 | 
 | 
* python scripts
 | 
| 
 | 
 | 
Other script languages can be supported, please contact us if you have a specific need.
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
In a first step, we start with a very basic shell script which adds two integers and returns the result in a text file. This example illustrates how the integration mechanism works.
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
The shell script is the following:
 | 
| 
 | 
 | 

 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
 | 
| 
 | 
 | 
2.     Compress your file (tar.gz)
 | 
| 
 | 
 | 
3.     Go to the geobrowser and login with your ESA SSO account: [https://coastal-tep.eo.esa.int/geobrowser/](https://coastal-tep.eo.esa.int/geobrowser/).
 | 
| 
 | 
 | 
4.     Go to the uploading processor interface [https://coastal-tep.eo.esa.int/wps/ui/#/](https://coastal-tep.eo.esa.int/wps/ui/#) and click on the New button.
 | 
| ... | ... |  |