Re: [gdal-dev] flipping raster in python

2010-03-26 Thread Jamie Adams
Thanks Even, I had (sort of) come to that conclusion myself, as I started looking into what blocksize actually meant. I'll modify to work in row order. Thanks! Jamie On Fri, Mar 26, 2010 at 2:10 PM, Even Rouault wrote: > Jamie, > > I'm not sure why it slowdowns after the first 2 bands, but I

Re: [gdal-dev] flipping raster in python

2010-03-26 Thread Even Rouault
Jamie, I'm not sure why it slowdowns after the first 2 bands, but I can say your way of proceeding is very inefficient and you can achieve the same results by processing by rows instead of columns. As your input file is scanline oriented (block size is 2x1 - which is pretty standard), readi

[gdal-dev] flipping raster in python

2010-03-26 Thread Jamie Adams
I've written some simple Python code to flip a raster in relation to the y-axis. The raster is 2x19459 and has 4 bands of type Byte, and is written east to west (I have no idea why). The script proceeds normally for the first 2 bands, but slows way down after starting band 3. I let it run ov