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.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to