<div dir="ltr">Thank you very much "Even Rouault" for making me understood.<span name="Even Rouault" class=""><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 3, 2015 at 8:13 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le vendredi 03 avril 2015 12:46:48, Yuta Sato a écrit :<br>
> Dear Even Rouault:<br>
><br>
> Thank you very much.<br>
> What about setting these parameters "used with .ReadAsArray()", though I<br>
> did not know their meanings?<br>
> buf_xsize=None, buf_ysize=None, buf_obj=None<br>
<br>
</span>(Please keep the list CC'ed)<br>
<br>
buf_xsize and buf_ysize are the equivalents of nBufXSize and nBufYSize in<br>
GDALRasterBand::RasterIO()<br>
<a href="http://gdal.org/classGDALRasterBand.html#a75d4af97b3436a4e79d9759eedf89af4" target="_blank">http://gdal.org/classGDALRasterBand.html#a75d4af97b3436a4e79d9759eedf89af4</a><br>
i.e. to do downsampling or upsampling of original data.<br>
<br>
buf_obj can be used to "recycle" an existing numpy array of the appropriate<br>
size instead of allocating a new one.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On Fri, Apr 3, 2015 at 7:43 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
><br>
> wrote:<br>
> > Le vendredi 03 avril 2015 12:22:00, Yuta Sato a écrit :<br>
> > > Dear Respected GDAL Developers and Users:<br>
> > ><br>
> > > What parameters should I set beforehand in order to accelerate the<br>
> ><br>
> > reading<br>
> ><br>
> > > of a GeoTiff file?<br>
> > ><br>
> > > I am using as follows:<br>
> > ><br>
> > > data = src_dataset.GetRasterBand(1).ReadAsArray(xoff,yoff,xsize,ysize)<br>
> > ><br>
> > > Does setting the following parameters accelerate?<br>
> > ><br>
> > > GDAL_CACHEMAX, GDAL_SWATH_SIZE<br>
> > ><br>
> > > I'm using gdal python.<br>
> ><br>
> > Yuta,<br>
> ><br>
> > Increasing GDAL_CACHEMAX might accelerate in case of repeated reads on<br>
> > windows<br>
> > that are identical or overlapping already read windows. Or if the way you<br>
> > read<br>
> > the raster doesn't follow its block shape : for example if the raster is<br>
> > organized by lines/strips and you read by square blocks, or the reverse<br>
> > situation.<br>
> ><br>
> > GDAL_SWATH_SIZE is only used by CreateCopy().<br>
> ><br>
> > Even<br>
> ><br>
> > --<br>
> > Spatialys - Geospatial professional services<br>
> > <a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br></div>