Skip to content

Incorrect bounds for polygons which cross the meridian #57

Description

@yougsanghvi

In the following code, we assume that the raster is in 0-360 format, while there is nothing stopping it from being in -180 to 180 format.

left_xmin <- 0 - 2 * terra::xres(clim_stack) # should be -180, not 0
right_xmax <- 360 + 2 * terra::xres(clim_stack) # should be 180, not 360

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions