<div dir="ltr">Dear Respected Authors:<div><br></div><div>I would be grateful if you could share any hints on it.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 4:33 PM, Simen Langseth <span dir="ltr"><<a href="mailto:simlangen@gmail.com" target="_blank">simlangen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Marius Jigmond:<br><br>Thanks for your attempt.<br><br>Unfortunately, it is producing 3 band outfile, rather than 1 band median image.<br><br>I could not figure out what this code computed, all the resulted 3 bands images are also different.<br><br>I hope someone can help me.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 12:09 PM, Marius Jigmond <span dir="ltr"><<a href="mailto:mariusjigmond@hotmail.com" target="_blank">mariusjigmond@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Does the following work:<div><br><div>gdal_calc.py -A infile --allBands=A --outfile=outfile --calc="median(A)"</div><div><br><br><div><hr>Date: Mon, 24 Nov 2014 19:14:06 +0900<br>From: <a href="mailto:simlangen@gmail.com" target="_blank">simlangen@gmail.com</a><br>To: <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>Subject: [gdal-dev] gdal_calc.py: produce median raster<div><div><br><br><div dir="ltr">I have one GeoTiff file with 3 bands. I want to produce a raster file computing pixel wise median value for the three raster bands. How can I do that?<div><br></div><div>I tried as follows:</div><div><br></div><div>gdal_calc.py -A infile --allBands --outfile outfile --calc median(A)</div><div><br></div><div>But could not get any out file.</div><div><br></div><div> </div></div>
<br></div></div>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div></div></div>                                       </div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>