Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DanielJDufour opened this issue Jan 20, 2019 · 0 comments
Open
Assignees

Comments

@DanielJDufour
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant