Skip to content

Commit

Permalink
fix broken scripts in PlanetScope section (#337)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Thiex <daniel.thiex@planet.com>
  • Loading branch information
dthiex and Daniel Thiex authored Nov 27, 2024
1 parent 0be5a61 commit 59f6c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion planet_scope/ndvi_difference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ examples:
- zoom: '14'
lat: '52.24714'
lng: '9.20886'
datasetId: Planetscope
datasetId: 'ccb1f8f0-e5bf-4c31-afe5-d8803bcbde2a'
fromTime: '2023-04-02T00:00:00.000Z'
toTime: '2023-06-01T23:59:59.999Z'
platform:
Expand Down
2 changes: 1 addition & 1 deletion planet_scope/ndwi/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function setup() {
}

function evaluatePixel(sample) {
let ndwi = index(green, nir);
let ndwi = index(sample.green, sample.nir);

let id_default = colorBlend(ndwi,
[-1, -0.5, -0.2, 0, 0.2, 0.5, 1.0],
Expand Down

0 comments on commit 59f6c7a

Please sign in to comment.