Stack multi bands raster - #922
Conversation
There was a problem hiding this comment.
progress is never called
There was a problem hiding this comment.
progress is an old parameter not used since several version
geoutils/geoutils/raster/multiraster.py
Line 190 in 228abe6
| @@ -291,7 +345,7 @@ def test_merge_rasters(self, rasters: Any) -> None: # type: ignore | |||
|
|
|||
| # For merge algo: function not supporting the axis keyword argument but raising the right "axis" type error | |||
There was a problem hiding this comment.
I don't know. This is in merge_rasters, not stack... Did it stop working?
|
@rhugonnet @belletva I think it is done |
rhugonnet
left a comment
There was a problem hiding this comment.
All good for me!
Error on merge tests: You could skip it until the next PR to simplify things 😉
|
Hiii After some checks, I saw that Affine had released a new version and that in the documentation:
And latest verion of rasterio still use |
|
I can add Raster.merge() in this PR if you want or we can merge like this @belletva @rhugonnet |
|
@marinebcht I fixed the CI warning in #879 following #924. You just have to merge with upstream. Adding |
This PR updates stack_rasters() to stack all bands from multiband rasters, instead of only the first band of each input raster.
rgbnirnow contains[red, green, blue, b4]instead of[red, b4]Dev info
What has changed :
progressparam that was not usedmerge_algorithmparam in themerge_rastertest to be used with several (3d image + 3d image) input bands and not only two (1d image + 1d image)Note: temporary fix version of Affine < 3 to work with Rasterio #922 (comment)