<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">There are many environment variables for optimizing access to remote geotiffs via GDAL’s /vsicurl/ interface. I’ve noticed that directly downloading a file via curl can be much faster (~4x) than pulling the entire file via gdal_translate or gdalmanage, and I think this is due to 1 GET request versus 10s of GET requests. Here is an example using Landsat8 on Google Cloud:<div class=""><br class=""></div><div class="">In brief it seems there is a limit for GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES that I’m missing. If the entire file is requested, I was expecting 2 GET requests (1 to read the metadata and another to retrieve the data).</div><div class=""><br class=""></div><div class="">Static:<br class=""><div class=""><a href="https://github.com/scottyhq/pangeo-cog-test/blob/master/cog-timing.ipynb" class="">https://github.com/scottyhq/pangeo-cog-test/blob/master/cog-timing.ipynb</a> </div><div class=""><br class=""></div><div class="">Interactive:</div><div class=""><a href="https://mybinder.org/v2/gh/scottyhq/pangeo-cog-test/master?urlpath=lab/tree/cog-timing.ipynb" class="">https://mybinder.org/v2/gh/scottyhq/pangeo-cog-test/master?urlpath=lab/tree/cog-timing.ipynb</a> </div><div class=""><br class=""></div><div class="">Just the command:</div><div class="">CPL_VSIL_CURL_USE_HEAD=NO GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.TIF CPL_CURL_VERBOSE=YES GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES gdal_translate --debug ON /vsicurl/<a href="http://storage.googleapis.com/gcp-public-data-landsat/LC08/01/047/027/LC08_L1TP_047027_20130421_20170310_01_T1/LC08_L1TP_047027_20130421_20170310_01_T1_B4.TIF" class="">http://storage.googleapis.com/gcp-public-data-landsat/LC08/01/047/027/LC08_L1TP_047027_20130421_20170310_01_T1/LC08_L1TP_047027_20130421_20170310_01_T1_B4.TIF</a> LC08_L1TP_047027_20130421_20170310_01_T1_B4.TIF</div><div class=""><br class=""></div><div class="">Thanks for any hints or clarification!</div><div class="">Scott<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></body></html>