[gdal-dev] gdal_calc.py: produce median raster

Marius Jigmond mariusjigmond at hotmail.com
Mon Nov 24 19:09:16 PST 2014

Does the following work:
gdal_calc.py -A infile --allBands=A --outfile=outfile --calc="median(A)"

Date: Mon, 24 Nov 2014 19:14:06 +0900
From: simlangen at gmail.com
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] gdal_calc.py: produce median raster

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?
I tried as follows:
gdal_calc.py -A infile --allBands --outfile outfile --calc median(A)
But could not get any out file.

gdal-dev mailing list
gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141124/0567bc41/attachment.html>

More information about the gdal-dev mailing list