geotiff.io
geotiff.io copied to clipboard
Raster Calculator Doesn't Work if Want to Return Multiple Bands
Describe the bug
To Reproduce
- Go to http://app.geotiff.io/raster-calculator?url=https://s3.amazonaws.com/geoblaze/wildfires.tiff
- 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