This repository contains a collection of custom scripts for the Copernicus Browser and the Sentinel Hub APIs on the Copernicus Data Space Ecosystem.
Custom scripts are a piece of Javascript code, used to visualize satellite imagery and to control what values the Sentinel Hub services will return. Any visualization of any constellation (e.g. Sentinel-2 satellite), even a simple true color composite, is dictated by a custom script.
See here for more information on how to write your own evalscript.
Have a look at the template for an example of how a script folder can be structured.
You can also have a look at other scripts to see how they are structured.
For instructions on how custom scripts are structured have a look at this YouTube tutorial, or at the official documentation.
-
Fork the repository to get your own copy of the custom-scripts repository
-
Create a new directory entry for your custom script
Copy theexample
directory to proper directory, based on which datasource (satellite) you are publishing the product for, to something that describes what the product is about, saymy_algorithm
.
Preferably use "snake_case" (underscores instead of spaces) if more than one word is used. -
Fill in the details about the project in the
README.md
file.
Have a look around at otherREADME.md
files to see how to include images, format the text and generally use the GitHub markdown. -
Implement the product in the
script.js
file located in ascripts
folder. The most work is of course the JavaScript implementation of the product. Theexample
folder includes a basic custom script to help you build your own custom script. -
If you want to include images in your
README.md
file, add them to thefigs
folder. -
Create a pull request.
Publishing your product should be easy, nevertheless, any feedback and ideas how to improve or make the process simpler is very appreciated.