Skip to content

Peak Removal Filter neighbor selection #63

Description

@MarisZul

Small issue with one prf function. If the max_distance too small or n_closest too high, some stations will have a list of closest_neighbors that includes nans:

Image

Later in the interpolate_precipitation function this:

Image

Will lead to an error:

Image

Suggested alteration to skip nan neighbors: replace line 409 and line 410 with

if not isinstance(neighbor, str):
        continue

This could be implemented together with other changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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