<div dir="ltr">I would start with <div><br></div><div>gdalwarp <all your sources/files> out.tif </div><div><br></div><div>set -ts to something small at first to get a visual like -ts 1024 0   (the y zero means the aspect ratio is figured out sanely from the x size  - with no arguments you get best-preserving grid from all resolved inputs - set some or 3 of -t_srs -tr -te -ts for a specific grid spec). </div><div><br></div><div>Just make sure the file with the largest number of bands is first in the input list (separated by spaces), if actual data overlaps in matching sequential bands last-in wins (IIUC). </div><div><br></div><div>Cheers, Mike</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 24, 2024 at 4:02 AM lefsky--- via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</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"><div dir="ltr"><div>I've been incorporating gdal into my processing pipelines and have a question about a feature.</div><div><br></div><div>I need to be able to layer stack multiple images with different extents and varying numbers of bands, usually exceeding 1. I haven't been able to find a single command to do this in gdal. Am I missing something? If there is no such feature, has anyone developed a script out there that can robustly do all of those things (i.e. with checking for violation of assumptions about files and error handling)?</div><div><br></div><div>Michael </div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Michael Lefsky (He/His) <br></div><div>Home Location: HVHF+GH<br></div><div>Cell: 970-980-9036</div><div><div><span style="color:rgb(51,51,51);font-family:Arial,Helvetica,sans-serif;font-size:12px;white-space:nowrap"><a href="http://www.researcherid.com/rid/A-7224-2009" target="_blank">http://www.researcherid.com/rid/A-7224-2009</a></span><br><div><br><div><em style="color:rgb(96,96,96);font-family:Helvetica;font-size:11px"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><strong>“</strong><strong>for being prematurely, and worse, intuitively right — there’s a heavy price. But for being wrong — no, not so long as you’re wrong in a pack.</strong><strong></strong><strong>" Gary Brecher / Portis</strong></span></em></div></div></div></div><div><em style="color:rgb(96,96,96);font-family:Helvetica;font-size:11px"><span style="font-family:"courier new",courier,"lucida sans typewriter","lucida typewriter",monospace"><strong><br></strong></span></em></div><div><div style="color:rgb(34,34,34)"><font size="1">*I acknowledge that I live and work on stolen land. This is the land of the Cheyenne, Arapaho, Ute, and Ocheithi Sakowin people. To learn more about these nations, please visit;</font></div><div style="color:rgb(34,34,34)"><font size="1"><a href="http://www.utemountainutetribe.com/" style="color:rgb(17,85,204)" target="_blank">http://www.utemountainutetribe.com/</a><br></font></div><div style="color:rgb(34,34,34)"><font size="1"><a href="http://www.cheyennenation.com/" style="color:rgb(17,85,204)" target="_blank">http://www.cheyennenation.com/</a><br></font></div><div style="color:rgb(34,34,34)"><font size="1"><a href="https://cheyenneandarapaho-nsn.gov/" style="color:rgb(17,85,204)" target="_blank">https://cheyenneandarapaho-nsn.gov/</a><br></font></div><div style="color:rgb(34,34,34)"><font size="1"><a href="https://native-land.ca/" style="color:rgb(17,85,204)" target="_blank">https://native-land.ca/</a><br></font></div></div><div><br></div></div></div></div></div></div></div>
_______________________________________________<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><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Michael Sumner<br>Software and Database Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div>