I&#39;ve written some simple Python code to flip a raster in relation to the y-axis.  The raster is 20000x19459 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 overnight, and it had processed less than 1000 columnsin band 3, whereas the previous pace for bands 1&amp;2 was around 1000 columns every 10 seconds.  Here is the relevant code with a few debugging statements followed by the gdalinfo output.  The only thing I&#39;m noticing is that the input image is INTERLEAVED=BAND whereas the output is INTERLEAVED=PIXEL.  Any help is appreciated.<div>

<br></div><div>------------------------------------------------------------------------------</div><div><div><div>for band in range(1, indataset.RasterCount + 1):</div><div>  ## Print the current band</div><div>  print &#39;Band %s&#39; % band</div>
<div><br></div><div>  inband = indataset.GetRasterBand(band)</div><div>  outband = outdataset.GetRasterBand(band)</div><div><br></div><div>  count = 0</div><div>  print count</div><div><br></div><div>  for i in range(inband.XSize):</div>
<div><br></div><div>    ## print the current interval of 1k lines</div><div>    new_count = int(i / 1000)</div><div>    if new_count &gt; count:</div><div>      print new_count</div><div>      count = new_count</div><div>
<br></div><div>    inline = inband.ReadAsArray(i, 0, 1, inband.YSize)</div><div><br></div><div>    outband.WriteArray(inline, inband.XSize - i - 1, 0)</div><div><br></div><div>    inline = None</div><div>  </div><div>  inband = None</div>
<div>  outband = None</div></div></div><div><br></div><div>------------------------------------------------------------------------------</div><div><div>Driver: GTiff/GeoTIFF</div><div>Files: test.tif</div><div>Size is 20000, 19459</div>
<div>Coordinate System is:</div><div>GEOGCS[&quot;WGS 84&quot;,</div><div>    DATUM[&quot;WGS_1984&quot;,</div><div>        SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,</div><div>            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],</div>
<div>        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],</div><div>    PRIMEM[&quot;Greenwich&quot;,0],</div><div>    UNIT[&quot;degree&quot;,0.0174532925199433],</div><div>    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</div>
<div>Origin = (-175.536864949200321,33.666235092496755)</div><div>Pixel Size = (-0.000062579160220,-0.000054370391310)</div><div>Metadata:</div><div>  AREA_OR_POINT=Area</div><div>Image Structure Metadata:</div><div>  INTERLEAVE=BAND</div>
<div>Corner Coordinates:</div><div>Upper Left  (-175.5368649,  33.6662351) (175d32&#39;12.71&quot;W, 33d39&#39;58.45&quot;N)</div><div>Lower Left  (-175.5368649,  32.6082416) (175d32&#39;12.71&quot;W, 32d36&#39;29.67&quot;N)</div>
<div>Upper Right (-176.7884482,  33.6662351) (176d47&#39;18.41&quot;W, 33d39&#39;58.45&quot;N)</div><div>Lower Right (-176.7884482,  32.6082416) (176d47&#39;18.41&quot;W, 32d36&#39;29.67&quot;N)</div><div>Center      (-176.1626566,  33.1372384) (176d 9&#39;45.56&quot;W, 33d 8&#39;14.06&quot;N)</div>
<div>Band 1 Block=20000x1 Type=Byte, ColorInterp=Red</div><div>  Mask Flags: PER_DATASET ALPHA</div><div>Band 2 Block=20000x1 Type=Byte, ColorInterp=Green</div><div>  Mask Flags: PER_DATASET ALPHA</div><div>Band 3 Block=20000x1 Type=Byte, ColorInterp=Blue</div>
<div>  Mask Flags: PER_DATASET ALPHA</div><div>Band 4 Block=20000x1 Type=Byte, ColorInterp=Alpha</div></div>