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

NaN values cause unexpected results #208

Open
avmey opened this issue Jun 15, 2023 · 0 comments
Open

NaN values cause unexpected results #208

avmey opened this issue Jun 15, 2023 · 0 comments

Comments

@avmey
Copy link

avmey commented Jun 15, 2023

Describe the bug
If a raster contains NaN as a value (usually as the no-data value), geoblaze.sum() returns [NaN]

To Reproduce

import geoblaze from "geoblaze";

const test = async () => {
    const sum = await geoblaze.sum([Any tif with NaN as no-data value]);
    console.log(sum); \\ outputs [NaN]
};

test();

Expected behavior
Expect geoblaze to ignore NaN no-data values and return normal sum.

@avmey avmey changed the title NaN values cause errors NaN values cause unexpected results Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant