Re: [R-sig-Geo] reading .grd file in R?

2010-10-12 Thread Rainer Hurling
tual raster was sideways. Thanks for showing this way for working with binary data, Rainer Hurling Barry ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Question concerning calc() function in raster

2010-10-10 Thread Rainer M Krug
this behaviour should be changed. 2) Is the (!canProcessInMemory(x, 2)) correct? I would actually assume, that the processing in one piece is only done, when canProcessInMemory() is TRUE? Cheers and thanks a lot for this really hice package (I am back and using it again), Rainer .calcLayers

Re: [R-sig-Geo] reading .grd file in R?

2010-10-09 Thread Rainer Hurling
? http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file Hope this helps, Rainer Thank u all, Mahalakshmi Quoting Barry Rowlingson : > On Sat, Oct 9, 2010 at 12:32 AM, wrote: >> >> >> Can someone let me know what package a

Re: [R-sig-Geo] xml package not install

2010-10-05 Thread Rainer Stuetz
> apt-file search xml2-config libxml2-dev: /usr/bin/xml2-config libxml2-dev: /usr/share/man/man1/xml2-config.1.gz > sudo apt-get install libxml2-dev Also see this: http://cran.r-project.org/web/packages/XML/INSTALL HTH, Rainer ___ R-sig-Geo m

Re: [R-sig-Geo] There is a better distribution of linux to get the best performance of R, GRASS.. etc?

2010-09-17 Thread Rainer M Krug
ition on my HDD, and after about 6 months, I realised that I haven't used Windows at all - and the partition was gone. Cheers, Rainer > Stefano > > > > On Fri, 2010-09-17 at 13:43 +0200, Virgilio Gomez Rubio wrote: >> Dear Jaime, >> >> In addition to all o

Re: [R-sig-Geo] Open source GIS and R

2010-09-17 Thread Rainer M Krug
simple and fast visualisation of spatial data: QGIS - - interfacing with R: GRASS or SAGA - - powerful stand-alone GIS: GRASS (to a lesser degree GRASS through QGIS lugin) Hope this helps, Rainer > > What will be the best option of these or other alternatives? > > Best, > >

Re: [R-sig-Geo] Determine angle between polyline segments

2010-08-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks a lot Nikhil The functions seem to do what I need, but I am looking into the package adehabitat as suggested by Mathieu and it seems to be ideal for the purpose. Thanks a lot, Rainer On 30/07/10 17:22, Mathieu Basille wrote: > He

[R-sig-Geo] Determine angle between polyline segments

2010-07-30 Thread Rainer M Krug
between the different line segments in R (after importing the line feature into R)? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039

Re: [R-sig-Geo] Problem with readRAST6

2010-01-29 Thread Rainer M Krug
On Fri, Jan 29, 2010 at 2:51 PM, Roger Bivand wrote: > On Fri, 29 Jan 2010, Rainer M Krug wrote: > > On Fri, Jan 29, 2010 at 2:32 PM, Roger Bivand >> wrote: >> >> On Fri, 29 Jan 2010, Rainer M Krug wrote: >>> >>> Hi >>> >>>>

Re: [R-sig-Geo] Problem with readRAST6

2010-01-29 Thread Rainer M Krug
On Fri, Jan 29, 2010 at 2:32 PM, Roger Bivand wrote: > On Fri, 29 Jan 2010, Rainer M Krug wrote: > > Hi >> >> I have a question concerning readRAST6 and the plugin. When I use the >> default (plugin=NULL), I get the error below, >> > > Well, this does ha

[R-sig-Geo] Problem with readRAST6

2010-01-29 Thread Rainer M Krug
0.1-3 RSQLite_0.8-0 DBI_0.2-5 spgrass6_0.6-12 [5] XML_2.6-0 maptools_0.7-29 lattice_0.18-3 foreign_0.8-38 [9] simecol_0.6-9 deSolve_1.6 rgdal_0.6-24sp_0.9-52 loaded via a namespace (and not attached): [1] grid_2.10.1 tools_2.10.1 > Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rai

Re: [R-sig-Geo] rgdal 64bit Windows version?

2010-01-26 Thread Rainer Hurling
ative reasons. I will have a look at it in my spare time ;-) Rainer There are notes on build rgdal for Windows here, but I've not done it myself for a while: file.show(system.file("README.windows", package="rgdal")) I am keen to try this for myself, but it will not be

Re: [R-sig-Geo] rgdal 64bit Windows version?

2010-01-26 Thread Rainer Hurling
Am 25.01.2010 22:35 (UTC+1) schrieb Roger Bivand: On Mon, 25 Jan 2010, Rainer Hurling wrote: Some days ago Brian Ripley and Uwe Ligges announced an update to MinGW-w64 builds for 64-bit Windows on r-de...@. This daily version works really nice. But it is not fully applicable at this time

[R-sig-Geo] rgdal 64bit Windows version?

2010-01-25 Thread Rainer Hurling
, which depends on a 64-bit version of gdal(.dll). Is their anything known about what is planned with this important part of spatial software? Thanks for answering, Rainer Hurling ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch

Re: [R-sig-Geo] ecw for rgdal package

2009-12-23 Thread Rainer M Krug
al library. I suppose it is a bit tricky to include this > >> function because of the need for the ECW SDK library from ER mapper... > Check out http://trac.osgeo.org/ubuntugis/wiki/UserTutorials on how to include ECW support under Ubuntu. Hope this helps, Rainer > > >

Re: [R-sig-Geo] creating cluster with between-points arbitrary distances

2009-12-09 Thread Rainer M Krug
at s and 3 until no individuals are left Hope this helps, Rainer > > Assuming what I said is correct, one thing you can do is create a > relative neighbor graph of your points, and then drop any edges from the > graph that exceed 1000 meters. This will create a set up unconnected >

[R-sig-Geo] warning when using readRAST6

2009-09-23 Thread Rainer M Krug
Hi when I use readRAST6() I get the warning message below. it happens to different GRASS layers. Is this a problem on my side, or in readRAST6? Cheers, Rainer > x <- readRAST6("MASK") Warning message: In is.na(pt[, "keydesc_count"]) : is.na() applied to non-(lis

Re: [R-sig-Geo] Converting SpatialPointsDataFrame to SpatialGridDataFrame

2009-06-11 Thread Rainer M Krug
On Thu, Jun 11, 2009 at 3:50 PM, Roger Bivand wrote: > On Thu, 11 Jun 2009, Rainer M Krug wrote: > > Hi >> >> I spend the whole day with it, trying grass, gdal, R, but was not >> successful >> (and I know it can be done...). >> >> I have a s

[R-sig-Geo] Converting SpatialPointsDataFrame to SpatialGridDataFrame

2009-06-11 Thread Rainer M Krug
quot;./plants.shp") r <- readAsciiGrid("./plants.asc") ## and now? I seem to remember that it works by using overlay(), but I don't remember how.\ Also, it should be working with pointsToRaster() from the package raster, but I also was not successful. Cheers, Rainer -- Raine

Re: [R-sig-Geo] Problem with overlay(x="SpatialGridDataFrame", y="SpatialPoints")

2009-03-31 Thread Rainer M Krug
On Tue, Mar 31, 2009 at 3:54 PM, Roger Bivand wrote: > On Tue, 31 Mar 2009, Rainer M Krug wrote: > > On Tue, Mar 31, 2009 at 2:16 PM, Roger Bivand >> wrote: >> >> On Tue, 31 Mar 2009, Rainer M Krug wrote: >>> >>> Hi >>> >>>&g

Re: [R-sig-Geo] Problem with overlay(x="SpatialGridDataFrame", y="SpatialPoints")

2009-03-31 Thread Rainer M Krug
On Tue, Mar 31, 2009 at 2:16 PM, Roger Bivand wrote: > On Tue, 31 Mar 2009, Rainer M Krug wrote: > > Hi >> >> I want to get the data from a grid at locations based in a point vector >> file. I am using the following code, and I get the error below. >> > >

[R-sig-Geo] Problem with overlay(x="SpatialGridDataFrame", y="SpatialPoints")

2009-03-31 Thread Rainer M Krug
Hi I want to get the data from a grid at locations based in a point vector file. I am using the following code, and I get the error below. Could anybody help to solve this? Thanks Rainer > lastFire <- readAsciiGrid("fire_last_2006.asc") > biota <- readShapePoints("

Re: [R-sig-Geo] Problem loading GRASS 6.3.0 raster

2009-03-10 Thread Rainer M Krug
On Tue, Mar 10, 2009 at 7:07 PM, Roger Bivand wrote: > On Tue, 10 Mar 2009, Rainer M Krug wrote: > >> Hi >> >> I want to load a raster from GRASS with readRAST6(..., useGDAL=TRUE), >> but I get the following error: >> >> Error in .local(.Object, ...) :

[R-sig-Geo] Problem loading GRASS 6.3.0 raster

2009-03-10 Thread Rainer M Krug
ystem, and is not recognised as a supported dataset name. When I use readRAST6(..., useGDAL=FALSE) it works. I am using R 2.7.2, spgrass 0.5.18 and rgdal 0.6.7 GDAL is compiled without GRASS support, but the plugin is installed. Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN)

Re: [R-sig-Geo] Calculating descriptive stats from many maps

2009-02-10 Thread Rainer M Krug
Thanks a lot to all of you. You are right Roger, I need cell-wise statistics I like the idea of the "raster" package, and I will try it out just now. Concerning SAGA: I'll look into that if "raster" does not work (or is to slow). I'll report back Rainer O

[R-sig-Geo] Calculating descriptive stats from many maps

2009-02-09 Thread Rainer M Krug
Hi I have 25000 maps, generated by simulation predictions, covering the same area, and would like to calculate some descriptive stats, like mean, standard deviation, median, quartiles of all cells, to create a "variability map". Is there an easy way of doing this in R? Thank

Re: [R-sig-Geo] New release of rgdal

2009-01-16 Thread Rainer Hurling
script I am used to get a complete install: -- #!/bin/sh R CMD INSTALL --configure-args='--with-proj-lib=/usr/local/lib' rgdal_0.6-1.tar.gz -- Is there any chance to integrate this 'path-finding' in the configure of future versions of rgdal?

Re: [R-sig-Geo] Problem when loading GRASS 6 raster with large integer values

2008-09-16 Thread Rainer M Krug
On Tue, Sep 16, 2008 at 6:38 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Tue, 16 Sep 2008, Rainer M Krug wrote: > >> Hi >> >> when I try to import a raster layer from grass with large integer >> values, I get wrong values in R (see below). When I change th

[R-sig-Geo] Problem when loading GRASS 6 raster with large integer values

2008-09-16 Thread Rainer M Krug
Hi when I try to import a raster layer from grass with large integer values, I get wrong values in R (see below). When I change the datatype in GRASS to double, it works. Thanks, Rainer GRASS 6.3.0 (grass):~/Documents/Projects/AlienSpread/R > r.stats -c input=tmpDispLocal 100% 0 39798

Re: [R-sig-Geo] Shapefile - GRID operations

2008-09-08 Thread Rainer M Krug
gt; variable of interest distributed over all my administrative units. Look into the function overlay() in the package sp. This will do what you need. Rainer > > > So for sure (I mean), there is a more efficient way to do it with R... > Anyone could help me ? > > Thanks in a

[R-sig-Geo] Plan to build Package to use GRASS from R

2008-02-27 Thread Rainer M Krug
full? 2) Is there a way to obtain easily all commands from GRASS and the parameters possible and required? Any ideas and comments welcome, Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department of Botany University of Cape Town Ro

Re: [R-sig-Geo] delete region from shapefile / map only certain regions

2008-01-06 Thread Rainer Hurling
amburg' and 'Bremen' both in the northern part of Germany? If so, I would suggest to not delete them. Hope this helps, Rainer > Second, is it possible just to plot parts of the map, given some > condition (say, part of a state or a larger region)? > > I hope these q

Re: [R-sig-Geo] polygon buffers?

2007-09-04 Thread rainer
nicely. But it also works directly in the QGIS grass console Rainer >On Sun, 2 Sep 2007, Peter Adler wrote: > >> Dear R gurus, >> >> I am very excited about all the spatials tools in R because they have >> almost liberated me from ESRI products. One of the last things I

Re: [R-sig-Geo] vector to raster

2007-07-08 Thread Rainer M. Krug
integrate these two (grass into R) Rainer > > Thanks! > > Agus > ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Res: ODP: Generating vetor (shapefiles) in R

2007-06-22 Thread Rainer M. Krug
What about using grass 6 and the command r.to.vect - you can do this from R with the package spgrass6 Rainer Milton Cezar Ribeiro wrote: Dear Roger, I am simulating some analyzes on R, and the output are a lot of AscGrid (raster) maps. After generate these maps (about 1,000 of them), I