This repository contains a collection of custom scripts for Sentinel Hub, which can be fed to the services via the URL.
Scripts are organised by sensors supported on Sentinel Hub:
- Sentinel-1
- Sentinel-2
- Sentinel-3
- Sentinel-5P
- Landsat 5 and 7
- Landsat-8
- MODIS
- PlanetScope
- Airbus Pleiades
You are invited to publish your own scripts - see howto.
- Multi-temporal Processing
- Color Correction with JavaScript (by Miha Kadunc)
- Multi-year time series of multi-spectral data viewed and analyzed in Sentinel Hub (by Grega Milcinski)
- The Use of Satellite Imagery in Crisis Management after Flooding
- How to Create Cloudless Mosaics
- Educational Role of EO Browser and New Features (by Sabina Dolenc)
- Environmental Monitoring of Conflicts using Sentinel-2 data (by Wim Zwijnenburg)
- Why Newsrooms need People with Expertise in Remote Sensing (by Pierre Markuse)
- Active Volcanoes as Seen from Space (by Sabina Dolenc)
- Get Creative and Solve a Remote Sensing Problem at Home from your PC and Win! (by Grega Milcinski)
- Measuring Air Pollution from Space (by Sabina Dolenc)
- Mapping deforestation with Sentinel Hub (by Nicolas Karasiak)
- Why join the next Sentinel Hub Custom Script Contest (by Sabina Dolenc)
- Learning Custom Scripts to make Useful and Beautiful Satellite images (by Monja Šebela)
- It’s a faaaake… — Or not? (by Pierre Markuse)
- Custom scripts: faster, cheaper, better! (by Monja Šebela)
- Water Quality Information for Everyone
- New Themes, Multi-Temporal Scripting and Other Improvements in EO Browser (by Monja Šebela)
The Sentinel-1 imagery is provided by two polar-orbiting satellites, operating day and night performing C-band synthetic aperture radar imaging, enabling them to acquire imagery regardless of the weather. Main applications are for monitoring sea ice, oil spills, marine winds, waves & currents, land-use change, land deformation among others, and to respond to emergencies such as floods and earthquakes. The identical satellites orbit Earth 180° apart and at an altitude of almost 700 km, offering a global revisit time of 6-12 days depending on the area (check observation scenario). Sentinel-1’s radar can operate in four modes. The spatial resolution depends on the mode: approx. 5 m x 20 m for IW mode and approx. 20 m x 40 m for EW mode. See Copernicus services for more details.
- Tracking radar vegetation index
- Agricultural crop monitoring from space
- SAR for deforestation detection
- Radar vegetation index for Sentinel-1 - RVI4S1 script
- Radar vegetation index code for dual polarimetric
Dedicated to supplying data for Copernicus services, Sentinel-2 carries a multispectral imager with a swath of 290 km. The imager provides a versatile set of 13 spectral bands spanning from the visible and near infrared to the shortwave infrared, featuring four spectral bands at 10 m, six bands at 20 m and three bands at 60 m spatial resolution. As indices primarily deal with combining various band reflectances, the table of 13 bands is given here for reference (see here{:target="_blank"} for details). The names of the Sentinel-2 bands at your disposal are B01, B02, B03, B04, B05, B06, B07, B08, B8A, B09, B10, B11 and B12.
- Natural color product computed correctly to match the color perceived by the human eye.
- True color simplistic true color image from red, green and blue bands.
- Wildfire visualization (by Pierre Markuse, taken from his blog post{:target="_blank"})
- False color infrared
- NDVI - normalized difference vegetation index
- NDVI uncertainty - visualization of uncertainty of NDVI due to uncertainty in band values
- collection of remote sensing indices from an extensive Index database (IDB){:target="_blank"}
- MAX NDVI
- ARI - anthocyanin reflectance index
- mARI - modified anthocyanin reflectance index
- ARVI - atmospherically resistant vegetation index
- CHL_REDEDGE - chlorophyll red-edge
- REDEDGE_POSITION - red edge position index
- EVI - enhanced vegetation index
- EVI2 - enhanced vegetation index 2
- GNDVI - green normalized difference vegetation index
- MCARI - modified chlorophyll absorption in reflectance index
- MSI - moisture index
- NDMI - normalized difference moisture index
- NDWI - normalized difference water index
- NDMI STRESS - normalized difference moisture index for crop moisture stress
- NBR - normalized burn ratio
- NDII - normalized difference 819/1600 NDII
- NDCI - normalized difference chlorophyll index
- NDSI - normalised difference snow index
- PSSRB1 - pigment specific simple ratio for chlorophyll b (800/650 )
- SAVI - soil adjusted vegetation index
- SIPI1 - structure insensitive pigment index
- LAI - Leaf Area Index
- Leaf chlorophyll content
- Canopy chlorophyll content
- FAPAR - the fraction of absorbed photosynthetically active radiation
- Color correction with Sentinel Hub
- PSRI - plant senescence reflectance index
- Global mosaic best pixel selection script
- TOA Ratio B09-B8A ColorMap Blue-Red & Natural Colours Script
- Tonemapped Natural Color script
- Highlight Optimized Natural Color
- Vegetation condition index
- Cohen-Braaten-Yang cloud detection
- Hollstein Clouds, Cirrus, Snow, Shadow, Water and Clear Sky Pixels detection
- Cloudless Mosaic
- Detecting deep moist convection
- Fire boundary
- burned area index for sentinel-2
- Multitemporal burnt area analysis
- Wildfire visualization (by Pierre Markuse, taken from his blog post{:target="_blank"})
- Burned Area Visualization
- False Color Composite
- Barren soil
- Land Use Visualization for Sentinel-2 Using Linear Discriminant Analysis Script
- NDVI anomaly detection
- Agricultural growth stage - multitemporal NDVI
- Forest cut temporal detection
- Pseudo forest canopy density (pseudo-FCD)
- Infrared agriculture display
- White-water detection
- Ocean plastic detector prototype
- Ulyssys Water Quality Viewer - chlorophyll and suspended sediment for water quality visualization
- Satellite Derived Bathymetry Mapping - SDBM
- Aquatic Plants and Algae Custom Script Detector (APA Script)
- se2waq - water quality for Sentinel-2
- Water In Wetlands Index (WIW)
- Selective Enhancement based on Indices
- Homage to Mondrian - artistic script
- Index visualisation - universal script for visualisation of indices
- NDVI on L2A Vegetation and natural Colours
Sentinel-3 is a low Earth-orbit moderate size satellite compatible with small launchers including VEGA and ROCKOT. The main objective of the mission is to measure sea surface topography, sea and land surface temperature, and ocean and land surface color with high accuracy and reliability to support ocean forecasting systems, environmental monitoring and climate monitoring. Ocean and Land Colour Instrument (OLCI) provides a set of 21 bands ranging from the visible to the near infrared light (400 nm < λ< 1 020 nm). The Sentinel-3 provides imagery in 300 m spatial resolution. Sentinel-3 OLCI instrument ensures continuity of the ENVISAT MERIS.
- OTCI - Terrestrial chlorophyll index
- Ulyssys Water Quality Viewer - chlorophyll and suspended sediment for water quality visualization
Sentinel-5P provides atmospheric measurements, relating to air quality, climate forcing, ozone and UV radiation with high spatio-temporal resolution. Its data is used for monitoring of concentrations of carbon monoxide (CO), nitrogen dioxide (NO2) and ozone (O3) in air as well as for monitoring of UV aerosol index (AER_AI) and different geophysical parameters of clouds (CLOUD). EO Browser serves level 2 geophysical products. The TROPOspheric Monitoring Instrument (TROPOMI) on board of the satellite operates in the ultraviolet to shortwave infrared range with 7 different spectral bands: UV-1 (270-300nm), UV-2 (300-370nm), VIS (370-500nm), NIR-1 (685-710nm), NIR-2 (755-773nm), SWIR-1 (1590-1675nm) and SWIR-3 (2305-2385nm). Its spatial resolution is below 8km for wavelengths above 300nm and below 50km for wavelength below 300nm. It covers almost the whole globe (95 % coverage for latitudes in the interval [-7°, 7°]).
The Landsat program is the longest running enterprise for acquisition of satellite imagery of Earth, running from 1972. The most recent, Landsat 8{:target="_blank"}, was launched on February 11, 2013. Landsat-8 data has 11 spectral bands with spatial resolutions ranging from 15 to 60 meters. The names of the Landsat-8 bands at your disposal are B01, B02, B03, B04, B05, B06, B07, B08, B09, B10 and B11.
- collection of remote sensing indices from an extensive Index database (IDB){:target="_blank"}
- Build-up index
- NDVI
Landsat 7 and the retired Landsat 5 orbit's are sun-synchronous, with near-polar orbits, flying at an altitude of 705 km (438 mi). Landsat 5 long outlived its original three-year design life. Developed by NASA and launched in 1984, Landsat 5 has orbited the planet over 150,000 times while transmitting over 2.5 million images land surface images around the world. The Landsat 7 satellite still orbits the the Earth in a sun-synchronous, near-polar orbit, at an altitude of 705 km (438 mi). The satellites are multispectra, providing visible, near infrared, mid infrared and thermal bands.
For more on Landsat 5, including its available bands, read here{:target="_blank"} and for Landsat 7, read here.{:target="_blank"}.
The Moderate Resolution Imaging Spectroradiometer (MODIS) MCD43A4 version 6 on Sentinel Hub is hosted at Amazon Web Services (AWS). Dataset is updated daily and provides the 500 meter Nadir Bidirectional reflectance distribution function Adjusted Reflectance (NBAR) data of MODIS "land" bands 1-7: B01, B02, B03, B04, B05, B06 and B07.
- collection of remote sensing indices from an extensive Index database (IDB){:target="_blank"}
PlanetScope satellite constellation consists of more than 130 small satellites called Doves. The satellites are launched in groups, which constantly improves mission's characteristics such as revisit times, spatial and spectral resolutions. PlanetScope data complements Sentinel-2 with better spatial resolution (3m) and almost global daily coverage. It is an excellent source for vegetation monitoring. For more information on PlanetScope, visit our documentation page.
The spectral bands of PlanetScope data are the following:
B1 - Blue, resolution 3m
B2 - Green, resolution 3m
B3 - Red, resolution 3m
B4 - Near Infrared, resolution 3m
Pléiades constelation is composed of two twin satellites orbiting the Earth 180° apart. The satellites deliver the incredible global 0.5 m spectral resolution imagery. Pleiades' satellites share the orbit with SPOT satellites, which makes it possible to combine the data form both sources. The Pléiades data with its high spatial resolution is suitable for a wide range of remote sensing applications such as vegetation monitoring, precise mapping, as well as risk and disaster management. To learn more about Pleiades, visit our documentation page.
The spectral bands of Pleiades data are the following:
B0 - Blue (430-550 nm, resolution 2m)
B1 - Green (490-610 nm, resolution 2m)
B2 - Red (600-720 nm), resolution 2m
B3 - Near Infrared (750-950 nm), resolution 2m
PAN - Panchromatic (480-830 nm), resolution 0.5m
Pleiades's RGB bands are in 2 meter spatial resolution. To take advantage of the 0.5 m PAN band, the pansharpening process is required.
Have a look at the template and follow the procedure described there.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.