<div dir="ltr"><div><div><div><div>Simen,<br><br></div>In case you can not find a solution with gdal_calc.py, you could try to use pkfilter from pktools (<a href="http://pktools.nongnu.org">http://pktools.nongnu.org</a>). Once installed (currently under Linux only), you can produce your median raster as follows:<br><br></div><div>pkfilter -i infile -o outfile -dz 1 -f median<br><br></div><div>The option -dz 1 indicates a filter in the spectral/time domain (instead of space domain). You can also check the examples on <a href="http://pktools.nongnu.org/html/md_doc_examples_pkfilter.html#examples_pkfilter">http://pktools.nongnu.org/html/md_doc_examples_pkfilter.html#examples_pkfilter</a><br><br></div><div>Please don't hesitate to mail if you have any problems installing or running the command.<br><br></div><div>Pieter.<br></div></div></div></div>