[GRASS-user] Re: r.surf.nnbathy interpolation to whole region

Hamish hamish_nospam at yahoo.com
Thu Sep 6 23:11:35 EDT 2007


Carlos wrote:
> >  Since nnbathy is cell-center oriented each
> > N,S,E,W extent has to be shifted half a current GRASS region
> > resolution to avoid it's output missalignment with current GRASS
> > region.
> 
> I always though that GRASS was cell-center oriented..


the region is set from the outer bound of a cell.

For example, a 1x1 cube is centered at 0.5,0.5 within a region of 0,1 0,1:

G63> g.region -p n=1 s=0 e=1 w=0 res=1
G63> r.mapcalc one=1
G63> r.out.xyz one
0.5|0.5|1


see the first few lines of rasterintro.html


Hamish




More information about the grass-user mailing list