[GRASS-user] Getting rows,cols of a region in a script

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon May 4 10:22:27 EDT 2009


I need the number of rows and columns to use with v.mkgrid. Currently I
use the following, rather long and complex command:
g.region -g | grep o | cut -d"=" -f2 | tr "\n" "," | cut -d"," -f1,2

Is there a better choice?

Thanks, Nikos



More information about the grass-user mailing list