[R-sig-Geo] expand the dist covariate of the prediction-grid meuse.grid (sp package)

Christoph Hofer christoph.hofer at env.ethz.ch
Tue May 4 09:39:59 CEST 2010


Dear list


I would like to expand the covariate "dist"  of the meuse.grid dataset, of the sp package,
to the south-east direction. The value of the covariate dist is relative between [0,1].
Now, it is not clear for me how I shall calculate the distance between
a new gird point and the river (is it the perpendicular between the river border and the grid point)?

I appreciate for any tips or hints.



Christoph





ETH Zurich
Christoph Hofer
Soil and Terrestrial Environmental Physics
Institute of Terrestrial Ecosystems
CHN E 50.2
Universitätstrasse 16
8092 Zurich, Switzerland
phone         (+41) - (0)44 - 633 63 65
fax               (+41) - (0)44 - 633 11 23
e-mail: christoph.hofer at env.ethz.ch



More information about the R-sig-Geo mailing list