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.
RE: gmt blockmean - Added by Paul 7 months ago
Please post on the GMT forum at www.generic-mapping-tools.org instead.
cat test.xyz | gmt blockmean -R0/180/0/180 -I1/1 -Sn -Gsam.grd gmt grd2xyz sam.grd -do0 > sam.xyz