changed blockmedian to blockmean (according to the GMT manual)