});

custom-scripts

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

Sentinel-2 Bands

Band 1

B01 (aerosol)

Use: For aerosol detection.

Custom script: return [B01];

B1

Band 2

B02 (blue)

Use: Band 2 is useful for soil and vegetation discrimination, forest type mapping and identifying man-made features. It is scattered by the atmosphere, it illuminates material in shadows better than longer wavelengths, and it penetrates clear water better than other colors. It is absorbed by chlorophyll, which results in darker plants.

Custom script: return [B02];

B2

Band 3

B03 (green)

Use: It gives excellent contrast between clear and turbid (muddy) water, and penetrates clear water fairly well. It helps in highlighting oil on water surfaces, and vegetation. It reflects green light stronger than any other visible color. Man-made features are still visible.

Custom script: return [B03];

B3

Band 4

B04 (red)

Use: It is strongly reflected by dead foliage and is useful for identifying vegetation types, soils and urban (city and town) areas. It has limited water penetration and doesn’t reflect well from live foliage with chlorophyll.

Custom script: return [B04];

B4

Band 5

B05 (red edge)

Use: For classifying vegetation.

Custom script: return [B05];

B5

Band 6

B06

Use: For classifying vegetation.

Custom script: return [B06];

B6

Band 7

B07

Use: For classifying vegetation.

Custom script: return [B07];

B7

Band 8

B08 (NIR)

Use: The near infrared band is good for mapping shorelines and biomass content, as well as at detecting and analyzing vegetation.

Custom script: return [B08];

B8

Band 8A

B8A

Use: For classifying vegetation.

Custom script: return [B8A];

B8A

Band 9

B09

Use: It is good for detecting water vapour.

Custom script: return [B09];

B09

Band 10

B10

Use: For cirrus cloud detection.

Custom script: return [B10];

B10

Band 11

B11 (SWIR 1)

Use: It is useful for measuring the moisture content of soil and vegetation, and it provides good contrast between different types of vegetation. It helps differentiate between snow and clouds. On the other hand, it has limited cloud penetration..

Custom script: return [B11];**

B11

Band 12

B12 (SWIR 2)

Use: It is useful for measuring the moisture content of soil and vegetation, and it provides good contrast between different types of vegetation. It helps differentiate between snow and clouds. On the other hand, it has limited cloud penetration.

Custom script: return [B12];

B12