Hi Abdul, 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.
Dan On Thu, Feb 13, 2025 at 3:12 PM Abdul Raheem Siddiqui via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > Hello, > > 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. > > I found out that we have pixel functions > https://lists.osgeo.org/pipermail/gdal-dev/2016-September/045134.html > 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. > > On the same note does the new gdaltileindex provide this functionality of > selecting the max value for each pixel out of the box? > > Regards, > Abdul Raheem Siddiqui > ERT Inc. > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev