search for: x_utm

Displaying 2 results from an estimated 2 matches for "x_utm".

Did you mean: y_utm
2006 Oct 07
1
random point in a circle centred in a geographical position
...om points in a circle? (I couldn?t find any) 2. Do you think the code bellow produces uneven locations? 3. Any suggestions to programme the ?rejection method?? Maybe someone has already used it... Cheers albert #Code random location in a circle # Generate UTM coordinates (original location) > x_utm<-c(289800) > y_utm<-c(4603900) > coord<-as.data.frame(cbind(x_utm,y_utm)) # Generate a random radius with a maximum distance of 1000 meters from the original location. >radius<-runif(1,0,1000) # Generate a random angle >angle<-runif(1,0,360) #Generate a random x coordinat...
2007 Feb 27
0
Optimizing the loop for large data
...n=1000 and p=10. Here is what I wrote so far, but seems to be inefficient. I appreciate if someone help me out. library(foreign) library(MASS) D<-read.dbf('data/Indianapolis015.dbf') # import a data # data looks like this LONGLAB X Y Perimeter Area X_UTM Y_UTM F0 F1 F2 1 TAZ 18011:1000 -86.25985 39.95286 2.061630 0.1862549 50600.38 4435792 235 0 35 2 TAZ 18011:1001 -86.31030 39.97591 3.657006 0.7305006 46440.80 4438608 0 0 0 3 TAZ 18011:1002 -86.29542 39.97054 3.516089 0.6408084 47677.31 4437936 155 0 15 4 TAZ 18011:1...