Hi all
well, the ReadAsArray function will return a numpy array of dimension 2.
In numpy the array.size() function will return (number_of_lines,
number_of_columns).
The number of lines in the array is the same as the YSize of the
raster in GDAL, and the number of columns is the same as the XSize o
Hi,
On Mon, Dec 13, 2010 at 11:33 PM, Matt Funk wrote:
> Hi,
>
> i am a bit new to the gdal library. I am trying to process some geotiff
> files in python.
>
> 1) I am making a call to the ReadAsArray data as such:
> ...
> band = ds.GetRasterBand(1)
> array = band.ReadAsArray(0,0,band.XSize,band.
Hi,
i am a bit new to the gdal library. I am trying to process some geotiff
files in python.
1) I am making a call to the ReadAsArray data as such:
...
band = ds.GetRasterBand(1)
array = band.ReadAsArray(0,0,band.XSize,band.YSize)
print array.shape
...
which returns: (7191, 8331)
Now, what i don'