Skip to content

Commit 83ee105

Browse files
Merge pull request #328 from sentinel-hub/antoineDuc-patch-1
Remove outdated script + fixing top nav
2 parents 59f6c7a + 6d5493d commit 83ee105

File tree

86 files changed

+1056
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1056
-219
lines changed

analysis_ready_planetscope/ndvi/raw.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

analysis_ready_planetscope/true_color/README.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

analysis_ready_planetscope/cloud_mask_classification/README.md renamed to planet/analysis_ready_planetscope/cloud_mask_classification/index.md

Lines changed: 15 additions & 1 deletion

analysis_ready_planetscope/false_color/README.md renamed to planet/analysis_ready_planetscope/false_color/index.md

Lines changed: 15 additions & 1 deletion

analysis_ready_planetscope/analysis_ready_planetscope.md renamed to planet/analysis_ready_planetscope/index.md

Lines changed: 5 additions & 6 deletions

analysis_ready_planetscope/ndvi/README.md renamed to planet/analysis_ready_planetscope/ndvi/index.md

Lines changed: 15 additions & 1 deletion
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//VERSION=3
2+
// ndvi
3+
4+
function setup() {
5+
return {
6+
input: ["nir", "red", "dataMask"],
7+
output: {
8+
bands: 4,
9+
},
10+
};
11+
}
12+
13+
function evaluatePixel(sample) {
14+
return [(sample.nir - sample.red) / (sample.nir + sample.red)];
15+
}

analysis_ready_planetscope/ndvi/script.js renamed to planet/analysis_ready_planetscope/ndvi/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
function setup() {
55
return {
6-
input: ["nir", "red", "cloud_mask", "dataMask"],
6+
input: ["nir", "red", "dataMask"],
77
output: {
88
bands: 4
99
}
Lines changed: 33 additions & 0 deletions

analysis_ready_planetscope/true_color_cloud_masked/README.md renamed to planet/analysis_ready_planetscope/true_color_cloud_masked/index.md

Lines changed: 15 additions & 1 deletion

planet_scope/cloud_classification/README.md renamed to planet/planetscope/cloud_classification/index.md

Lines changed: 0 additions & 1 deletion
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//VERSION=3
2+
//UDM2 Classification
3+
4+
function setup() {
5+
return {
6+
input: [
7+
{
8+
bands: ["clear", "snow", "shadow", "haze_light", "haze_heavy", "cloud"],
9+
},
10+
],
11+
output: {
12+
bands: 4,
13+
},
14+
};
15+
}
16+
17+
function evaluatePixel(samples) {
18+
if (samples.snow == 1) {
19+
return [0, 0.5, 1, 1]; // blue
20+
}
21+
if (samples.shadow == 1) {
22+
return [0.4, 0.4, 0.4, 1]; //grey
23+
}
24+
if (samples.haze_light == 1) {
25+
return [0, 0.9, 1, 1]; //sky blue
26+
}
27+
if (samples.haze_heavy == 1) {
28+
return [1, 0.7, 1, 1]; //light pink
29+
}
30+
if (samples.cloud == 1) {
31+
return [0.7, 0.7, 0.7, 1]; //white
32+
} else {
33+
return [0, 0, 0, 0];
34+
}
35+
}

planet_scope/cloudless_mosaic/README.md renamed to planet/planetscope/cloudless_mosaic/index.md

Lines changed: 0 additions & 1 deletion

planet_scope/false_color/README.md renamed to planet/planetscope/false_color/index.md

Lines changed: 1 addition & 2 deletions

planet_scope/green_city/README.md renamed to planet/planetscope/green_city/index.md

Lines changed: 1 addition & 2 deletions

planet_scope/planet_scope.md renamed to planet/planetscope/index.md

Lines changed: 11 additions & 11 deletions
File renamed without changes.

planet_scope/max_ndvi/README.md renamed to planet/planetscope/max_ndvi/index.md

Lines changed: 0 additions & 1 deletion
File renamed without changes.
File renamed without changes.
File renamed without changes.

planet_scope/ndci/README.md renamed to planet/planetscope/ndci/index.md

Lines changed: 1 addition & 2 deletions

planet/planetscope/ndci/raw.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//VERSION=3
2+
//PlanetScope NDRE
3+
4+
function setup() {
5+
return {
6+
input: [
7+
{
8+
bands: ["red", "rededge", "dataMask"],
9+
},
10+
],
11+
output: { id: "default", bands: 1, sampleType: "FLOAT32" },
12+
};
13+
}
14+
15+
function evaluatePixel(sample) {
16+
let ndci = index(sample.rededge, sample.red);
17+
return [ndci];
18+
}

0 commit comments

Comments
 (0)