<div dir="ltr">Thanks for quick reply, I've uploaded grib file here: <a href="https://transfer.sh/5JCVX/download.grib" target="_blank">https://transfer.sh/5JCVX/download.grib</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 5:04 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On mercredi 4 septembre 2019 08:50:09 CEST Sean Gillies wrote:<br>
> Hi Denis,<br>
> <br>
> rio-convert lacks some of the features of gdal_translate (advanced metadata<br>
> translation, statistics, &c) and it may be that the cost of those features<br>
> is being especially felt in the GRIB case.<br>
<br>
For a plain gdal_translate like that, shouldn't matter<br>
<br>
> In fact, the core of<br>
> gdal_translate has some GRIB-specific code that rasterio does not use:<br>
> <a href="https://github.com/OSGeo/gdal/blob/master/gdal/apps/gdal_translate_lib.cpp#L" rel="noreferrer" target="_blank">https://github.com/OSGeo/gdal/blob/master/gdal/apps/gdal_translate_lib.cpp#L</a><br>
> 1763-L1782 .<br>
<br>
That part of the code shouldn't be called at all for a plain gdal_translate, <br>
and even, it shouldn't impact performance<br>
<br>
Without the exact dataset to reproduce, hard to know what happens.<br>
<br>
An hypothesis might be that the dataset has many bands, and as the GTiff <br>
driver will produce a pixel-interleaved file, it might need to switch <br>
frequently between source GRIB bands, but there's a limited cache for those <br>
bands. If rio convert proceeds band by band, this might be more beneficial <br>
here. Blind and likely wrong guess...<br>
<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>