Skip to content

Syntax Error in B2_Interpreting_Images.qmd #1

@frasercrichton

Description

@frasercrichton

Hi folks,

with line 427 in B2_Interpreting_Images.qmd:

var seaRemap = seaWhere.remap([0, 1, 2], // Existing values.   [9, 11, 10]); // Remapped values.  

It causes a syntax error when you copy and paste it into the Earth Engine because of the comments.

Could it be rewritten? Maybe as:

var existingValues = [0, 1, 2]
var remappedValues = [9, 11, 10]
var seaRemap = seaWhere.remap(existingValues, remappedValues);   

Happy to PR.

A minor niggle as the course is great!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions