Skip to content

Commit 7ab34b3

Browse files
committed
renaming of planet scope and sky sat bands
1 parent 4a8954a commit 7ab34b3

File tree

20 files changed

+70
-70
lines changed

20 files changed

+70
-70
lines changed

planet_scope/cloud_classification/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description
1616

17-
PlanetScope has several usable data mask (UDM2) bands. The `UDM2_Clear` band gives information on whether the pixel is clear, meaning that the surface is clearly visible. If it's not clear, that means it's classified as either shadow, snow, light haze, heavy haze or cloud. Each of these is a separate UDM2 mask band:
17+
PlanetScope has several usable data mask (UDM2) bands. The `clear` band gives information on whether the pixel is clear, meaning that the surface is clearly visible. If it's not clear, that means it's classified as either shadow, snow, light haze, heavy haze or cloud. Each of these is a separate UDM2 mask band:
1818

19-
- UDM2_Snow
20-
- UDM2_Shadow
21-
- UDM2_LightHaze
22-
- UDM2_HeavyHaze
23-
- UDM2_Cloud
19+
- snow
20+
- shadow
21+
- haze_light
22+
- haze_heavy
23+
- cloud
2424

25-
When the mask band == 1, the pixel belongs to the mask (for example, when UDM2_Snow == 1, the pixel was recognized as snow). The bands are mutually exclusive - if a pixel belongs to one mask class, it cannot belong to any other.
25+
When the mask band == 1, the pixel belongs to the mask (for example, when `snow` == 1, the pixel was recognized as snow). The bands are mutually exclusive - if a pixel belongs to one mask class, it cannot belong to any other.
2626

2727
In the script, each of the UDM2 mask bands is classified with a unique color, and the pixels that do not belong to any class, are returned transparent.
2828

planet_scope/cloud_classification/script.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ function setup() {
55
return {
66
input: [{
77
bands: [
8-
"UDM2_Clear",
9-
"UDM2_Snow",
10-
"UDM2_Shadow",
11-
"UDM2_LightHaze",
12-
"UDM2_HeavyHaze",
13-
"UDM2_Cloud"
8+
"clear",
9+
"snow",
10+
"shadow",
11+
"haze_light",
12+
"haze_heavy",
13+
"cloud"
1414
]
1515
}],
1616
output: {
@@ -20,19 +20,19 @@ function setup() {
2020
}
2121

2222
function evaluatePixel(samples) {
23-
if (samples.UDM2_Snow == 1) {
23+
if (samples.snow == 1) {
2424
return [0, 0.5, 1, 1] // blue
2525
}
26-
if (samples.UDM2_Shadow == 1) {
26+
if (samples.shadow == 1) {
2727
return [0.4, 0.4, 0.4, 1] //grey
2828
}
29-
if (samples.UDM2_LightHaze == 1) {
29+
if (samples.haze_light == 1) {
3030
return [0, 0.9, 1, 1] //sky blue
3131
}
32-
if (samples.UDM2_HeavyHaze == 1) {
32+
if (samples.haze_heavy == 1) {
3333
return [1, 0.7, 1, 1] //light pink
3434
}
35-
if (samples.UDM2_Cloud == 1) {
35+
if (samples.cloud == 1) {
3636
return [0.7, 0.7, 0.7, 1] //white
3737
}
3838
else {

planet_scope/false_color/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description
1616

17-
The [False color](https://en.wikipedia.org/wiki/False_color) infrared composite maps near-infrared spectral band B4 with red and green bands, B3 and B2, to [sRGB](https://en.wikipedia.org/wiki/SRGB) components directly. It is most commonly used to assess plant density and healht, as plants reflect near infrared and green light, while absorbing red. Since they reflect more near infrared than green, plant-covered land appears deep red. Denser plant growth is darker red. Cities and exposed ground are gray or tan, and water appears blue or black.
17+
The [False color](https://en.wikipedia.org/wiki/False_color) infrared composite maps near-infrared spectral band `nir` with `red` and `green` bands to [sRGB](https://en.wikipedia.org/wiki/SRGB) components directly. It is most commonly used to assess plant density and healht, as plants reflect near infrared and green light, while absorbing red. Since they reflect more near infrared than green, plant-covered land appears deep red. Denser plant growth is darker red. Cities and exposed ground are gray or tan, and water appears blue or black.
1818

1919
## Description of representative images
2020

planet_scope/false_color/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
function setup() {
55
return {
6-
input: ["NIR", "Green", "Blue"],
6+
input: ["nir", "green", "blue"],
77
output: { bands: 3 }
88
};
99
}
1010

1111
function evaluatePixel(sample) {
12-
return [sample.NIR / 3000, sample.Green / 3000, sample.Blue / 3000];
12+
return [sample.nir / 3000, sample.green / 3000, sample.blue / 3000];
1313
}

planet_scope/green_city/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description of the script
1616

planet_scope/green_city/script.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Author of the script: Carlos Bentes
33
*/
44

55
// Normalized Difference Vegetation Index
6-
var ndvi = (NIR - Red) / (NIR + Red);
6+
var ndvi = (nir - red) / (nir + red);
77

88
// Threshold for vegetation
99
var veg_th = 0.4;
1010

1111
// Simple RGB
12-
var R = Red / 3000;
13-
var G = Green / 3000;
14-
var B = Blue / 3000;
12+
var R = red / 3000;
13+
var G = green / 3000;
14+
var B = blue / 3000;
1515

1616
// Transform to Black and White
1717
var Y = 0.2 * R + 0.7 * G + 0.1 * B;

planet_scope/ndvi/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ scripts:
1212

1313
## Evaluate and visualize
1414

15-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
15+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1616

1717
## General description
1818

@@ -22,7 +22,7 @@ The value range of the NDVI is -1 to 1. Negative values of NDVI (values approach
2222

2323
The normalized difference vegetation index, abbreviated NDVI, is defined as
2424

25-
$$NDVI := \mathtt{Index}(NIR,RED) = \frac{NIR-RED}{NIR+RED}.$$
25+
$$NDVI := \mathtt{Index}(nir,red) = \frac{nir-red}{nir+red}.$$
2626

2727
This is an example script which can be used with EO Browser and is configured to return statistics in a format which can be used with the statistical info chart. For more information, see <a href = "https://www.sentinel-hub.com/faq/how-configure-your-layers-statistical-info-eo-browser/"> How Can I Configure My Layers For Statistical Information In EO Browser?</a>
2828

planet_scope/ndvi/eob.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ function setup() {
55
return {
66
input: [{
77
bands: [
8-
"Red",
9-
"NIR",
8+
"red",
9+
"nir",
1010
"dataMask",
11-
"UDM2_Clear"
11+
"clear"
1212
]
1313
}],
1414
output: [
@@ -21,9 +21,9 @@ function setup() {
2121
}
2222

2323
function evaluatePixel(samples) {
24-
let ndvi = (samples.NIR - samples.Red) / (samples.NIR + samples.Red);
24+
let ndvi = (samples.nir - samples.red) / (samples.nir + samples.red);
2525
const indexVal = samples.dataMask === 1 ? ndvi : NaN;
26-
const clear = samples.dataMask * samples.UDM2_Clear;
26+
const clear = samples.dataMask * samples.clear;
2727

2828
let id_default = colorBlend(ndvi, [0.0, 0.5, 1.0],
2929
[
@@ -35,7 +35,7 @@ function evaluatePixel(samples) {
3535
return {
3636
default: id_default,
3737
index: [indexVal],
38-
eobrowserStats: [indexVal, samples.UDM2_Clear],
38+
eobrowserStats: [indexVal, samples.clear],
3939
dataMask: [samples.dataMask],
4040
};
4141
}

planet_scope/ndvi/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//NDVI
2-
var val = (NIR - Red) / (NIR + Red);
2+
var val = (nir - red) / (nir + red);
33

44
return colorBlend(val,
55
[0.0, 0.5, 1.0],

planet_scope/ndwi/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description of the script
1616

1717
The NDWI is useful for water body mapping, as water bodies strongly absorb light in visible to infrared electromagnetic spectrum. NDWI uses green and near infrared bands to highlight water bodies. It is sensitive to built-up land and can result in over-estimation of water bodies.
1818

19-
$$NDWI = \frac{Green-NIR}{Green+NIR}.$$
19+
$$NDWI = \frac{green-nir}{green+nir}.$$
2020

2121
Values description: Index values greater than 0.5 usually correspond to water bodies. Vegetation usually corresponds to much smaller values and built-up areas to values between zero and 0.2.
2222

planet_scope/ndwi/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//NDWI
22

3-
var val = (Green / 3000 - NIR / 3000) / (Green / 3000 + NIR / 3000);
3+
var val = (green / 3000 - nir / 3000) / (green / 3000 + nir / 3000);
44

55
return colorBlend(val,
66
[-1, -0.5, -0.2, 0, 0.2, 0.5, 1.0],

planet_scope/planet_scope.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ permalink: /planet/planetscope/
1515

1616
The spectral bands of PlanetScope data are the following if you order a 4-band <a href = "https://docs.sentinel-hub.com/api/latest/data/planet/planet-scope/#productbundle-parameter">product bundle</a>:
1717

18-
- *B1 - Blue, resolution 3m*
18+
- *blue - Blue, resolution 3m*
1919

20-
- *B2 - Green, resolution 3m*
20+
- *green - Green, resolution 3m*
2121

22-
- *B3 - Red, resolution 3m*
22+
- *red - Red, resolution 3m*
2323

24-
- *B4 - Near Infrared, resolution 3m*
24+
- *nir - Near Infrared, resolution 3m*
2525

2626
The spectral bands of PlanetScope data are the following if you order a 8-band product bundle:
2727

28-
- *B1 - Coastal Blue, resolution 3m*
28+
- *coastal_blue - Coastal Blue, resolution 3m*
2929

30-
- *B2 - Blue, resolution 3m*
30+
- *blue - Blue, resolution 3m*
3131

32-
- *B3 - Green I, resolution 3m*
32+
- *green_i - Green I, resolution 3m*
3333

34-
- *B4 - Green, resolution 3m*
34+
- *green - Green, resolution 3m*
3535

36-
- *B5 - Yellow, resolution 3m*
36+
- *yellow - Yellow, resolution 3m*
3737

38-
- *B6 - Red, resolution 3m*
38+
- *red - Red, resolution 3m*
3939

40-
- *B7 - Red Edge, resolution 3m*
40+
- *rededge - Red Edge, resolution 3m*
4141

42-
- *B8 - Near-infrared, resolution 3m*
42+
- *nir - Near-infrared, resolution 3m*
4343

4444
</details>
4545

planet_scope/true_color/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description
1616

17-
The true color product maps PlanetScope band values B3, B2, and B1 which roughly correspond to red, green, and blue part of the spectrum, respectively, to R, G, and B components.
17+
The true color product maps PlanetScope band values `red`, `green`, and `blue` which roughly correspond to red, green, and blue part of the spectrum, respectively, to R, G, and B components.
1818

1919
## Description of representative images
2020

planet_scope/true_color/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
function setup() {
55
return {
6-
input: ["Blue", "Green", "Red"],
6+
input: ["blue", "green", "red"],
77
output: { bands: 3 }
88
};
99
}
1010

1111
function evaluatePixel(sample) {
12-
return [sample.Red / 3000, sample.Green / 3000, sample.Blue / 3000];
12+
return [sample.red / 3000, sample.green / 3000, sample.blue / 3000];
1313
}

skysat/ndvi/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nav_exclude: true
1010

1111
## Evaluate and visualize
1212

13-
As SkySat is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.
13+
As SkySat is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.
1414

1515
## General description
1616

@@ -20,7 +20,7 @@ The value range of the NDVI is -1 to 1. Negative values of NDVI (values approach
2020

2121
The normalized difference vegetation index, abbreviated NDVI, is defined as
2222

23-
$$NDVI := \mathtt{Index}(NIR,Red) = \frac{NIR-RED}{NIR+Red}.$$
23+
$$NDVI := \mathtt{Index}(nir,red) = \frac{nir-red}{nir+red}.$$
2424

2525
The result is visualized using the `valueInterpolate` function. It maps the values of the
2626
NDVI in certain intervals to RGBA (RGB+Alpha) values for visualization.

skysat/ndvi/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//VERSION=3
22
function setup() {
33
return {
4-
input: ["Red", "NIR", "dataMask"],
4+
input: ["red", "nir", "dataMask"],
55
output: { bands: 4 }
66
}
77
}
88
var f = 10000
99
function evaluatePixel(sample) {
10-
var NDVI = index(sample.NIR, sample.Red)
10+
var NDVI = index(sample.nir, sample.red)
1111
return valueInterpolate(NDVI,
1212
[0, 0.2, 0.3, 0.4, 0.5, 1.0],
1313
[

skysat/panchromatic/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
function setup() {
55
return {
6-
input: ["PAN", "dataMask"],
6+
input: ["pan", "dataMask"],
77
output: { bands: 4 }
88
}
99
}
1010
var f = 10000
1111
function evaluatePixel(sample) {
12-
return [sample.PAN / f, sample.PAN / f, sample.PAN / f, sample.dataMask]
12+
return [sample.pan / f, sample.pan / f, sample.pan / f, sample.dataMask]
1313
}

skysat/skysat.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ permalink: /planet/skysat/
1212

1313
The spectral bands of SkySat data are the following:
1414

15-
*Blue - 450-515 nm, resolution 0.5m*
15+
*blue - 450-515 nm, resolution 0.5m*
1616

17-
*Green - 515-595 nm, resolution 0.5m*
17+
*green - 515-595 nm, resolution 0.5m*
1818

19-
*Red - 605-695 nm, resolution 0.5m*
19+
*red - 605-695 nm, resolution 0.5m*
2020

21-
*NIR - 740-900 nm Near Infrared, resolution 0.5m*
21+
*nir - 740-900 nm Near Infrared, resolution 0.5m*
2222

23-
*Pan - 450-900nm Panchromatic, resolution 0.5*
23+
*pan - 450-900nm Panchromatic, resolution 0.5*
2424

2525
- [True Color](/skysat/true_color)
2626
- [Panchromatic](/skysat/panchromatic)

skysat/true_color/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ As SkySat is commercial data, brought into Sentinel Hub as Bring Your Own Data,
1414

1515
## General description
1616

17-
The true color product combines Skysat band values Red, Blue, and Green to create a true color image.
17+
The true color product combines Skysat band values `red`, `blue`, and `green` to create a true color image.
1818

1919
## Description of representative images
2020

skysat/true_color/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
function setup() {
55
return {
6-
input: ["Blue", "Red", "Green", "dataMask"],
6+
input: ["blue", "red", "green", "dataMask"],
77
output: { bands: 4 }
88
}
99
}
1010
var f = 2.5 / 10000
1111
function evaluatePixel(sample) {
12-
return [sample.Red * f, sample.Green * f, sample.Blue * f, sample.dataMask]
12+
return [sample.red * f, sample.green * f, sample.blue * f, sample.dataMask]
1313
}

0 commit comments

Comments
 (0)