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
- DEM
- PlanetScope
- Airbus Pleiades
- Airbus SPOT
- Data fusion
- Copernicus services
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
- Water surface roughness visualization
- SAR-Ice: A Sea Ice RGB Composite
- Oil Slicks and Red Tide Monitoring
- SAR multi-temporal backscatter coefficient composite
- Soil Moisture Estimation
- Reactiv - HSV based temporal change detection
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.
- True color - Simplistic true color image from red, green and blue bands.
- False color infrared - False Color Infrared RGB Composite
- SWIR - Short Wave Infrared RGB Composite
- False Color Urban - False Color Urban RGB Composite
- Wildfire visualization (by Pierre Markuse, taken from his blog post{:target="_blank"})
- 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
- FCOVER - the fraction of green vegetation cover
- 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
- Vegetation productivity indicator
- Cohen-Braaten-Yang cloud detection
- Hollstein Clouds, Cirrus, Snow, Shadow, Water and Clear Sky Pixels detection
- Cloudless Mosaic
- Cloud statistics
- Observation outlier detection
- Snow classifier
- Monthly snow report
- Snow cover change detection
- NDSI Visualized - Visualized normalized difference snow index
- 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
- Active Fire Detection
- Deep BAIS2 (Burned Area Index for Sentinel 2)
- Landslide detection for rapid Mapping
- False Color Composite
- Barren soil
- Land Use Visualization for Sentinel-2 Using Linear Discriminant Analysis Script
- Bare soil detector
- Scene Classification
- 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)
- Natural color product computed correctly to match the color perceived by the human eye.
- 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
- PUCK - Perceptually-Uniform Color Map Kit
- MixLAI - Mix Leaf Area Index
- Detection of evapotranspiration levels
- Aesthetic Neon - Aesthetic visualization for urban and dry (desert) areas
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.
- Enhanced true color
- Enhanced true color-2
- OLCI Natural Colours with Sigmoid
- Highlight optimized true color
- Tristimulus
- VMI3 - Vegetation and land monitoring with cloud mask
- OTCI - Terrestrial chlorophyll index
- Ulyssys Water Quality Viewer - chlorophyll and suspended sediment for water quality visualization
- NDBI - Normalized Bare ice Index
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"}
DEM (digital elevation model) is a 3D representation of the terrain's surface created from terrain elevation data. It can be used for terrain analysis and orthorectification, which helps improve the accuracy of satellite imagery. With DEM, you are able to measure and analyze your area of interest or integrate data into a 3D application as a terrain data source. Sentinel Hub is using MapZen's DEM, available through Amazon Web Services (AWS) in US. This dataset is based on SRTM30 (30 m resolution) but is in several places improved with local datasets. It is static and does not depend on the date (the values are updating as MapZen is improving the dataset). Read the blog post on how to explore the DEM dataset and see our API documentation for details.
- DEM color visualization
- DEM grayscale visualization
- DEM sepia visualization
- DEM contour lines
- DEM difference visualization
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.
SPOT 6/7 is a satellite constellation providing very high-resolution optical imagery and is owned by Airbus. It is composed of two twin satellites orbiting the Earth 180° apart. The satellites deliver 1.5 m optical imagery and offer a daily revisit capability to any point on the globe. SPOT 6/7 data with its high spatial resolution is suitable for a range of remote sensing applications such as vegetation monitoring, precise mapping, risk and disaster management. To learn more about SPOT, visit our documentation page.
The spectral bands of SPOT data are the following:
B0 - Blue (454-519 nm, resolution 6m)
B1 - Green (527-587 nm, resolution 6m)
B2 - Red (624-694 nm), resolution 6m
B3 - Near Infrared (756-880 nm), resolution 6m
PAN - Panchromatic (455-744 nm), resolution 1.5m
SPOT's RGB bands are in 6 meter spatial resolution. To take advantage of the 1.5 m PAN band, the pansharpening process is required.
Note: Because Pleiades and SPOT bands are very similar in wavelengths, the same custom scripts are used for both constellations.
The combination of multiple remote sensing data sources can provide invaluable information that would not be obtained with a single sensor alone. Observation-level or pixel-based fusion combines pixels from different sources to form an image containing new information (more information). Two widely used examples of pixel-based fusion are pan-sharpening and the fusion of radar and multispectral optical images. On the one hand, pan-sharpening consists of blending a high-resolution panchromatic image with a lower resolution multispectral image to obtain a high-resolution multispectral image. On the other hand, the combination of radar and optical imagery provides images with increased spectral resolution that can mitigate the drawbacks of each product (such as cloud cover for optical images), but also provide increased temporal resolution with more frequent overpasses.
- Mapping Soybean and Maize NDVI with Sentinel-1 and Sentinel-2
- Sentinel-2 with cloudy parts replaced by Sentinel-1
- Ship detection with Sentinel-1 and Sentinel-2
- Built-up area detection with Sentinel-1 and Sentinel-2
- Sentinel-3 OLCI true color under Sentinel-5P products
- DEM contour lines over true color Landsat 8
- Forest fire progression monitoring with Sentinel-2 and Sentinel-1
- Historic NDVI changes with Landsat 4-5 TM and Landsat 8
In 1985 the 'Coordination of Information on the Environment' (CORINE) programme was initiated by the European Commission. It aimed at collecting environmental information on high priority topics for the European Union (air, water, soil, land cover, coastal erosion, biotopes, etc.). Since 1994, the established databases and programmes are managed by the European Environment Agency (EEA). The CORINE Land Cover (CLC) inventory is a vector-based dataset that consists of 44 land cover and land use classes.
CORINE Land Cover data is available in our public collections.
Global Land Cover products at 100 m resolution are delivered annually by The Copernicus Global Land Service (CGLS). The most recent collection 3 (version 3.0.1) of 100 m Land Cover products for the years 2015 - 2019 were generated from the PROBA-V 100 m and 300 m satellite observations and several other ancillary datasets, with global coverage. Global Land Cover products are generated from 3 years input data in three modes: base reference, consolidated or near real time mode. As from 2020, (2019-conso and 2020-nrt products) are planned to be generated from the combination of Sentinel-1 and Sentinel-2 satellite observations following end of PROBA-V operations. The Global Land Cover data contains one main land cover discrete classification map and several other additional layers. For more information on Global land cover products, see the product User Manual.
Global Land Cover data is available in our public collections
The Global Surface Water dataset was developed by the European Commission's Joint Research Centre (JRC) within the framework of the Copernicus Programme. It is derived from Landsat 5, 7 and 8 imagery and shows various aspects of the spatio-temporal distribution of surface water between 1984 and 2020 (with annual revisions) at the global scale in six different layers.
- Occurrence - Intra- and inter-annual frequency of surface water presence in the entire time range.
- Occurrence Change Intensity - Changes in water occurrence between two epochs, the first ranging from 1984 to 1999 and the second covering 2000 to 2020.
- Seasonality - Intra-annual distribution of surface water in the selected review year.
- Recurrence - Inter-annual variability of surface water presence in a defined water period within the entire time range.
- Transitions - Visualises changes in the three surface water classes (1) not water, (2) seasonal water, and (3) permanent water between the first and last year in the entire time period.
- Extent - Maximum extent of surface water bodies in the entire time range.
Global Surface Water data is available in our public collections.
Please check the official Global Surface Water website for more details. Detailed information on the processing methodology for the included layers can be found in the Data Users Guide and Pekel et al. (2016) as the associated scientific publication.
- Global Surface Water Occurrence visualisation script
- Global Surface Water Occurrence Change Intensity visualisation script
- Global Surface Water Seasonality visualisation script
- Global Surface Water Recurrence visualisation script
- Global Surface Water Transitions visualisation script
- Global Surface Water Extent visualisation script
The Global Water Bodies product shows the surface extent covered by inland water on permanent, seasonal or occasional basis. The product available here is the Water Bodies 100m Version 1 collection which is derived from Sentinel-2 level 1C data, starting from October 2020 after the end of the PROBA-V mission and is delivered as a monthly composite product at 100m resolution. The Water Bodies product contains one main water Bodies detection layer (WB) and one Quality layer (QUAL) that provides information on the seasonal dynamics of the detected water bodies. Water Bodies detection layer (WB) shows water bodies detected using the Modified Normalized Difference Water Index (MNDWI) derived from Sentinel-2 Level 1C data. The Quality layer (QUAL) is generated from water body occurrence statistics computed from previous monthly Water Bodies products.The occurrence statistics is ranked from low occurrence to permanent occurrence. More information about the data can be obtained from the Water Bodies product page.
Water Bodies 100m data is available in our public collections
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.