gmt blockmean

Added by Piyush 3 months ago

Hi...

I am trying to get number of samples for each bin using gmt blockmean via following script

cat test.xyz | gmt blockmean -R0/180/0/180 -I1/1 -Sn > sam.xyz

This only provides the values which have the number of samples of more than 0.
I want to the remaining values of bins which have samples values 0.

Thank you


Replies (1)

RE: gmt blockmean - Added by Paul 3 months ago

Please post on the GMT forum at www.generic-mapping-tools.org instead.

Just do

cat test.xyz | gmt blockmean -R0/180/0/180 -I1/1 -Sn -Gsam.grd
gmt grd2xyz sam.grd  -do0 > sam.xyz

(1-1/1)