[GRASSLIST:10648] Re: Making a two-band x,y file
Hamish
hamish_nospam at yahoo.com
Wed Mar 1 07:28:40 EST 2006
> Is there an easy way in grass to make a "GLT" file for a given input
> raster, a two-band file where band 1 is the x location of the
> corresponding pixel in the input, and band 2 is the corresponding y
> location?
g.region rast=map
r.mapcalc 'x_vals=x()'
r.mapcalc 'y_vals=y()'
?
http://grass.ibiblio.org/grass61/manuals/html61_user/r.mapcalc.html
or for list of cell coords:
r.stats -g
http://grass.ibiblio.org/grass61/manuals/html61_user/r.stats.html
?
Hamish
More information about the grass-user
mailing list