Skip to content

Commit 59f6c7a

Browse files
dthiexDaniel Thiex
and
Daniel Thiex
authored
fix broken scripts in PlanetScope section (#337)
Co-authored-by: Daniel Thiex <[email protected]>
1 parent 0be5a61 commit 59f6c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

planet_scope/ndvi_difference/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ examples:
1616
- zoom: '14'
1717
lat: '52.24714'
1818
lng: '9.20886'
19-
datasetId: Planetscope
19+
datasetId: 'ccb1f8f0-e5bf-4c31-afe5-d8803bcbde2a'
2020
fromTime: '2023-04-02T00:00:00.000Z'
2121
toTime: '2023-06-01T23:59:59.999Z'
2222
platform:

planet_scope/ndwi/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function setup() {
1111
}
1212

1313
function evaluatePixel(sample) {
14-
let ndwi = index(green, nir);
14+
let ndwi = index(sample.green, sample.nir);
1515

1616
let id_default = colorBlend(ndwi,
1717
[-1, -0.5, -0.2, 0, 0.2, 0.5, 1.0],

0 commit comments

Comments
 (0)