});

# custom-scripts

A repository of custom scripts that can be used with Sentinel-Hub services.

# Collection of custom scripts

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:

You are invited to publish your own scripts - see howto.

## Sentinel-2

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 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.

## Landsat-8

The Landsat program is the longest running enterprise for acquisition of satellite imagery of Earth, running from 1972. The most recent, Landsat 8, 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.

## Envisat MODIS

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.

#### Remote sensing indices

Create a new directory entry for your custom script, say my_algorithm, depending on the sensor it is applicable for. The Javascript code goes into my_algorithm/script.js and there should be my_algorithm/README.md accompanying the script. Please follow the conventions in this example of a README.