Skip to content

Commit

Permalink
fix: run ee methods before masking
Browse files Browse the repository at this point in the history
  • Loading branch information
turban committed Nov 29, 2023
1 parent e8e8871 commit 0939a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/earthengine/ee_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ class EarthEngineWorker {
}
}

// Run methods on image
eeImage = applyMethods(eeImage, methods)

// Only keep pixels above min value
if (maskOperator && eeImage[maskOperator]) {
eeImage = eeImage.updateMask(eeImage[maskOperator](style?.min || 0))
}

// Run methods on image
eeImage = applyMethods(eeImage, methods)

this.eeImage = eeImage

return eeImage
Expand Down

0 comments on commit 0939a10

Please sign in to comment.