[GRASS-user] Re: Getting rows,cols of a region in a script
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Mon May 4 10:24:19 EDT 2009
On Mon, 2009-05-04 at 16:23 +0200, Nikos Alexandris wrote:
> 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
Em.. that's meant to be used in a loop within a script for several maps.
Sorry for not making it clear.
Nikos
More information about the grass-user
mailing list