Custom Scripts Sentinel Hub
A repository of custom scripts to be used with Sentinel Hub.
https://github.com/sentinel-hub/custom-scripts
Category: Sustainable Development
Sub Category: Data Catalogs and Interfaces
Keywords
earth-observation remote-sensing sentinel-hub
Keywords from Contributors
sentinel-2 ogc-services eo-data eo-research color-perception paper true-color cloud-detector
Last synced: about 16 hours ago
JSON representation
Repository metadata
A repository of custom scripts to be used with Sentinel Hub
- Host: GitHub
- URL: https://github.com/sentinel-hub/custom-scripts
- Owner: sentinel-hub
- License: cc-by-sa-4.0
- Created: 2017-10-10T12:18:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-17T16:24:59.000Z (10 days ago)
- Last Synced: 2025-04-18T00:10:42.440Z (9 days ago)
- Topics: earth-observation, remote-sensing, sentinel-hub
- Language: JavaScript
- Homepage: https://custom-scripts.sentinel-hub.com/
- Size: 1.11 GB
- Stars: 671
- Watchers: 56
- Forks: 302
- Open Issues: 2
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
README.md
Sentinel Hub Custom Script Repository
This repository contains a collection of custom scripts for Sentinel Hub, which can be fed to the services via the URL.
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.
Contribute to Custom Scripts
Have a look at the template for an example of how a script page 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 tutorial, or at the official documenation.
How to publish your own product
- Fork the repository to get your own copy of the custom-scripts
It is easiest to fork the repository on GitHub, but as some of you might not have GitHub account, or don't want to bother with all this versioning and collaboration tools, you can also just download the whole repository as Zip file and work from there. - 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.
Obviously, you'll want to remove this chapter, but use the rest of the file as a template.
Have a look around at otherREADME.md
files to see how to include images, format the text and generally use the GitHub markdown (e.g. here for mathematical formulas or here for adding images). - Implement the product in the
script.js
file.
The most work is of course the JavaScript implementation of the product. Theexample
folder includes an empty custom script with comments that will hopefully help you build your own custom script. - Add an entry pointing to your script to the top level markdown file (i.e. if adding a script for Sentinel 2 add the link to
sentinel-2.md
in the foldersentinel-2
).
A link and a short description will do. - And create a pull request :).
There is extensive help on creating pull requests on GitHub help, but if you feel overwhelmed by this step and would still like to contribute, send us the folder you've created and we will take care of it for you.
Publishing your product should be easy, nevertheless, any feedback and ideas how to improve or make the process simpler is very appreciated.
Test your changes locally
This is optional but makes Pull Requests quicker to handle since they should have less mistakes.
Before you create the PR you can check if everything looks right on the website. To do this follow these steps which are based on Testing your GitHub Pages site locally with Jekyll page:
Linux
- In the root directory of your fork open a terminal
- Install ruby
- Ubuntu:
sudo apt install ruby ruby-dev
- Ubuntu:
- Install bundler
gem install bundler
- On Ubuntu you might have to add
sudo
- Create a Gemfile
- In the root folder of the repository (where the
_config.yml
file is) create a new fileGemfile
. - i.e
touch Gemfile
- and add the following content:
- In the root folder of the repository (where the
source 'https://rubygems.org'
gem "github-pages", "~> GH_VERSION", group: :jekyll_plugins
gem "just-the-docs"
Replace GH_VERSION
with the version number that is displayed next to github-pages here.
- Serve the page
- First install all necessary gems with
bundle install
- then the site can be built with
bundle exec jekyll serve
- The site should then be visible on
127.0.0.1:4000
- First install all necessary gems with
macOS
-
In the root directory of your fork open a terminal
-
Install ruby
-
brew install chruby ruby-install xz
- If homebrew hasn't been installed yet, intall homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
ruby-install ruby 3.1.3
-
After installation run the following codes:
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.zshrc echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.zshrc echo "chruby ruby-3.1.3" >> ~/.zshrc # run 'chruby' to see actual version
- Quit and relaunch Terminal, then check that everything with
ruby -v
- It should show ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) or a newer version
-
-
Install Jekyll
gem install jekyll
-
Install bundler
gem install bundler
-
Following the Create a Gemfile step in the Linux section
-
Serve the page
-
First install all necessary gems with
bundle install
-
Add the missing webrick package with
bundle add webrick
- Run this command again when the following error message pops out:
bundler: failed to load command: jekyll
-
then the site can be built with
bundle exec jekyll serve
-
The site should then be visible on
127.0.0.1:4000
-
Owner metadata
- Name: Sentinel Hub
- Login: sentinel-hub
- Email: [email protected]
- Kind: organization
- Description: Sentinel Hub services by Sinergise Solutions d.o.o.
- Website: https://www.sentinel-hub.com
- Location:
- Twitter: sentinel_hub
- Company:
- Icon url: https://avatars.githubusercontent.com/u/31830596?v=4
- Repositories: 39
- Last ynced at: 2025-01-19T06:51:54.081Z
- Profile URL: https://github.com/sentinel-hub
GitHub Events
Total
- Create event: 3
- Commit comment event: 1
- Issues event: 2
- Watch event: 13
- Delete event: 1
- Member event: 1
- Issue comment event: 20
- Push event: 24
- Pull request review comment event: 16
- Pull request review event: 14
- Pull request event: 30
- Fork event: 8
Last Year
- Create event: 3
- Commit comment event: 1
- Issues event: 2
- Watch event: 13
- Delete event: 1
- Member event: 1
- Issue comment event: 20
- Push event: 24
- Pull request review comment event: 16
- Pull request review event: 14
- Pull request event: 30
- Fork event: 8
Committers metadata
Last synced: 4 days ago
Total Commits: 1,502
Total Committers: 68
Avg Commits per committer: 22.088
Development Distribution Score (DDS): 0.79
Commits in past year: 110
Committers in past year: 19
Avg Commits per committer in past year: 5.789
Development Distribution Score (DDS) in past year: 0.709
Name | Commits | |
---|---|---|
MonjaSebela | 5****a | 315 |
Jonas Viehweger | j****r@s****m | 201 |
Sabina Dolenc | s****c@s****m | 121 |
Monja Šebela | m****a@s****m | 98 |
Matej Batič | m****c@s****m | 98 |
gmilcinski | g****i@s****m | 91 |
Blaz Sovdat | b****t@g****m | 64 |
wray | w****y@s****m | 58 |
Dorothyrono | r****y@y****m | 52 |
chorng | c****g@s****m | 40 |
azlinszky | a****y@s****m | 33 |
Maxim Lamare | m****e@s****m | 30 |
mkampen | m****n@s****m | 28 |
Miha Kadunc | m****c@s****m | 26 |
Gergely Padányi-Gulyás | f****1@g****m | 24 |
Marjan Sterk | m****k@s****m | 23 |
mrepse | m****e@s****m | 20 |
Prashansa Gupta | p****3@g****m | 16 |
dr. Zlinszky András | d****a@s****t | 11 |
Lucia Guardamino | l****o@s****m | 10 |
Dino Horvat | d****t@s****m | 10 |
dkorais | d****s@s****m | 10 |
iespinosa | i****a@s****m | 10 |
Matt Ballard | 9****t | 7 |
Matic Lubej | m****j@s****m | 6 |
MarkWilliamMatthews | m****k@c****m | 6 |
Jonas Viehweger | j****r@p****m | 6 |
Klemen Cankar | k****r@s****m | 5 |
ESC-QU | 8****U | 5 |
zcernigoj | 5****j | 5 |
and 38 more... |
Committer domains:
- sinergise.com: 27
- planet.com: 4
- blazs-sinergise.localdomain: 2
- si.net: 2
- vito.be: 1
- it-1712.alig.hu: 1
- fqxgftjfpp.kpn: 1
- hemali.majithia-rnwpl25qh1: 1
- cyanolakes.com: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 30
Total pull requests: 326
Average time to close issues: 5 months
Average time to close pull requests: 5 days
Total issue authors: 28
Total pull request authors: 57
Average comments per issue: 2.13
Average comments per pull request: 0.33
Merged pull request: 305
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 42
Past year average time to close issues: about 6 hours
Past year average time to close pull requests: 8 days
Past year issue authors: 2
Past year pull request authors: 14
Past year average comments per issue: 2.5
Past year average comments per pull request: 0.67
Past year merged pull request: 36
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- moussmo (2)
- maximlamare (2)
- MirelSIG (1)
- mkganyago (1)
- abdallah-abdelmajeed (1)
- geom16011 (1)
- nmt28 (1)
- smaprs (1)
- garimss (1)
- madi (1)
- JoeyFaulkner (1)
- Narayana-Rao (1)
- makovz (1)
- CTO22 (1)
- dderanja (1)
Top Pull Request Authors
- MonjaSebela (78)
- jonasViehweger (38)
- sabinadolenc (37)
- maximlamare (17)
- Dorothyrono (15)
- chorng (14)
- azlinszkysinergise (13)
- Kampen1988 (12)
- willrayeo (9)
- fegyi001 (8)
- TIZNEGAR (6)
- zcernigoj (5)
- dthiex (5)
- lugeo17 (5)
- msterk (4)
Top Issue Labels
Top Pull Request Labels
Dependencies
- fs-extra ^8.1.0
- linereader ^1.1.0
- minify ^5.0.0
- npm-watch ^0.6.0
- os ^0.1.1
- actions/checkout v3 composite
- actions/configure-pages v2 composite
- actions/deploy-pages v1 composite
- actions/upload-pages-artifact v1 composite
- ruby/setup-ruby v1 composite
- github-pages ~> 228 development
- html-proofer >= 0
- just-the-docs = 0.4.2
- rake >= 0
- webrick >= 0
Score: 10.731253034820835