<div dir="ltr" gmail_original="1">Your inputs must be compressed and you are trying to write uncompressed output. Add -co COMPRESS=DEFLATE and it should work. Also I find that instead of using gdal_merge.py for merging large files, creating a virtual raster first and then using gdal_translate to convert to geotiff is much more efficient. See the workflow at <a href="https://courses.spatialthoughts.com/gdal-tools.html#merging-tiles">https://courses.spatialthoughts.com/gdal-tools.html#merging-tiles</a><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">---<div>Ujaval Gandhi</div><div>Spatial Thoughts</div><div><a href="http://www.spatialthoughts.com" target="_blank">www.spatialthoughts.com</a></div><div><br></div></div></div></div><br></div><br><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/w/Z2RhbC1kZXZAbGlzdHMub3NnZW8ub3Jn/5b88a6d806144de4fb78725c7a3fd1bd807c5c71.png?u=8747767" ><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 10, 2022 at 3:50 AM Terra Frost <terrafrost@gmail.com> 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;"><div dir="ltr">When I do "<font face="monospace">gdal_merge -o result.tif bottom.tif top.tif</font>" I get the following error:<div><br></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div><font face="monospace">ERROR 3: result.tif: Free disk space available is 1011663560704 bytes, whereas 61588097799713184 are at least necessary. You can disable this check by defining the CHECK_DISK_FREE_SPACE configuration option to FALSE.</font></div><div><font face="monospace">Creation failed, terminating gdal_merge.</font></div></blockquote><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">I don't understand. The two TIFs I'm trying to merge are 1.27GB and 64MB and it's saying </font>61588097799713184 bytes are needed? That's 61.58 PB. Why would gdal_merge think it'd need 61.58 PB?</div></div>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/gdal-dev</a><br>
</blockquote></div>