Re: [R-sig-Geo] Replicating spatstat::pcfcross

2014-01-27 Thread Adrian Baddeley
On 28/01/14 10:39, Noam Ross wrote: > I have an application for which I need very fast calculation of the pair > correlation function between two point types in a marked point pattern. > I'm attempting to replicate results from spatstat::pcfcross. I wrote a > quick-and-dirty version of this functi

Re: [R-sig-Geo] writeRaster error: unknown file format

2014-01-27 Thread pecardoso
Robert, Thank you for your message. First thing, raster package is simply amazing. I've installed raster v2.2-16. I've imported the TIF from the dropbox link with i.l8 <- raster('D:\\Dropbox\\Public\\LC81810682013122LGN01_B2.TIF', package = "raster") > i.l8 class : RasterLay

[R-sig-Geo] Replicating spatstat::pcfcross

2014-01-27 Thread Noam Ross
I have an application for which I need very fast calculation of the pair correlation function between two point types in a marked point pattern. I'm attempting to replicate results from spatstat::pcfcross. I wrote a quick-and-dirty version of this function to ensure that I understood it properly

Re: [R-sig-Geo] Creating presence/absence from grid cells & polygons

2014-01-27 Thread Robert J. Hijmans
Barnabas, In my example the IDs are the same as the rows on the data.frame (row 1 is cell 1, etc). Cells are numbered from left to right and then from top to bottom. See http://cran.r-project.org/web/packages/raster/vignettes/Raster.pdf for more info If you have merged your species polygons you c

Re: [R-sig-Geo] writeRaster error: unknown file format

2014-01-27 Thread Robert J. Hijmans
Paulo, This has been fixed in raster 2.2-16 (development version). You can install and try it: install.packages("raster", repos="http://R-Forge.R-project.org";) Robert On Fri, Jan 24, 2014 at 7:53 AM, pecardoso wrote: > Hello all. Thanks for your time. > > Robert, True about format, but 'IDRISI

Re: [R-sig-Geo] Can coordinate intervals be not constant in SpatialPixelsDataFrame object??

2014-01-27 Thread Edzer Pebesma
On 01/27/2014 02:13 PM, Agustin Lobo wrote: > Still doubts regarding the conversion to SpatialPixelsDataFrame- > I do: > load("https://dl.dropboxusercontent.com/u/3180464/delme.rda";) > class(delme) > delmepx <- SpatialPixelsDataFrame(delme, data=delme@data, > tolerance=0.000856898) SpatialPixe

[R-sig-Geo] Can coordinate intervals be not constant in SpatialPixelsDataFrame object??

2014-01-27 Thread Agustin Lobo
Still doubts regarding the conversion to SpatialPixelsDataFrame- I do: load("https://dl.dropboxusercontent.com/u/3180464/delme.rda";) class(delme) delmepx <- SpatialPixelsDataFrame(delme, data=delme@data, tolerance=0.000856898) delmepol <- as(delmepx,"SpatialPolygonsDataFrame") delmepx2 <- SpatialP

Re: [R-sig-Geo] sp::makegrid() bbox does not fully cover object

2014-01-27 Thread Edzer Pebesma
On 01/27/2014 11:40 AM, Mark Payne wrote: > I won't call this a bug, Definitely a bug; will look into it -- thanks for reporting! -- Edzer Pebesma Institute for Geoinformatics (ifgi), University of Münster Heisenbergstraße 2, 48149 Münster, Germany. Phone: +49 251 83 33081 http://ifgi.uni-muens

[R-sig-Geo] sp::makegrid() bbox does not fully cover object

2014-01-27 Thread Mark Payne
Hi, I have been playing with the makegrid function, and discovered something interesting. For example, consider the domain of the meuse data > data(meuse) > coordinates(meuse) <- ~x+y > bbox(meuse) minmax x 178605 181390 y 329714 333611 Now make a grid, and check its domain > grd <- ma