<div dir="ltr">Hi Abdul,<div><br></div><div>For the specific case of multiple rasters that share the same extent, the next release of GDAL should have a replacement "gdal_calc" that would take multiple inputs and write a VRT that applies an expression to those inputs ("max", in your case). In the meantime, I think your best option would be to prepare the VRT yourself.</div><div><br></div><div>Dan</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2025 at 3:12 PM Abdul Raheem Siddiqui 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-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">I am looking for functionality to create a VRT of multiple rasters where the VRT pixel value is the maximum of underlying rasters pixel values.</div><div dir="auto"><br></div><div dir="auto">I found out that we have pixel functions <a href="https://lists.osgeo.org/pipermail/gdal-dev/2016-September/045134.html" rel="noreferrer" target="_blank">https://lists.osgeo.org/pipermail/gdal-dev/2016-September/045134.html</a> that we can add to VRTs to get this behavior but just checking to see if there is a direct way to specify this in gdalbuildvrt command line call or do one has to manually inject this in VRT xml.</div><div dir="auto"><br></div><div dir="auto">On the same note does the new gdaltileindex provide this functionality of selecting the max value for each pixel out of the box?</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Abdul Raheem Siddiqui</div><div dir="auto">ERT Inc.</div><div dir="auto"><br></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>