Skip to content

NaN values cause unexpected results #208

@avmey

Description

@avmey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions