The dataset_like method does not operate on every single band, so if the given array is 3D array the method will give an error.
The method also takes path as a parameter and this needs to be deprecated.
[pyramids] pyramids/dataset.py (Lines 1084-1088)
dst_obj.raster.GetRasterBand(1).WriteArray(array)
if path is not None:
dst_obj.raster.FlushCache()
dst_obj = None
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream
The
dataset_likemethod does not operate on every single band, so if the given array is 3D array the method will give an error.The method also takes path as a parameter and this needs to be deprecated.
[pyramids] pyramids/dataset.py (Lines 1084-1088)
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream