Skip to content

Incorrect centroids assignment in Exposures.assign_centroids() #129

@ingajsa

Description

@ingajsa

An incorrect centroid exposure assignment potentially occurs in Exposures.assign_centroids() when hazard centroids and exposure coordinates do not perfectly match, in particular when the exposure is located at the same latitude as the hazard, but not at the same longitude.

The commands in line 210 - 213 do not correctly exclude exposures located outside the raster, but potentially assign them to other centroids within the raster.

As this function is a core CLIMADA - function I would recommend everyone to check whether the work is affected by this error. I will set up a fix branch for this very soon.

Cheers,

Inga

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions