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

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

-15
This file was deleted.

analysis_ready_planetscope/true_color/README.md

-19
This file was deleted.

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

+15-1

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

+15-1

analysis_ready_planetscope/analysis_ready_planetscope.md planet/analysis_ready_planetscope/index.md

+5-6

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

+15-1
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 planet/analysis_ready_planetscope/ndvi/script.js

+1-1
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
}

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

+15-1

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

-1
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 planet/planetscope/cloudless_mosaic/index.md

-1

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

+1-2
File renamed without changes.

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

+1-2
File renamed without changes.

planet_scope/planet_scope.md planet/planetscope/index.md

+11-11
File renamed without changes.
File renamed without changes.

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

-1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

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

+1-2

planet/planetscope/ndci/raw.js

+18
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)