-
Notifications
You must be signed in to change notification settings - Fork 37
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 possibility to specify crop dimensions #539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lools good
This was a clear case of not seeing the forest for the trees :D I'll fix it! |
Codecov Report
@@ Coverage Diff @@
## main #539 +/- ##
==========================================
+ Coverage 73.06% 80.98% +7.92%
==========================================
Files 59 57 -2
Lines 4633 4107 -526
==========================================
- Hits 3385 3326 -59
+ Misses 1248 781 -467
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I noticed that there are unused variables in the crop functions, so it's likely that they don't work as you intended: Rasters.jl/src/methods/crop_extend.jl Lines 98 to 100 in 88af714
Rasters.jl/src/methods/crop_extend.jl Line 104 in 88af714
|
Good catch, the second one In the first (Feel free to clean up/fix those) |
Actually, cropping forward ordered categorical int64 band dimensions worked. But I changed it nevertheless, as there probably will be problems with string values. |
Yeah the idea was you basically never want to use crop for bands or categorical things, so passing in bands in the |
This adds the possibility to specify crop dimensions. Hope it looks ok :)