Gridding increment, is there a trick to find it automagically?


I have many xyz files that are converted to grd format in this way (R depends on every file):

triangulate $R -I15s -Gtmp.grd

The problem is that I just noticed that this -I15s does not work for several files, their areas are quite small. I have been searching a way to automatically derive the grid increment but no success so far. For example, gmtinfo -I- works to automatically derive the region R for a xyz file.

Any hint is much appreciated,