Skip to content
Prev 8180 / 29559 Next

expand the dist covariate of the prediction-grid meuse.grid (sp package)

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