Re: [R-sig-Geo] Speeding raster processing function

2014-02-15 Thread Florian Betz
Hi Brian, maybe you could also have a look at the wind.shelter function in the RSAGA package? It gives you an index for the exposure/shelter of a surface to the wind and works quite well. Of course, this does not really solve your code problem, but might be a faster alternative... Regards,

[R-sig-Geo] Question off topic

2014-02-15 Thread Luis Iván Ortiz Valencia
Sorry for simple question. Is it correct to say that a CAR model is a spatial lag model and a SAR model is a error spatial model.? I revised some literature where these concepts are not changed. Ivan [[alternative HTML version deleted]] ___

Re: [R-sig-Geo] Question off topic

2014-02-15 Thread Roger Bivand
On Sat, 15 Feb 2014, Luis Iván Ortiz Valencia wrote: Sorry for simple question. Is it correct to say that a CAR model is a spatial lag model and a SAR model is a error spatial model.? No, it is not. The spatial lag and spatial error models are both SAR - simultaneous autoregressive, while

Re: [R-sig-Geo] Speeding raster processing function

2014-02-15 Thread Jonathan Greenberg
Hi Brian: Couple of things: first, viewshed analyses are notoriously complicated and result in decidedly non-embarassingly parallel problem. A lot of the most efficient solutions I've seen involve GPU processing. With that said, you might want to try to port this to my rasterEngine framework

Re: [R-sig-Geo] Speeding raster processing function

2014-02-15 Thread Oscar Perpiñan
Hello, Although it is a different problem, maybe our solution for downscaling of global solar irradiation is useful for you. It is documented in this arXiv paper: http://arxiv.org/abs/1311.7235. The code is here: https://github.com/EDMANSolar/downscaling/blob/master/code.R (horizon blocking with

[R-sig-Geo] adehabitatLT | Patterns in Missing Values in Trajects

2014-02-15 Thread Jefferson Ferreira Ferreira
Dear colleagues, I'm using adehabitatLT for the first time analyzing jaguar movements in amazon. I'm running runsNAltraj to detect any autocorrelation in the location of missing relocations. But I'm a beginner in this task and I'm not knowing to how to interpret the graph generated by this

Re: [R-sig-Geo] Speeding raster processing function

2014-02-15 Thread Robert J. Hijmans
Brian, Here is, I think, an improved version. Your code had many steps that could be simplified; but removing the inner loop was key, as you indicated. For the one example I used, this one is 150 times faster. More could be done (e.g. by using data.table) and it could be made memory safe for

[R-sig-Geo] question about unique in lon/lat

2014-02-15 Thread Hodgess, Erin
Hello! I have space-time data frame. Here are the first few rows: name indexlon lat 1 Abilene,TX 95.285 -99.73314 32.44874 2 Abilene,TX 98.603 -99.73314 32.44874 3 Abilene,TX 100.197 -99.73314 32.44874 4 Abilene,TX 102.016 -99.73314

Re: [R-sig-Geo] question about unique in lon/lat

2014-02-15 Thread Hodgess, Erin
Just figured it out: unique(cbind(bigz$lon,bigz$lat)) Nothing like posting to the list to help you solve a problem. thanks, Erin From: r-sig-geo-boun...@r-project.org [r-sig-geo-boun...@r-project.org] on behalf of Hodgess, Erin [hodge...@uhd.edu]