Skip to content

Check for NaNs and raise warning #200

@ayoubft

Description

@ayoubft

As discussed with @observingClouds and @milankl, and raised in this BitInformation.jl issue: the elements in an array should be checked whether they are finite and raise a warning if they are not. As having many NaNs in the dataset may yield unexpected results.

A check could be using is_null() from xarray like:

ds.is_null().sum()

Or perhaps by iterating through a dataset and issuing a warning upon encountering the first NaN value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions