Re: [R-sig-Geo] [raster] substraction between two rasterLayers: error Readbin

2011-11-09 Thread Mathieu Rajerison
Ok, thanks for the answer. It must be a problem of disk space. I'll try what you say. Best, Mathieu 2011/11/9 Robert J. Hijmans > Mathieu/Carsten, > > Carsten's suggestion is also good: > > elev<-overlay(detm@layers[[1]],detm@layers[[2]], > fun=function(a,b) {return(a-b)} ) > > although I wou

[R-sig-Geo] plotting raster* objects: controlling the display scale

2011-11-09 Thread Matthias Boer
Hi I am plotting series of raster* objects with 'plot'. The raster* objects are change maps with variable scales. I want to plot them all with the same scale centred on zero such that it's easy to see where there is a positive or negative response. I am using zlim=c(display_min,display_max) to

[R-sig-Geo] Stack, brick (or other data object) to query large amounts of raster data

2011-11-09 Thread pgalpern
Hello! Trying to decide the best way to store a large amount of data in a function I am writing using the raster package. The goal is speed. I need to flexibly and efficiently handles cases where 10 to 5000 copies of a raster are required. The raster that requires replication would typ

Re: [R-sig-Geo] Export raster data as *.grd file format in ArcMap

2011-11-09 Thread Robert J. Hijmans
Leni, If you have raster data in Arc and export as GRID it will create a database (folder, including a parallel folder called info) that you can treat like a file and open in R. Alternatively you can export to tif, img (erdas) and other formats (avoid ascii) that raster can read (most of them via

Re: [R-sig-Geo] [raster] substraction between two rasterLayers: error Readbin

2011-11-09 Thread Robert J. Hijmans
Mathieu/Carsten, Carsten's suggestion is also good: elev<-overlay(detm@layers[[1]],detm@layers[[2]], fun=function(a,b) {return(a-b)} ) although I would do: elev<-overlay(detm, fun=function(a,b) {return(b-a) } , filename="disk/with/space.tif") Robert On Wed, Nov 9, 2011 at 8:46 AM, Carsten Ne

Re: [R-sig-Geo] [raster] substraction between two rasterLayers: error Readbin

2011-11-09 Thread Robert J. Hijmans
Mathieu, The error message says that something is going wrong when writing the results to disk. This smells like bug, but it is almost certainly because there is no more disk space available in your temp folder/disk. To avoid using a temp file (used for large files only), you can use calc with a f

Re: [R-sig-Geo] problem with raster calculation

2011-11-09 Thread steven mosher
Please list what version of raster you are using. A bug was submitted and corrected on this issue sometime ago so I suspect you may have an old version. sessionInfo() please when you have a question. On Tue, Nov 1, 2011 at 8:36 AM, Aidin Niamir wrote: > Dear all > > I am experiencing a str

Re: [R-sig-Geo] [raster] substraction between two rasterLayers: error Readbin

2011-11-09 Thread Carsten Neumann
Am 09.11.2011 15:39, schrieb Mathieu Rajerison: > Hi, > > > I have a RasterStack detm composed of a dem and a dtm. > > I wanted to apply the difference between dem and dtm so as to get the > elevation. > > But I got the following message (in French): > Erreur dans result[, i]<- readBin(raster@fil

Re: [R-sig-Geo] Calculating perimeter

2011-11-09 Thread Sam Rabin
Roger — Setting the repositories as suggested worked well, for these and one other package I'd been having trouble with. gLength worked fine once I got them working. I was only talking about single-ring polygon objects. Robert — The shapefiles were indeed in lat/long, so the fact that library("

[R-sig-Geo] [raster] substraction between two rasterLayers: error Readbin

2011-11-09 Thread Mathieu Rajerison
Hi, I have a RasterStack detm composed of a dem and a dtm. I wanted to apply the difference between dem and dtm so as to get the elevation. But I got the following message (in French): Erreur dans result[, i] <- readBin(raster@file@con, what = dtype, n = ncols, : le nombre d'objets à remplacer

[R-sig-Geo] Export raster data as *.grd file format in ArcMap

2011-11-09 Thread leni
Hi, I want to with raster data generated from a 3D pointcloud in R with the package "raster". But I have problems exporting my raster dataset from ArcMap. By "export data"/GRID I get a file with an *.aux extension. What I need is *.grd. Can anybody help me out? Cheers, Leni -- View this mess

[R-sig-Geo] prj file and towgs84 parameters

2011-11-09 Thread Agustin Lobo
I have two shapefile layers with identical prj file, but when I open the first one in QGIS Properties/General I see "EPSG:23031 - ED50 / UTM zone 31N" defined as +proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs (which is what I want) while when I open the second one it

Re: [R-sig-Geo] bbox

2011-11-09 Thread Tom Gottfried
assuming your geometry column is 'the_geom': while querying SELECT ... FROM ... WHERE the_geom @ ST_geomfromtext(...); with ST_geomfromtext() you can set up your "custom bbox". But of course you can load everything into R and then use subset() if your data are in a data.frame or use over() with

Re: [R-sig-Geo] SAS to R translation help wanted

2011-11-09 Thread Kamran Safi
Hi Anthony, if I am not mistaken, David already started to translate his filter into R. At least I know that he wanted to do so. If you really are keen, we could give it a try. On the other hand the filter was implemented in www.movebank.org Theoretically, you can upload your data to movebank,

[R-sig-Geo] bbox

2011-11-09 Thread Raffaele Morelli
Hi, once a Postgis layer X is retrieved, how can I juggle with subsets of X? eg. I am working with bubble plots on a EU dataset but I want to do test it only using a 30x30Km in the nearby of Rome and I have no attribute data but the value I use for the bubbles. Should I use "subset"? Can I set a

Re: [R-sig-Geo] SAS to R translation help wanted

2011-11-09 Thread Michael Sumner
These filters are easy to implement and are available in contributed R packages, but they are not very good. When you say "satellite"do you mean Argos or GPS? Argos recently updated their proprietary algorithms to give better estimates but it it is still a rather black box.To me the issue is about

[R-sig-Geo] kriging and second order trend

2011-11-09 Thread Javier Leon Patino
I would like to remove a second order trend from elevation data before kriging. Was thinking on using surf.ls to fit the trend but not sure how to pass it onto the krige argument. Any suggestions? Thanks [[alternative HTML version deleted]] __