Xyz2grd -A, no median?

I’m surprised to see that there is no way to specify to use the median in xyz2grd -A.

Wouldn’t this be very nice to have?

Unlike computing means and sums, median and modes require a separate array per bin. Given we have gmt blockmedian -Gmedians.grd for you to use, why would I spend my remaining life and duplicate code from block median and inserting it into xyz2grd.c

1 Like

Valid point indeed.

Buckle up, blockmedian.