geotiff.io icon indicating copy to clipboard operation
geotiff.io copied to clipboard

Raster Calculator Doesn't Work if Want to Return Multiple Bands

Open DanielJDufour opened this issue 5 years ago • 0 comments

Describe the bug

To Reproduce

  1. Go to http://app.geotiff.io/raster-calculator?url=https://s3.amazonaws.com/geoblaze/wildfires.tiff
  2. Run following raster calculation:
// A is RED
// B is GREEEN
// C is BLUE
if (A > 200) {
 return [A, 0, 0];
} else if (C > 150) {
 return [0, 0, C];
} else {
 return [0, 0, 0];
}

Expected behavior

Returns image with everything except wildfires and lakes blacked out

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

DanielJDufour avatar Jan 20 '19 19:01 DanielJDufour