Thursday 17 October 2019

pyqgis - Reading an image as array in python using GDAL?


img=gdal.Open("D:\data\sub_66")

inputArray=img.ReadAsArray()

gives Error: ValueError: array is too big. What is the problem with this?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...