Skip to content

help wanted: xvec.zonal_stats returning ValueError: cannot convert float NaN to integer #89

@FelipeSBarros

Description

@FelipeSBarros

Dear Developers. I am trying to use xvec.zonal_stats to get mean values of a variable (pm2p5) in xarray.DataSet for a set of polygons.
But it returns ValueError: cannot convert float NaN to integer.
I have built a Googlecolab that reproduces the mentioned error.
How could I overcome this problem?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions