custom-scripts
A repository of custom scripts to be used with Sentinel Hub
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
A repository of custom scripts to be used with Sentinel Hub
Basic Info
- Host: GitHub
- Owner: sentinel-hub
- License: cc-by-sa-4.0
- Language: JavaScript
- Default Branch: main
- Homepage: https://custom-scripts.sentinel-hub.com/
- Size: 1.13 GB
Statistics
- Stars: 684
- Watchers: 57
- Forks: 305
- Open Issues: 3
- Releases: 0
Topics
Metadata Files
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 theexampledirectory to proper directory, based on which datasource (satellite) you are publishing the product for, to something that describes what the product is about, say `myalgorithm`._
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.mdfile.
Obviously, you'll want to remove this chapter, but use the rest of the file as a template.
Have a look around at otherREADME.mdfiles 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.jsfile.
The most work is of course the JavaScript implementation of the product. Theexamplefolder 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.mdin 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.ymlfile 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 installAdd the missing webrick package with
bundle add webrick- Run this command again when the following error message pops out:
bundler: failed to load command: jekyllthen the site can be built with
bundle exec jekyll serveThe site should then be visible on
127.0.0.1:4000
Owner
- Name: Sentinel Hub
- Login: sentinel-hub
- Kind: organization
- Email: info@sentinel-hub.com
- Website: https://www.sentinel-hub.com
- Twitter: sentinel_hub
- Repositories: 39
- Profile: https://github.com/sentinel-hub
Sentinel Hub services by Sinergise Solutions d.o.o.
GitHub Events
Total
- Create event: 5
- Commit comment event: 1
- Issues event: 3
- Watch event: 23
- Delete event: 1
- Member event: 2
- Issue comment event: 24
- Push event: 33
- Pull request review comment event: 16
- Pull request review event: 14
- Pull request event: 38
- Fork event: 12
Last Year
- Create event: 5
- Commit comment event: 1
- Issues event: 3
- Watch event: 23
- Delete event: 1
- Member event: 2
- Issue comment event: 24
- Push event: 33
- Pull request review comment event: 16
- Pull request review event: 14
- Pull request event: 38
- Fork event: 12
Committers
Last synced: 10 months ago
Top Committers
| 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 (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 31
- Total pull requests: 333
- Average time to close issues: 5 months
- Average time to close pull requests: 6 days
- Total issue authors: 29
- Total pull request authors: 57
- Average comments per issue: 2.06
- Average comments per pull request: 0.38
- Merged pull requests: 314
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 38
- Average time to close issues: about 1 hour
- Average time to close pull requests: 16 days
- Issue authors: 2
- Pull request authors: 11
- Average comments per issue: 0.5
- Average comments per pull request: 0.97
- Merged pull requests: 31
- Bot issues: 0
- Bot pull requests: 0
Top Authors
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)
Pull Request Authors
- MonjaSebela (78)
- jonasViehweger (42)
- sabinadolenc (37)
- azlinszkysinergise (23)
- maximlamare (18)
- chorng (16)
- Dorothyrono (15)
- Kampen1988 (13)
- willrayeo (10)
- fegyi001 (8)
- AmberMulder (7)
- dthiex (6)
- TIZNEGAR (6)
- lugeo17 (5)
- dipankar05 (4)
Top Labels
Issue Labels
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