Skip to content

Spatial slice window may not include location #411

@dfulu

Description

@dfulu

In the current spatial slicing the exact position of the target can be offset or even outside the slice.

In the code, we calculate the index closest to the location. Then we slice around it.

This leads to some unexpected behaviour where the slice may not include the location. See B in the diagram below where the closest grid point is to the left of the location.

This could be solved in a bunch of ways which make the location more central in the slice, but will break backwards compatibility

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingocf-internalAn issue to be addressed internally by Open Climate Fix and not suitable for external contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions