Thanks Micha, That works but I don’t know why it is called “BundleToPerfectSensor”? I have searched for pansharpening algorithms previously and would never have guessed that one!
Cheers Grant Perth WA From: Micha Silver <tsvi...@gmail.com> Sent: Thursday, May 23, 2024 10:38 PM To: Grant Boxer <box...@iinet.net.au>; qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] Pansharpening Images In the past I've used the pan sharpening function in Orfeo Toolbox on WorldView 3 imagery. I chose the "bayes" method, not Gram-Schmidt that you want. Orfeo implements three sharpening algorithms: https://www.orfeo-toolbox.org/CookBook/Applications/app_BundleToPerfectSensor.html Here's the code I used (after preparing a *.vrt from both the PAN and the Multiband files) WV_dir="....." region="....." # Pan sharpening otbcli_BundleToPerfectSensor -inp ${WV_dir}/${region}_PAN.vrt -inxs ${WV_dir}/${region}_Multi.vrt -out ${WV_dir}/${region}_pansharp_bayes.tif uint16 -method bayes -ram 8000 -progress true # Compress gdal_translate -co COMPRESS=ZSTD -co PREDICTOR=2 ${WV_dir}/${region}_pansharp_bayes.tif ${WV_dir}/${region}_pansharp_bayes2.tif mv ${WV_dir}/${region}_pansharp_bayes2.tif ${WV_dir}/${region}_pansharp_bayes.tif gdaladdo -r average --config COMPRESS_OVERVIEW ZSTD --config PREDICTOR_OVERVIEW 2 -ro ${WV_dir}/${region}_pansharp_bayes.tif HTH On 23/05/2024 6:43, Grant Boxer via QGIS-User wrote: Does anyone know of a plug-in or algorithm for QGIS where I can pansharpen satellite imagery using the Gram-Schmidt method? Cheers Grant Perth WA _______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org <mailto:QGIS-User@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- Micha Silver Ben Gurion Univ. Sde Boker, Remote Sensing Lab cell: +972-523-665918
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user