Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper functions for slicing operations #10

Open
cnavacch opened this issue Dec 8, 2020 · 0 comments
Open

Helper functions for slicing operations #10

cnavacch opened this issue Dec 8, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cnavacch
Copy link
Contributor

cnavacch commented Dec 8, 2020

When calling __getitem__ one needs to be aware that pythonic indexing is used for both slicing by pixels and slicing by coordinates. To simplify the construction of such slices, two helper functions would be helpful: xy_extent2slice(extent) and pixel_extent2slice(extent).

@cnavacch cnavacch added the enhancement New feature or request label Dec 8, 2020
@cnavacch cnavacch self-assigned this Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant