<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Matt,<br>
</p>
<div class="moz-cite-prefix">Le 17/06/2021 à 19:14,
<a class="moz-txt-link-abbreviated" href="mailto:Matt.Wilkie@yukon.ca">Matt.Wilkie@yukon.ca</a> a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:a793fcabae234941be7aa05d9a458192@yukon.ca">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<div class="WordSection1">
<p class="MsoNormal"><span>I see in
<a
href="https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax"
moz-do-not-send="true">https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax</a>
we set the value using bytes. Is there a prebuilt method to
convert units like percent, megabytes, gigabytes to bytes or
is it up to us to build one?</span></p>
</div>
</blockquote>
<p>up to the user</p>
<p>you could also call gdal.SetConfigOption('GDAL_CACHEMAX',
string), but you need to do that *before* reading any raster in
the process (or any call to gdal.SetCacheMax/GetCacheMax),
otherwise it will be ignored.</p>
<p>Even-- </p>
<pre class="moz-signature" cols="72"><a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>