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

Add a functionality to crop raster to valid extent (remove nodata cols/rows on sides) #400

Open
rhugonnet opened this issue Sep 6, 2023 · 1 comment
Labels
enhancement Feature improvement or request new-feature A new functionality / feature or request

Comments

@rhugonnet
Copy link
Member

rhugonnet commented Sep 6, 2023

Following up on #51
Can copy the logic here: https://github.com/iamdonovan/pybob/blob/master/pybob/GeoImg.py#L686

@adehecq
Copy link
Member

adehecq commented Sep 6, 2023

We have a function to get the indices of valid pixels here. We could make it a method of Raster to directly clip the raster to the valid extent (rather than just reporting the indexes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature improvement or request new-feature A new functionality / feature or request
Projects
Development

No branches or pull requests

2 participants