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

Pieter Kempeneers kempenep at gmail.com
Wed Nov 26 09:17:09 PST 2014


Simen,

In case you can not find a solution with gdal_calc.py, you could try to use
pkfilter from pktools (http://pktools.nongnu.org). Once installed
(currently under Linux only), you can produce your median raster as follows:

pkfilter -i infile -o outfile -dz 1 -f median

The option -dz 1 indicates a filter in the spectral/time domain (instead of
space domain). You can also check the examples on
http://pktools.nongnu.org/html/md_doc_examples_pkfilter.html#examples_pkfilter

Please don't hesitate to mail if you have any problems installing or
running the command.

Pieter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141126/e4cab4c4/attachment.html>


More information about the gdal-dev mailing list