When I try to use the library CuPy with osgeo, I'm facing this error:
ValueError: non-scalar numpy.ndarray cannot be used for fill
I'm trying to fill this array:
im = cupy.zeros([ds.RasterYSize, ds.RasterXSize, ds.RasterCount], dtype=np.float32)
for x in range(1, ds.RasterCount + 1):
band = ds.GetRasterBand(x)
im[:, :, x - 1] = band.ReadAsArray() #error here
Any fixes for this?