Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
T tutorial
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • coastal-tep
  • tutorial
  • Wiki
  • upload processor

Last edited by Sebastien Clerc Aug 30, 2019
Page history
This is an old version of this page. You can view the most recent version or browse the history.

upload processor

| ⬅ Go to Part 3: Interactive Application Service | | :------ |-----:|

Part 4 - Upload and run your own processor

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:

im33

The script has to start with #!/bin/sh. Notice that it has two input variables $1 and $2 and that output results are placed in the CTEP_OUTPUT_DIR folder. The last point is important: this will allow the CTEP to know where to retrieve the processing results.

To upload the processor, create a targz archive with this file. Assuming the file is called proc1.sh, the command is tar cvzf proc1.tar.gz proc1.sh.

  1. 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/).
  2. 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.

im56 5. You will now define your processor parameters. First you will see the Info panel. Enter a name and a short description for your processor. (You can share it with other users). im57 6. Go to the Inputs panel and define your parameters (name and type). Press the Add Input button to add parameters. im58 7. Go to the execution panel and enter the path of your processor. Then create it! im59 8. Click on All Processors menu and refresh the page. 9. Your processor is waiting for a binary. im60 10. Click on the Upload button and select your compressed file. im35 11. Your processor is building. Please refresh the page. im36 12. Your processor is now ready. im37 13. Return to the geobrowser interface: https://coastal-tep.eo.esa.int/geobrowser/. In the processor panel you will now see your processor. im41 14. Enter the values of input parameters. And execute your job. im42 15. After few minutes, your process should be done. im43 16. Go now to the Interactive Application Service to see your results. im44 17. Open an Ubuntu virtual machine by clicking on Start new. im45 18. Click on Start container. im46 19. And connect to the machine. im47 20. You should see the following result. Click on the file manager button. im48 21. Go in your basket folder. im49 22. Choose the folder corresponding to your last job. im50 23. You can see two files: the output of your process and the associated log. im51 24. Click on the result file and open it with the application of your choice. im52 25. For example LibreOffice. im53 26. Congratulations! You have processed your first job on the CTep! im54 27. You can also have a look on the log file. im55

| ⬅ Go to Part 3: Interactive Application Service | | :------ |-----:|

Clone repository
  • A more complex processor
  • Adding layers
  • Processors use cases
  • Home
  • ias
  • sen2cor processor
  • upload processor
  • user activity manager