});

custom-scripts

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

Sentinel-2 RS indices

The following collection of remote sensing indices has been constructed from the information available at the Index database (IDB) specifically for Sentinel-2 satellite.

Javascript functions have been parsed from the data automatically, so please note there might be errors and feedback will be appreciated. Also note that the intervals where various indices are mapped to colors are estimations and as such might not work best for all use cases. Tweak the scripts and let us know about your findings.

Abbreviation Name Custom script Open in Playground
ATSAVI Adjusted transformed soil-adjusted VI id_209.js Playground
Alteration Alteration id_1.js Playground
ARI Anthocyanin reflectance index id_214.js Playground
AVI Ashburn Vegetation Index id_574.js Playground
ARVI Atmospherically Resistant Vegetation Index id_4.js Playground
ARVI2 Atmospherically Resistant Vegetation Index 2 id_396.js Playground
BWDRVI Blue-wide dynamic range vegetation index id_136.js Playground
BRI Browning Reflectance Index id_480.js Playground
CCCI Canopy Chlorophyll Content Index id_224.js Playground
CARI Chlorophyll Absorption Ratio Index id_142.js Playground
CARI2 Chlorophyll Absorption Ratio Index 2 id_250.js Playground
Chlgreen Chlorophyll Green id_251.js Playground
CIgreen Chlorophyll Index Green id_128.js Playground
CIrededge Chlorophyll IndexRedEdge id_131.js Playground
Chlred-edge Chlorophyll Red-Edge id_252.js Playground
CVI Chlorophyll vegetation index id_391.js Playground
CI Coloration Index id_11.js Playground
CTVI Corrected Transformed Vegetation Index id_244.js Playground
CRI550 CRI550 id_253.js Playground
CRI700 CRI700 id_254.js Playground
Datt1 Datt1 id_150.js Playground
Datt4 Datt4 id_153.js Playground
Datt6 Datt6 id_155.js Playground
D678/500 Difference 678/500 id_481.js Playground
D800/550 Difference 800/550 id_398.js Playground
D800/680 Difference 800/680 id_403.js Playground
D833/658 Difference 833/658 id_551.js Playground
GDVI Difference NIR/Green Green Difference Vegetation Index id_27.js Playground
DVIMSS Differenced Vegetation Index MSS id_569.js Playground
EVI Enhanced Vegetation Index id_16.js Playground
EVI2 Enhanced Vegetation Index 2 id_237.js Playground
EVI2 Enhanced Vegetation Index 2 -2 id_576.js Playground
EPI EPI id_256.js Playground
Fe2+ Ferric iron, Fe2+ id_18.js Playground
Fe3+ Ferric iron, Fe3+ id_19.js Playground
Ferric Oxides Ferric Oxides id_20.js Playground
Ferrous iron Ferrous iron id_21.js Playground
Ferrous Silicates Ferrous Silicates id_22.js Playground
GEMI Global Environment Monitoring Index id_25.js Playground
GVMI Global Vegetation Moisture Index id_372.js Playground
Gossan Gossan id_26.js Playground
GARI Green atmospherically resistant vegetation index id_363.js Playground
GLI Green leaf index id_375.js Playground
GNDVI Green Normalized Difference Vegetation Index id_28.js Playground
GOSAVI Green Optimized Soil Adjusted Vegetation Index id_29.js Playground
GSAVI Green Soil Adjusted Vegetation Index id_31.js Playground
GBNDVI Green-Blue NDVI id_186.js Playground
GRNDVI Green-Red NDVI id_185.js Playground
H Hue id_34.js Playground
IVI Ideal vegetation index id_276.js Playground
I Intensity id_36.js Playground
IR550 Inverse reflectance 550 id_368.js Playground
IR700 Inverse reflectance 700 id_367.js Playground
Laterite Laterite id_38.js Playground
LCI Leaf Chlorophyll Index id_109.js Playground
LWCI Leaf Water Content Index id_129.js Playground
LogR Log Ratio id_243.js Playground
Maccioni Maccioni id_166.js Playground
MCARI/OSAVI MCARI/OSAVI id_192.js Playground
mCRIG mCRIG id_257.js Playground
mCRIRE mCRIRE id_258.js Playground
MVI Mid-infrared vegetation index id_541.js Playground
MGVI Misra Green Vegetation Index id_571.js Playground
MNSI Misra Non Such Index id_573.js Playground
MSBI Misra Soil Brightness Index id_570.js Playground
MYVI Misra Yellow Vegetation Index id_572.js Playground
mND680 mND680 id_259.js Playground
mARI Modified anthocyanin reflectance index id_215.js Playground
MCARI Modified Chlorophyll Absorption in Reflectance Index id_41.js Playground
MCARI1 Modified Chlorophyll Absorption in Reflectance Index 1 id_42.js Playground
mNDVI Modified NDVI id_164.js Playground
mSR Modified Simple Ratio id_167.js Playground
MSR670 Modified Simple Ratio 670,800 id_110.js Playground
MSRNir/Red Modified Simple Ratio NIR/RED id_362.js Playground
MSAVIhyper Modified Soil Adjusted Vegetation Index hyper id_45.js Playground
MTVI1 Modified Triangular Vegetation Index 1 id_46.js Playground
NLI Nonlinear vegetation index id_111.js Playground
Norm G Norm G id_50.js Playground
Norm NIR Norm NIR id_51.js Playground
Norm R Norm R id_52.js Playground
PPR Normalized Difference 550/450 Plant pigment ratio id_483.js Playground
PVR Normalized Difference 550/650 Photosynthetic vigour ratio id_484.js Playground
ND774/677 Normalized Difference 774/677 id_563.js Playground
GNDVIhyper Normalized Difference 780/550 Green NDVI hyper id_400.js Playground
ND782/666 Normalized Difference 782/666 id_385.js Playground
ND790/670 Normalized Difference 790/670 id_278.js Playground
ND800/2170 Normalized Difference 800/2170 id_462.js Playground
PSNDc2 Normalized Difference 800/470 Pigment specific normalised difference C2 id_306.js Playground
PSNDc1 Normalized Difference 800/500 Pigment specific normalised difference C1 id_286.js Playground
GNDVIhyper2 Normalized Difference 800/550 Green NDVI hyper 2 id_419.js Playground
PSNDb1 Normalized Difference 800/650 Pigment specific normalised difference B1 id_285.js Playground
PSNDa1 Normalized Difference 800/675 Pigment specific normalised difference A1 id_284.js Playground
ND800/680 Normalized Difference 800/680 Pigment specific normalised difference A2, Lichtenthaler indices 1, NDVIhyper id_260.js Playground
NDII Normalized Difference 819/1600 NDII id_242.js Playground
NDII2 Normalized Difference 819/1649 NDII 2 id_548.js Playground
NDMI Normalized Difference 820/1600 Normalized Difference Moisture Index id_56.js Playground
ND827/668 Normalized Difference 827/668 id_528.js Playground
ND833/1649 Normalized Difference 833/1649 Infrared Index id_554.js Playground
ND833/658 Normalized Difference 833/658 id_550.js Playground
SIWSI Normalized Difference 860/1640 id_219.js Playground
ND895/675 Normalized Difference 895/675 id_544.js Playground
NGRDI Normalized Difference Green/Red Normalized green red difference index, Visible Atmospherically Resistant Indices Green (VIgreen) id_390.js Playground
NDVI Normalized Difference MIR/NIR Normalized Difference Vegetation Index (in case of strong atmospheric disturbances) id_59.js Playground
BNDVI Normalized Difference NIR/Blue Blue-normalized difference vegetation index id_135.js Playground
GNDVI Normalized Difference NIR/Green Green NDVI id_401.js Playground
MNDVI Normalized Difference NIR/MIR Modified Normalized Difference Vegetation Index id_245.js Playground
NDVI Normalized Difference NIR/Red Normalized Difference Vegetation Index, Calibrated NDVI - CDVI id_58.js Playground
NDRE Normalized Difference NIR/Rededge Normalized Difference Red-Edge id_223.js Playground
NBR Normalized Difference NIR/SWIR Normalized Burn Ratio id_53.js Playground
RI Normalized Difference Red/Green Redness Index id_74.js Playground
NDSI Normalized Difference Salinity Index id_57.js Playground
NDVI690-710 Normalized Difference Vegetation Index 690-710 id_361.js Playground
NDVIc Normalized Difference Vegetation Index C id_377.js Playground
OSAVI Optimized Soil Adjusted Vegetation Index id_63.js Playground
PNDVI Pan NDVI id_188.js Playground
PVI Perpendicular Vegetation Index id_64.js Playground
RARSa1 Ratio Analysis of Reflectance Spectra A1 id_287.js Playground
RARSa2 Ratio Analysis of Reflectance Spectra A2 id_298.js Playground
RARSa3 Ratio Analysis of Reflectance Spectra A3 id_299.js Playground
RARSa4 Ratio Analysis of Reflectance Spectra A4 id_300.js Playground
RARSc3 Ratio Analysis of Reflectance Spectra C3 id_293.js Playground
RARSc4 Ratio Analysis of Reflectance Spectra C4 id_294.js Playground
RDVI RDVI id_240.js Playground
RDVI2 RDVI2 id_556.js Playground
Rededge1 Red edge 1 id_335.js Playground
Rededge2 Red edge 2 id_336.js Playground
RBNDVI Red-Blue NDVI id_187.js Playground
REIP1 Red-Edge Inflection Point 1 id_137.js Playground
REIP2 Red-Edge Inflection Point 2 id_138.js Playground
REIP3 Red-Edge Inflection Point 3 id_139.js Playground
RSR Reduced Simple Ratio id_75.js Playground
Rre Reflectance at the inflexion point id_331.js Playground
RDVI Renormalized Difference Vegetation Index id_76.js Playground
SAVImir SAVImir id_394.js Playground
IF Shape Index id_79.js Playground
MSI2 Simple Ratio 1599/819 Moisture Stress Index 2 id_547.js Playground
MSI Simple Ratio 1600/820 Moisture Stress Index id_48.js Playground
TM5/TM7 Simple Ratio 1650/2218 id_337.js Playground
SR440/740 Simple Ratio 440/740 id_415.js Playground
BGI Simple Ratio 450/550 Blue green pigment index id_210.js Playground
SR520/670 Simple Ratio 520/670 id_321.js Playground
SR550/670 Simple Ratio 550/670 id_316.js Playground
DSWI-4 Simple Ratio 550/680 Disease-Water Stress Index 4 id_271.js Playground
SR550/800 Simple Ratio 550/800 id_397.js Playground
GI Simple Ratio 554/677 Greenness Index id_32.js Playground
SR560/658 Simple Ratio 560/658 GRVIhyper id_552.js Playground
SR672/550 Simple Ratio 672/550 Datt5 id_154.js Playground
SR672/708 Simple Ratio 672/708 id_342.js Playground
SR674/553 Simple Ratio 674/553 id_355.js Playground
SR675/555 Simple Ratio 675/555 id_370.js Playground
SR675/700 Simple Ratio 675/700 id_181.js Playground
SR675/705 Simple Ratio 675/705 id_369.js Playground
SR700 Simple Ratio 700 id_402.js Playground
SR700/670 Simple Ratio 700/670 id_180.js Playground
SR710/670 Simple Ratio 710/670 id_317.js Playground
SR735/710 Simple Ratio 735/710 id_409.js Playground
SR774/677 Simple Ratio 774/677 id_562.js Playground
SR800/2170 Simple Ratio 800/2170 id_427.js Playground
PSSRc2 Simple Ratio 800/470 Pigment specific simple ratio C2 id_303.js Playground
PSSRc1 Simple Ratio 800/500 Pigment specific simple ratio C1 id_227.js Playground
SR800/550 Simple Ratio 800/550 id_123.js Playground
PSSRb1 Simple Ratio 800/650 Pigment specific simple ratio B1 id_283.js Playground
RVI Simple Ratio 800/670 Ratio Vegetation Index id_72.js Playground
PSSRa1 Simple Ratio 800/675 Pigment specific simple ratio A1 id_282.js Playground
SR800/680 Simple Ratio 800/680 Pigment Specific Simple Ratio (Cholophyll a) (PSSRa) id_176.js Playground
SR801/550 Simple Ratio 801/550 NIR/Green id_346.js Playground
SR801/670 Simple Ratio 801/670 NIR/Red id_345.js Playground
PBI Simple Ratio 810/560 Plant biochemical index id_212.js Playground
SR833/1649 Simple Ratio 833/1649 MSIhyper id_553.js Playground
SR833/658 Simple Ratio 833/658 id_549.js Playground
Datt2 Simple Ratio 850/710 Datt2 id_151.js Playground
SR860/550 Simple Ratio 860/550 id_343.js Playground
SR860/708 Simple Ratio 860/708 id_344.js Playground
RDI Simple Ratio MIR/NIR Ratio Drought Index id_71.js Playground
SRMIR/Red Simple Ratio MIR/Red Eisenhydroxid-Index id_14.js Playground
SRNir/700-715 Simple Ratio NIR/700-715 id_366.js Playground
GRVI Simple Ratio NIR/G Green Ratio Vegetation Index id_30.js Playground
SRNIR/MIR Simple Ratio NIR/MIR id_479.js Playground
DVI Simple Ratio NIR/RED Difference Vegetation Index, Vegetation Index Number (VIN) id_12.js Playground
RRI1 Simple Ratio NIR/Rededge RedEdge Ratio Index 1 id_132.js Playground
IO Simple Ratio Red/Blue Iron Oxide id_203.js Playground
RGR Simple Ratio Red/Green Red-Green Ratio id_213.js Playground
SRRed/NIR Simple Ratio Red/NIR Ratio Vegetation-Index id_568.js Playground
SRSWIRI/NIR Simple Ratio SWIRI/NIR Ferrous Minerals id_205.js Playground
SB1580 Single Band 1580 id_505.js Playground
SB2100 Single Band 2100 id_516.js Playground
SB2130 Single Band 2130 id_517.js Playground
SB2180 Single Band 2180 id_518.js Playground
SB2218 Single Band 2218 id_340.js Playground
SB2240 Single Band 2240 id_519.js Playground
SB2250 Single Band 2250 id_520.js Playground
SB2270 Single Band 2270 id_521.js Playground
SB2280 Single Band 2280 id_522.js Playground
SB460 Single Band 460 id_488.js Playground
BB3 Single Band 470 Blackburn3 id_309.js Playground
SR495 Single Band 495 id_533.js Playground
SB550 Single Band 550 id_347.js Playground
SB555 Single Band 555 id_534.js Playground
SB655 Single Band 655 id_535.js Playground
SB660 Single Band 660 id_490.js Playground
SB670 Single Band 670 id_348.js Playground
SB675 Single Band 675 id_536.js Playground
BB1 Single Band 680 Blackburn1 id_307.js Playground
SB700 Single Band 700 id_349.js Playground
SB703 Single Band 703 Boochs id_140.js Playground
SB705 Single Band 705 id_312.js Playground
SB735 Single Band 735 id_537.js Playground
SB801 Single Band 801 id_350.js Playground
SB850 Single Band 850 id_383.js Playground
SB885 Single Band 885 id_538.js Playground
SAVI Soil Adjusted Vegetation Index id_87.js Playground
SARVI Soil and Atmospherically Resistant Vegetation Index id_134.js Playground
SARVI2 Soil and Atmospherically Resistant Vegetation Index 2 id_387.js Playground
SAVI3 Soil and Atmospherically Resistant Vegetation Index 3 id_555.js Playground
SBL Soil Background Line id_353.js Playground
Soil Composition Index Soil Composition Index id_88.js Playground
SAVI2 Soil-adjusted vegetation index 2 id_310.js Playground
SLAVI Specific Leaf Area Vegetation Index id_89.js Playground
SQRT(IR/R) SQRT(IR/R) id_200.js Playground
SIPI1 Structure Intensive Pigment Index 1 id_90.js Playground
SIPI3 Structure Intensive Pigment Index 3 id_291.js Playground
SBI Tasselled Cap - brightness id_91.js Playground
GVIMSS Tasselled Cap - Green Vegetation Index MSS id_564.js Playground
NSIMSS Tasselled Cap - Non Such Index MSS id_567.js Playground
SBIMSS Tasselled Cap - Soil Brightness Index MSS id_565.js Playground
GVI Tasselled Cap - vegetation id_92.js Playground
WET Tasselled Cap - wetness id_93.js Playground
YVIMSS Tasselled Cap - Yellow Vegetation Index MSS id_566.js Playground
TCARI/OSAVI TCARI/OSAVI id_191.js Playground
TCARI Transformed Chlorophyll Absorbtion Ratio id_96.js Playground
TNDVI Transformed NDVI id_202.js Playground
TSAVI Transformed Soil Adjusted Vegetation Index id_97.js Playground
TSAVI Transformed Soil Adjusted Vegetation Index 2 id_247.js Playground
TVI Transformed Vegetation Index id_98.js Playground
TCI Triangular chlorophyll index id_392.js Playground
VI700 Vegetation Index 700 id_358.js Playground
VARIgreen Visible Atmospherically Resistant Index Green id_356.js Playground
VARI700 Visible Atmospherically Resistant Indices 700 id_359.js Playground
VARIrededge Visible Atmospherically Resistant Indices RedEdge id_130.js Playground
WDVI Weighted Difference Vegetation Index id_104.js Playground
WDRVI Wide Dynamic Range Vegetation Index id_125.js Playground