name & dimensionality 
kind 
in/out 
description 




var 
SP/ DP 
OUT 
median of the data set, defined as the middle number (or
the average of the 2 middle numbers) once the valid data points are
sorted in monotonous order 
data(:) 
SP/ DP 
IN 
data set 
badval (OPTIONAL) 
SP/ DP 
IN 
sentinel value given to bad data points. Data points with this
value will be ignored during calculation of the median. If
not set, all points will be considered. Do not set to 0!. 
even (OPTIONAL) 
LGT 
IN 
if set to .true. and the number of
valid data points is even, will output the average of the 2
middle points (which doubles the calculation time). If the
number of points is odd, the single middle point is output
and this keyword is ignored. 