Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions planet/planetscope/ndvi/eob.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function setup() {
return {
input: ["NIR", "red", "clear", "dataMask"],
input: ["nir", "red", "clear", "dataMask"],
output: [
{ id: "default", bands: 4 },
{ id: "index", bands: 1, sampleType: "FLOAT32" },
Expand Down Expand Up @@ -276,7 +276,7 @@ const colorRamp = [
let viz = new ColorRampVisualizer(colorRamp);

function evaluatePixel(sample) {
let ndvi = index(sample.NIR, sample.red);
let ndvi = index(sample.nir, sample.red);
const minIndex = 0;
const maxIndex = 1;
let visVal = null;
Expand Down
4 changes: 2 additions & 2 deletions planet/planetscope/ndvi/raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

function setup() {
return {
input: ["NIR", "red", "dataMask"],
input: ["nir", "red", "dataMask"],
output: {
bands: 4,
},
};
}

function evaluatePixel(sample) {
return [index(sample.NIR, sample.red)];
return [index(sample.nir, sample.red)];
}
4 changes: 2 additions & 2 deletions planet/planetscope/ndvi/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function setup() {
return {
input: ["NIR", "red", "dataMask"],
input: ["nir", "red", "dataMask"],
output: {
bands: 4,
},
Expand Down Expand Up @@ -273,7 +273,7 @@ const colorRamp = [
let viz = new ColorRampVisualizer(colorRamp);

function evaluatePixel(sample) {
let ndvi = index(sample.NIR, sample.red);
let ndvi = index(sample.nir, sample.red);
const minIndex = 0;
const maxIndex = 1;
let visVal = null;
Expand Down