Skip to content

Commit 5d90b7d

Browse files
committed
fix formatting of setup() in converted scripts
1 parent f2958e7 commit 5d90b7d

File tree

21 files changed

+48
-36
lines changed

21 files changed

+48
-36
lines changed

landsat-8/land_surface_temperature_mapping/land_surface_temperature_script_V3.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,15 @@ function setup() {
5050
return {
5151
input: [{
5252
bands: [
53-
"B03",
53+
"B03",
5454
"B04",
5555
"B05",
5656
"B10",
5757
"B11"
5858
]
5959
}],
60-
output: { bands: 3 } }
60+
output: { bands: 3 }
61+
}
6162
}
6263

6364

sentinel-1/sar_deforestation_detection/script.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ function setup() {
1010
return {
1111
input: [{
1212
bands: [
13-
"VV",
13+
"VV",
1414
"VH"
1515
]
1616
}],
17-
output: { bands: 3 } }
17+
output: { bands: 3 }
18+
}
1819
}
1920

2021

@@ -64,4 +65,4 @@ const evaluatePixel = function (samples, scenes) {
6465
let index = GAIN * v_len_inverse + v_angle_weighted;
6566
return RED_VIZ.process(index);
6667
}
67-
};
68+
};

sentinel-1/sar_multi-temporal_backscatter_coefficient_composite/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function setup() {
3030
return {
3131
input: [{
3232
bands: [
33-
"VV"
33+
"VV"
3434
]
3535
}],
3636
output: { bands: 3 },

sentinel-1/sar_rvi_temporal_analysis/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function setup() {
33
return {
44
input: [{
55
bands: [
6-
"VV",
6+
"VV",
77
"VH"
88
]
99
}],

sentinel-1/soil_moisture_estimation/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function setup() {
2424
return {
2525
input: [{
2626
bands: [
27-
"VV",
27+
"VV",
2828
"VH"
2929
]
3030
}],

sentinel-2/agriculture_growth_stage/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function setup() {
1414
return {
1515
input: [{
1616
bands: [
17-
"B04",
17+
"B04",
1818
"B08"
1919
]
2020
}],

sentinel-2/barren_soil/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ function setup() {
1010
return {
1111
input: [{
1212
bands: [
13-
"B02",
13+
"B02",
1414
"B04",
1515
"B08",
1616
"B11",
1717
"B12"
1818
]
1919
}],
20-
output: { bands: 3 } }
20+
output: { bands: 3 }
21+
}
2122
}
2223

sentinel-2/burned_area/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function setup() {
44
return {
55
input: [{
66
bands: [
7-
"B02",
7+
"B02",
88
"B03",
99
"B04",
1010
"B05",
@@ -69,4 +69,4 @@ function evaluatePixel(samples,scenes) {
6969
burnModerate : burnSevere)
7070
);
7171

72-
}
72+
}

sentinel-2/cab/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function setup() {
145145
return {
146146
input: [{
147147
bands: [
148-
"B03",
148+
"B03",
149149
"B04",
150150
"B05",
151151
"B06",
@@ -165,7 +165,8 @@ function setup() {
165165
sampleType: "AUTO",
166166
bands: 1
167167
}
168-
] }
168+
]
169+
}
169170
}
170171

171172
function evaluatePixel(sample, scene, metadata, customData, outputMetadata) {

sentinel-2/ccc/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function setup() {
259259
return {
260260
input: [{
261261
bands: [
262-
"B03",
262+
"B03",
263263
"B04",
264264
"B05",
265265
"B06",
@@ -279,7 +279,8 @@ function setup() {
279279
sampleType: "AUTO",
280280
bands: 1
281281
}
282-
] }
282+
]
283+
}
283284
}
284285

285286
function evaluatePixel(sample, scene, metadata, customData, outputMetadata) {

sentinel-2/cloudless_mosaic/L2A-first_quartile_4bands.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ function setup() {
33
return {
44
input: [{
55
bands: [
6-
"B04",
6+
"B04",
77
"B03",
88
"B02",
99
"B08",
1010
"SCL"
11-
]
12-
, units: "DN"
11+
],
12+
units: "DN"
1313
}],
1414
output: [
1515
{
1616
id: "default",
1717
sampleType: "UINT16",
1818
bands: 4
1919
}
20-
] }
20+
]
21+
}
2122
}
2223

2324
function filterScenes (scenes, inputMetadata) {

sentinel-2/cloudless_mosaic/L2A-first_quartille.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ function setup() {
1212
return {
1313
input: [{
1414
bands: [
15-
"B04",
15+
"B04",
1616
"B03",
1717
"B02",
1818
"SCL"
1919
]
2020
}],
21-
output: { bands: 3 } }
21+
output: { bands: 3 }
22+
}
2223
}
2324

2425
function filterScenes (scenes, inputMetadata) {

sentinel-2/fapar/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function setup() {
145145
return {
146146
input: [{
147147
bands: [
148-
"B03",
148+
"B03",
149149
"B04",
150150
"B05",
151151
"B06",
@@ -165,7 +165,8 @@ function setup() {
165165
sampleType: "AUTO",
166166
bands: 1
167167
}
168-
] }
168+
]
169+
}
169170
}
170171

171172

sentinel-2/fire_boundary/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ function setup() {
1111
"B12"
1212
]
1313
}],
14-
output: { bands: 1 } }
14+
output: { bands: 1 }
15+
}
1516
}
1617

1718

1819
let viz = new HighlightCompressVisualizerSingle(-1.0, 1.0);
1920

2021
function evaluatePixel(samples) {
2122
let val = 8.5 * (samples.B12 - samples.B11) / (samples.B12 + samples.B11 + 0.25); return viz.process(val);
22-
}
23+
}

sentinel-2/lai/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function setup() {
145145
return {
146146
input: [{
147147
bands: [
148-
"B03",
148+
"B03",
149149
"B04",
150150
"B05",
151151
"B06",
@@ -165,7 +165,8 @@ function setup() {
165165
sampleType: "AUTO",
166166
bands: 1
167167
}
168-
] }
168+
]
169+
}
169170
}
170171

171172
function evaluatePixel(sample, scene, metadata, customData, outputMetadata) {

sentinel-2/monthly_composite/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function setup() {
2222
return {
2323
input: [{
2424
bands: [
25-
"B02",
25+
"B02",
2626
"B03",
2727
"B04",
2828
"B05",

sentinel-2/monthly_snow_report/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function setup() {
2525
return {
2626
input: [{
2727
bands: [
28-
"B02",
28+
"B02",
2929
"B03",
3030
"B04",
3131
"B11"

sentinel-2/ndsi/script.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ function setup() {
1919
"B11"
2020
]
2121
}],
22-
output: { bands: 1 } }
22+
output: { bands: 1 }
23+
}
2324
}

sentinel-2/psri/script.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function setup() {
1919
"B06"
2020
]
2121
}],
22-
output: { bands: 1 } }
22+
output: { bands: 1 }
23+
}
2324
}
2425

sentinel-2/s2gm/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function setup() {
55
return {
66
input: [{
77
bands: [
8-
"B01",
8+
"B01",
99
"B02",
1010
"B03",
1111
"B04",

sentinel-2/white_water/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function setup() {
88
return {
99
input: [{
1010
bands: [
11-
"B02",
11+
"B02",
1212
"B03",
1313
"B04",
1414
"B08",
@@ -114,4 +114,4 @@ function filterScenes(scenes, inputMetadata) {
114114
return scenes.filter(scene => (
115115
scene.date.getTime() >= new Date("2015-07-01T00:00:00Z") && scene.date.getTime() < new Date("2019-04-17T00:00:00Z")
116116
));
117-
}
117+
}

0 commit comments

Comments
 (0)