[R] how to calculate length of each triangulated face in deldir
uday
uday_143_4u at hotmail.com
Sun Jan 29 21:50:49 CET 2012
Hi,
I have some data
data=read.table("SCI.was" ,header=TRUE)
sci_lat=data[,7] # latitude
temp_lon=data[,8] # longitude
# the longitude data is in 360 degree format need to convert to -180 to 180
sci_lon= ((temp_lon+180) %% 360 ) -180
m <-cbind(sci_lon,sci_lat)
dist <- spDistsN1(m, m[1,], longlat=TRUE)
hist(dist[2:9997])
try <- deldir(sci_lon,sci_lat)
try_p <- deldir(sci_lon,sci_lat,plot=TRUE,wl='tr')
Now I would like to calculate the length of each triangulated face , could
somebody please tell me how to calculate it ?
Cheers
Uday
--
View this message in context: http://r.789695.n4.nabble.com/how-to-calculate-length-of-each-triangulated-face-in-deldir-tp4339205p4339205.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list