Dear all

I am trying to use the gdal_array.DatasetReadAsArray function to extract a window from a 3B gtif file by indicating the dataset, the upper left corner image coordinates, the window size (256x256) at actual scale in the dataset, the desired buffer size (larger than actual size 341x341) and indicating the resample algorithm. It only works if I select the NearestNeighbour algorithm. In the rest of the cases (Bilinear, bicubic, Lanczos, etc...) what the function returns me is a mosaic that repeats 9 times (3x3) the original image in reduced size.

What am I doing wrong or what have I interpreted incorrectly in the API?

Thanks & Best regards

Miguel A. Manso

MERCATOR Research Group

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to