Re: [GRASS-stats] Load data multiple data from grass to R

2007-11-21 Thread Roger Bivand
o split it on separate obiects maybe this is better solution? Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norweg

Re: [GRASS-stats] Load data multiple data from grass to R

2007-11-22 Thread Roger Bivand
is considered poor practice. Roger Hamish Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-stats] Load data multiple data from grass to R

2007-11-22 Thread Roger Bivand
On Thu, 22 Nov 2007, Jarek Jasiewicz wrote: Roger Bivand wrote: On Wed, 21 Nov 2007, Jarek Jasiewicz wrote: > I'd like to write R sript to read more rasters from grass to R and > writeh them to objects with unique > > what I try to do: > > system("

Re: [GRASS-stats] Load data multiple data from grass to R

2007-11-23 Thread Roger Bivand
Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen

Re: [GRASS-stats] readVECT6 problem fo importing null data

2007-11-26 Thread Roger Bivand
hapefile and dbf which treat null in integer as 0 during export. So, it is a problem??? Or May I forgot do something. best regards Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats --

Re: [GRASS-stats] readVECT6 problem fo importing null data

2007-11-27 Thread Roger Bivand
___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 B

Re: [GRASS-stats] readVECT6 problem fo importing null data

2007-11-27 Thread Roger Bivand
On Tue, 27 Nov 2007, Jarosaw Jasiewicz wrote: Roger Bivand pisze: On Mon, 26 Nov 2007, Jarek Jasiewicz wrote: > Dear Collages! > > I found some Issue (seems problematic) with readVECT6 (there are all > commands I used, complete my answer) > > I have vector file att

Re: [GRASS-stats] readVECT6 problem fo importing null data

2007-11-29 Thread Roger Bivand
this, so maybe it's worth checking. I do not run PostgreSQL, so I'm afraid I can't check myself. If you do, maybe post to grass-dev? Roger Jarek -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, H

Re: [GRASS-stats] Reclassyify in R

2007-11-29 Thread Roger Bivand
st grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-m

Re: [GRASS-stats] readVECT6 problem fo importing null data

2007-12-05 Thread Roger Bivand
probable concerns export only, when atributres are stored in postgreSQL database and it happens when data during v.out.ogr to shp with dbf table, in spite of NOT NULL in pgsql is set cheers Jarek -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Econom

Re: [GRASS-stats] Re: [GRASS-user] grass/stats mapping/prediction question

2007-12-19 Thread Roger Bivand
map") Hope this helps, Roger outmap <- predict(tree,newdata=mypredDF, type="class") -------- ___ grass-user mailing list [EMAIL PROTECTED] http://lists.osgeo.org/mailman/l

Re: [GRASS-stats] Re: [GRASS-user] grass/stats mapping/prediction question

2007-12-19 Thread Roger Bivand
On Wed, 19 Dec 2007, Dylan Beaudette wrote: On Wednesday 19 December 2007, Roger Bivand wrote: On Wed, 19 Dec 2007, Daniel McInerney wrote: The original questioner should have written to the grass-stats list in the first place - thanks for CC-ing. See below for inline comments: Hi Andy

Re: [GRASS-stats] Convert IDL into Julian day

2008-01-16 Thread Roger Bivand
82610 Fax +39 0461 882672 --------- -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43

Re: [GRASS-stats] sequence of dates by one hour

2008-01-16 Thread Roger Bivand
Amico PhD candidate CUDAM and department of Civil and Environmental Engineering Universita' degli Studi di Trento Via Mesiano 77 - 38050 Trento - Italy email: [EMAIL PROTECTED] Tel. +39 0461 882610 Fax +39 0461 882672 http://www.dottorato.it/trento/ - -- Rog

Re: [GRASS-stats] using LOESS on spatial data

2008-01-19 Thread Roger Bivand
ou have traning and testing data sets, you can see how well loess predicts the test data given the training data. Hope this helps, Roger regards Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-stats] subset on spatialGrid??

2008-01-22 Thread Roger Bivand
se.grid) o1 <- as(meuse.grid, "SpatialPixelsDataFrame") o2 <- o1[o1$ffreq == 1,] summary(o2) Hope this helps, Roger tahnx Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats

Re: [GRASS-stats] clustering

2008-03-05 Thread Roger Bivand
achine learning" and "pattern recognition", so the references and links may be rather disorganised. Hope this helps, Roger Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats

Re: [GRASS-stats] Identifing lines with cats in SpatialLinesDataFrame

2008-03-07 Thread Roger Bivand
ot;2" .. ..$ :Formal class 'Lines' [package "sp"] with 2 slots .. .. .. ..@ Lines:List of 1 .. .. .. .. ..$ :Formal class 'Line' [package "sp"] with 1 slots .. .. .. .. .. .. ..@ coords: num [1:5, 1:2] 3590430 3590350 3590210 3590190 ___ grass

Re: [GRASS-stats] unexpected error with readVECT6

2008-03-10 Thread Roger Bivand
jects ls() character(0) why polygon Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School

Re: [GRASS-stats] R-GRASS error: "all connections are in use"

2008-04-24 Thread Roger Bivand
grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geo

Re: [GRASS-stats] R-GRASS error: "all connections are in use"

2008-04-26 Thread Roger Bivand
that more recent versions had fixed the problem, I don't think that we know what version of spgrass6 you are using. Roger Thanks again, JM On Fri, Apr 25, 2008 at 3:52 AM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Fri, 25 Apr 2008, Jarosaw Jasiewicz wrote: Hi This mess

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-05-31 Thread Roger Bivand
fore? Thanks Markus ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Admin

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-05-31 Thread Roger Bivand
On Sat, 31 May 2008, Markus Neteler wrote: Dear Roger, On Sat, May 31, 2008 at 5:51 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sat, 31 May 2008, Markus Neteler wrote: Dear Roger, all, I have to read in Lidar data from GRASS, so speed matters. I have modified the readVECT6() funct

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-01 Thread Roger Bivand
On Sat, 31 May 2008, Markus Neteler wrote: On Sat, May 31, 2008 at 6:35 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sat, 31 May 2008, Markus Neteler wrote: On Sat, May 31, 2008 at 5:51 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sat, 31 May 2008, Markus Neteler wrote: I

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-02 Thread Roger Bivand
On Sun, 1 Jun 2008, Markus Neteler wrote: On Sun, Jun 1, 2008 at 8:47 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sat, 31 May 2008, Markus Neteler wrote: On Sat, May 31, 2008 at 6:35 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sat, 31 May 2008, Markus Neteler wrote: On

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-02 Thread Roger Bivand
ode would be much cleaner than that currently used. I think the variants for native Windows/Cygwin/others will still have to co-exist, though. Roger Hamish -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, H

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-02 Thread Roger Bivand
ECTED]' file='/home/neteler/grassdata/nc_spm_07/sqlite/vector/gauss_random' The "file" line contains (almost) the dsn path (+ /head) Best wishes, Markus -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Admini

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-23 Thread Roger Bivand
ection, or TRUE to force use if the plugin is known to be available. Roger On Sun, 22 Jun 2008, Markus Neteler wrote: Dear Roger, On Mon, Jun 2, 2008 at 10:03 AM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Sun, 1 Jun 2008, Markus Neteler wrote: On Sat, 31 May 2008, Markus Neteler wrote:

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-24 Thread Roger Bivand
On Mon, 23 Jun 2008, Roger Bivand wrote: I've submitted spgrass6_0.5-9.tar.gz to CRAN, so barring accidents it should be out soon. If you're using the raster or vector plugins and have comments, please let me know - look for the new plugin= argument, which is FALSE by defaul

Re: [GRASS-stats] Speedup of readVECT6() with plugin

2008-06-24 Thread Roger Bivand
On Tue, 24 Jun 2008, Markus Neteler wrote: On Tue, Jun 24, 2008 at 12:23 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Mon, 23 Jun 2008, Roger Bivand wrote: I've submitted spgrass6_0.5-9.tar.gz to CRAN, so barring accidents it should be out soon. If you're using the raster o

Re: [GRASS-stats] using R with windows native installer GRASS 6.3

2008-07-22 Thread Roger Bivand
a user specific environment variable, so don't need to add this. I'm not sure what ADD COMMAND LINE is, but if it is ADD COMMAND LAYER, this is not the right place. Hope this helps, Roger I have looked through the online docs by Roger Bivand and Markus Neetler but can't

Re: [GRASS-stats] Heuristic assignment of NODATA value in package spgrass6

2008-08-01 Thread Roger Bivand
6, file R/bin_link.R, and let me know if it works, it seems to for me. Roger Thanks Rainer -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +4

Re: [GRASS-stats] Heuristic assignment of NODATA value in package spgrass6

2008-08-01 Thread Roger Bivand
On Fri, 1 Aug 2008, Rainer M Krug wrote: On Fri, Aug 1, 2008 at 6:50 PM, Roger Bivand <[EMAIL PROTECTED]> wrote: On Fri, 1 Aug 2008, Rainer M Krug wrote: I am confronted with the situation where a raster in grass has only NULL values. As I am using grass and R to do simulations, th

Re: [GRASS-stats] Specify attribute column in SpatialPolygonsDataFrame when using overlay(grd, polyg)

2008-08-09 Thread Roger Bivand
=data.frame(SID74=v), proj4string=CRS(proj4string(grd))) summary(grdd) image(grdd) spplot(polyg, "SID74") Roger results in the values of the attribute column "d" in grd[[1]]? Thanks, Rainer -- Roger Bivand Economic Geography Section, Department of Economics, N

Re: [GRASS-stats] Re: address (nil), cause 'memory not mapped'

2008-08-20 Thread Roger Bivand
) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace R.Version() $platform [1] "i686-pc-linux-gnu" $arch [1] "i686" $os [1] "linux-gnu" $system [1] "i686, linux-gnu" $st

Re: [GRASS-stats] Re: [R-sig-Geo] writing shapefiles / DBF files when input data contains NA

2008-10-09 Thread Roger Bivand
sed if present in spgrass6, so from rgdal > 0.5-26, it will be the default for reading from GRASS. Roger ? Hamish -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice:

Re: [GRASS-stats] Re: [R-sig-Geo] writing shapefiles / DBF files when input data contains NA

2008-10-09 Thread Roger Bivand
to correctly report the NULL values. This leads me to suspect that something in readOGR() and writeOGR are at fault in handling of NULL values. Unfortunately looking at the rgdal source code wasn't very productive (my fault). Cheers, Dylan -- Roger Bivand Economic Geography Sectio

Re: [GRASS-stats] R-sig-Geo nabble forum request

2008-10-16 Thread Roger Bivand
, where the presumptively useful discussion takes place where developer(s) can see it. Roger With kind regards Marcel -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice

Re: [GRASS-stats] wrong values imported to R

2008-10-16 Thread Roger Bivand
s _______ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Busi

Re: [GRASS-stats] Problem with Grass repository in Ubuntu 8.04

2008-10-28 Thread Roger Bivand
, but the Ubuntu links to Grass 6.2.3 and 6.3 are broken. Is this a temporal problem or do I have to change something ? Thanks in advance, Mauricio -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N

Re: [GRASS-stats] GRASS/R interface Vista 64

2008-11-18 Thread Roger Bivand
ing with R for a couple of years. Is there something simple I am missing? Thanks, Sam -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Nor

Re: [GRASS-stats] help coding an anova using raster data

2008-11-21 Thread Roger Bivand
ep4 + rep5, data=SGDF) Untried. By the way, do you need aov(), or would anova(lm()) do the same? I guess the richer setting needs facilities in aov() that aren't visible here. Hope this helps, Roger but I don't think this is right. Is it possible to do what I am trying? My data i

Re: [GRASS-stats] help coding an anova using raster data

2008-11-21 Thread Roger Bivand
R have the same size and resolution. You asked the rep* to be treated as factors - did you do summary(SGDF) to see what is inside? The term "a repetition" isn' clear at all - are these plot masks or what? Roger Thanks, Sam Roger Bivand wrote: On Thu, 20 Nov 2008, Sam Veloz wrot

Re: [GRASS-stats] Incompatible library version for module SOLVED but new problem with plugin=TRUE has emerged

2009-01-03 Thread Roger Bivand
r.out.gdal, set plugin=FALSE and useGDAL=TRUE (version 0.5-16). Please let me know if this helps. Roger Markus ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Econom

Re: [GRASS-stats] Incompatible library version for module SOLVED but new problem with plugin=TRUE has emerged

2009-01-10 Thread Roger Bivand
On Sat, 10 Jan 2009, Markus Neteler wrote: On Sat, Jan 3, 2009 at 11:09 AM, Roger Bivand wrote: The current settings of readRAST6() will use the plugin if available (but try to check that the regions match) when plugin=NULL. If you want to force the use of r.out.gdal, set plugin=FALSE and

Re: [GRASS-stats] Incompatible library version for module SOLVED but new problem with plugin=TRUE has emerged

2009-01-11 Thread Roger Bivand
On Sat, 10 Jan 2009, Markus Neteler wrote: Roger, On Sat, Jan 10, 2009 at 9:20 PM, Roger Bivand wrote: On Sat, 10 Jan 2009, Markus Neteler wrote: On Sat, Jan 3, 2009 at 11:09 AM, Roger Bivand wrote: The current settings of readRAST6() will use the plugin if available (but try to check

Re: [GRASS-stats] Incompatible library version for module SOLVED but new problem with plugin=TRUE has emerged

2009-01-11 Thread Roger Bivand
On Sun, 11 Jan 2009, Markus Neteler wrote: On Sun, Jan 11, 2009 at 4:48 PM, Roger Bivand wrote: On Sat, 10 Jan 2009, Markus Neteler wrote: On Sat, Jan 10, 2009 at 9:20 PM, Roger Bivand wrote: On Sat, 10 Jan 2009, Markus Neteler wrote: On Sat, Jan 3, 2009 at 11:09 AM, Roger Bivand wrote

Re: [GRASS-stats] Incompatible library version for module SOLVED but new problem with plugin=TRUE has emerged

2009-01-13 Thread Roger Bivand
GIS" in the wxpython GUI is lower - any way to harmonise?). Roger On Sun, 11 Jan 2009, Roger Bivand wrote: On Sun, 11 Jan 2009, Markus Neteler wrote: On Sun, Jan 11, 2009 at 4:48 PM, Roger Bivand wrote: On Sat, 10 Jan 2009, Markus Neteler wrote: On Sat, Jan 10, 2009 at 9:20 PM,

Re: [GRASS-stats] Passing a parameter from R to r.mapcalc ?

2009-01-20 Thread Roger Bivand
, formatC(k, ...), ",1,0)\'", sep="") cmd cat(cmd, "\n") system(cmd) if you need more control of the string going to system(); in my experience, eyeballing cmd is very helpful. Roger any help? Agus -- Roger Bivand Economic Geography Section, Departmen

Re: [GRASS-stats] hypsometric integral from ecdf curve

2009-01-28 Thread Roger Bivand
plot.stepfun(ecdf(elev$elev)) plot(res$y[-1], res$t[-c(1, length(res$t))], xlim=c(1, 0), type="l", ylab="elev", xlab="F(x)") gets you there. I can't see an argument in the first step to turn plotting off. Best wishes, Roger thanks Pierluigi -- Roger

Re: [GRASS-stats] error rgdal library if used from within Grass plugin (Windows)

2009-02-09 Thread Roger Bivand
eo4w stabilises? Roger Any help appreciated. Agus -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 9

Re: [GRASS-stats] GRASS/R interface

2009-02-13 Thread Roger Bivand
Am I wrong? This is an important step in practice that is not mentioned in the documents that you are refering to. Now mentioned! best Markus -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Ber

Re: [GRASS-stats] Re: [GRASS-user] Testing i.pca ~ prcomp(), m.eigensystem ~ princomp()

2009-03-10 Thread Roger Bivand
regards, Nikos ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice:

Re: [GRASS-stats] spgrass problem importing category 999 when plugin is FALSE

2009-04-03 Thread Roger Bivand
ocation: Rzeki Package: spgrass6 Version: 0.5-16 Date: 2008-11-13 Built: R 2.8.1; ; 2009-01-02 14:02:31; unix ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geo

Re: [GRASS-stats] spgrass problem importing category 999 when plugin is FALSE

2009-04-03 Thread Roger Bivand
On Fri, 3 Apr 2009, Markus Neteler wrote: On Fri, Apr 3, 2009 at 9:07 AM, Roger Bivand wrote: On Fri, 3 Apr 2009, Jarek Jasiewicz wrote: Hi I during batch processing of couple of maps I found strange behaviour of readRAST6 when I import cell map with value 999. Instead of 999 Na is

Re: [GRASS-stats] problem with specific type of polygon

2009-04-09 Thread Roger Bivand
ether into the same Polygons object. Hope this helps, Roger Jarek ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics,

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-13 Thread Roger Bivand
ame="prcomp1_0607", overwrite=TRUE) writeRAST6(raw, zcol=9, vname="prcomp1_0607", overwrite=TRUE) writeRAST6(raw, zcol=10, vname="prcomp1_0607", overwrite=TRUE) writeRAST6(raw, zcol=11, vname="prcomp1_0607", overwrite=TRUE) writeRAST6(raw, zcol=12, vname="prcomp1_0607", overwri

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-13 Thread Roger Bivand
lots of places that data.frame objects are used (since 1992, White Book). Think data.frame objects, not GIS objects (bands). This is about ontology, really. Roger Kindest regards, Nikos -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Bus

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-14 Thread Roger Bivand
, we are not going to get anywhere, I'm afraid. We must have a tarball of the location, and the exact R code being used. Roger Can you reproduce this problem with another dataset? How about a subset of the data? Cheers, Dylan -- Roger Bivand Economic Geography Section, Department of

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-21 Thread Roger Bivand
surface reflectance bands: https://git.berlios.de/cgi-bin/gitweb.cgi?p=gregis;a=blob_plain;f=peloponnesos/modis_peloponnese_postfire07.zip;hb=peloponnese [2] http://imageshack.gr/view.php?file=owj2xu833u6678c3zvch.png [3] http://imageshack.gr/view.php?file=n65vfvoo07t3njywfjjo.png [4] http://imagesha

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-22 Thread Roger Bivand
TA= will simply handle the NULL values correctly - the problem with any non-null value given is that it may actually occur in the data in the current region. Check out the CVS source from sourceforge - project r-spatial, module spgrass6, it will work with your data. Roger -- Roger Biv

Re: [GRASS-stats] Raster maps from GRASS to R and back to GRASS?

2009-04-22 Thread Roger Bivand
the interface is described in more detail. In fact, the use of rgdal is quite recent, so most of this implementation post-dates both sources. Roger Kindest regards, Nikos --- [1] Applied Spatial Data Analysis with R, Series: Use R Bivand, Roger S., Pebesma, Edzer J., Gómez-Rubio, Virgili

Re: [GRASS-stats] gstat error

2009-04-26 Thread Roger Bivand
sgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business

Re: [GRASS-stats] R-sig-Geo nabble forum request

2009-04-28 Thread Roger Bivand
OK, the R-sig-geo list is now being archived on Nabble2. We'll see how it works ... Roger Bio7 wrote: > > > > Markus Neteler OSGeo wrote: >> >> >> Roger Bivand wrote: >>> >>> On Thu, 16 Oct 2008, Bio7 wrote: >>> ... >>&

Re: [GRASS-stats] Re: [GRASS-user] Testing i.pca (continued...)

2009-04-29 Thread Roger Bivand
that the means are all zero? You will find reading imagery/i.pca/main.c interesting and not hard. Roger Cheers, Nikos -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice:

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-22 Thread Roger Bivand
e: Dylan: Could be a DBF-related problem. Dylan, I am using sqlite as DB backend. How does this affect the import via readVECT6? Nikos ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-23 Thread Roger Bivand
ates present in the table? See: http://cran.r-project.org/web/packages/RSQLite/index.html for direct reading. Roger Kindest regards, Nikos ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-23 Thread Roger Bivand
ou mean the x, y coordinates just as normal columns, no, I don't require them currently. Overview of loading grass attrubute table (875 rows, 466 colummns) via: * readVECT6() with plugin=TRUE : ~57min * readVECT6() with plugin=FALSE: ~3mi

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-24 Thread Roger Bivand
2D. I can't see that Vect_read_line returns z as NULL if not 3D - Vect_is_3d() is not used much in lib/vector/*. I cannot get into the osgeo trac - could you, Hamish, help and enter a bug in the GDAL/GRASS or whichever trac stream is relevant? Roger Hamish -- Roger Bivand E

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-26 Thread Roger Bivand
44 in ogr/ogrsf_frmts/sqlite/ogrsqlitelayer.cpp, latest GDAL SVN head trunk), that could cause loop over each column name before finding them. But I couldn't really evaluate the impact it could have. (by default OGR creates these fields as the first ones) Even -- Roger Bivand Economic Geogr

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-27 Thread Roger Bivand
with: library(spgrass6) ; G <- gmeta6() #a. readVECT6() system.time ( random_points <- readVECT6 ( "random_points_100" , plugin = FALSE ) ) #b. plugin=TRUE system.time ( random_points <- readVECT6 ( "random_points_100" , plugin = TRUE ) ) #c. as a csv table # adjust as requir

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-27 Thread Roger Bivand
On Wed, 27 May 2009, Roger Bivand wrote: On Tue, 26 May 2009, Nikos Alexandris wrote: (Cc to Even Roualt ; Apologies to Even since he is not subscribed in the list) Roger: Three minutes instead of thirty+ suggests that the OGR plugin has trouble with SQLite as the DB format. So maybe the

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-27 Thread Roger Bivand
nfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: roger.biv...@nhh.no

Re: [GRASS-stats] Loading a point-vector table with 466 columns

2009-05-27 Thread Roger Bivand
On Wed, 27 May 2009, Roger Bivand wrote: On Wed, 27 May 2009, Hamish wrote: Roger wrote: Next script in R generating increasing NR and NC cases through writeVECT6() to test plugin=FALSE/plugin=TRUE ratios? Does R have any built in profiling tools? as grass is just a collection of small C

Re: [GRASS-stats] start R from GRASS

2009-05-29 Thread Roger Bivand
/wun09/wun_grass.swf for an example of starting Windows Native GRASS with an absolute path. Note that the R_LIBS environment variable may also need setting. Hope this helps, Roger Could you please tell me what's wrong? Thanks! stef -- Roger Bivand Economic Geography Section

Re: [GRASS-stats] gstat error

2009-06-19 Thread Roger Bivand
hr [1:2] "min" "max" ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slots .. .. ..@ projargs: chr " +proj=tmerc +lat_0=0 +lon_0=19 +k=0.9993 +x_0=50 +y_0=-530 +no_defs +a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,"| __truncated_

Re: [GRASS-stats] another gstat error

2009-06-19 Thread Roger Bivand
uot; "max" ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slots .. .. ..@ projargs: chr " +proj=tmerc +lat_0=0 +lon_0=19 +k=0.9993 +x_0=50 +y_0=-530 +no_defs +a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,"| __truncated__ ___

Re: [GRASS-stats] another gstat error

2009-06-20 Thread Roger Bivand
On Sat, 20 Jun 2009, Jarek Jasiewicz wrote: Roger Bivand pisze: On Fri, 19 Jun 2009, Jarosław Jasiewicz wrote: Hi Another gstat error: var.krigged=krige(z~x+y,gr,grid,model=var.fitted) [using universal kriging] "chfactor.c", line 130: singular matrix in function LDLfactor(

Re: [GRASS-stats] universal kriging with spgrass6

2009-06-25 Thread Roger Bivand
ntsDataFrame" attributes(sitesR) $bbox ... $proj4string ... $coords ... $data site value catx y 1Ai 81.80 1 825094.9 6796083 2 Al 38.50 2 758780.4 6851508 3 Ar 103.50 3 818973.3 6796125 4 Av 52.50 4 775136.0 6877271 ... -

Re: [GRASS-stats] universal kriging with spgrass6

2009-06-29 Thread Roger Bivand
not until. I still suspect that this is to do with the colnames of the coordinates, (x, y) in one case and (coords1, coords2) or some such in the other. Please do study the gstat help pages and the examples, they will help, but you are jumping to far too many conclusions. Roger Mathieu 20

Re: [GRASS-stats] universal kriging with spgrass6

2009-06-29 Thread Roger Bivand
imply try to set up a gstat() object for trend surface and predict from it: g_tr1a <- gstat("tr1a", ~ 1, d, degree=1) pr_tr1a <- predict(g_tr1a, mask_SG) Once that (untried) works, go further, not until. I still suspect that this is to do with the colnames of the coordinates, (x, y

Re: [GRASS-stats] universal kriging with spgrass6

2009-06-29 Thread Roger Bivand
#x27;t, others have got similar answers - the specific stumbling block is that variogram() and degree= in gstat don't play well together, for good reasons. Roger Best regards. Mathieu 2009/6/29 Roger Bivand On Mon, 29 Jun 2009, mathieu grelier wrote: ok First I think everyone here

Re: [GRASS-stats] Extracting x,y-coordinates from a SGDF

2009-07-14 Thread Roger Bivand
work around is to write a function recalculating the grid points from the information provided within the SGDF. However if anyone is aware of a easier method of how to extract x and y values from a SGDF I would be very interested. Many thanks in advance Johannes -- Roger Bivand Economic Geograph

Re: [GRASS-stats] Re: [GRASS-user] error: Incompatible library version for module. You need to rebuild GRASS or untangle multiple installations.

2009-07-29 Thread Roger Bivand
rass6 but no luck. It's the first time I see this message. I also tried to do some debugging but R requires, I guess, special treatment (meaning other than gdb, etc.) !? Nikos ___ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.os

Re: [GRASS-stats] Mapset issue with vector data via OGR plugin

2009-08-14 Thread Roger Bivand
e type: wkbPoint with 2 dimensions I have used update.packages() and should have the latest sp* packages. I tried to debug the problem but failed... Can anyone confirm this problem? thanks Markus _______ grass-stats mailing list grass-stats@lists.osgeo

Re: [GRASS-stats] Mapset issue with vector data via OGR plugin

2009-08-14 Thread Roger Bivand
On Fri, 14 Aug 2009, Markus Neteler wrote: On Fri, Aug 14, 2009 at 11:40 AM, Roger Bivand wrote: On Fri, 14 Aug 2009, Markus Neteler wrote: I have some troubles when the vector map name contains the @mapset part: This is a consequence of the plugin only searching in the current user&#

Re: [GRASS-stats] Scatterplot "thinning" (points reduction)?

2009-08-17 Thread Roger Bivand
_ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen,

Re: [GRASS-stats] Scatterplot "thinning" (points reduction)?

2009-08-17 Thread Roger Bivand
On Mon, 17 Aug 2009, Markus Neteler wrote: On Mon, Aug 17, 2009 at 9:33 AM, Roger Bivand wrote: On Sun, 16 Aug 2009, Markus Neteler wrote: Hi, I am plotting elevation against temperature and have the problem that including all points leads to heavy slow graphs... Reducing the raster

[GRASS-stats] Re: [R-sig-Geo] GRASS commands (fwd)

2009-09-01 Thread Roger Bivand
Is this a bug in the interface description of v.mkgrid? It needs grid=rows,columns but sets multiple=NO, so wxpython fails (needing two values but getting one, but only providing an integer entry box). Roger -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School

Re: Re: [GRASS-stats] Re: [R-sig-Geo] GRASS commands (fwd)

2009-09-02 Thread Roger Bivand
quot;multiple = NO" argument... I'm afraid I can't go further... Best regards Alex -Original Message- From: Markus Neteler To: roger.biv...@nhh.no Date: Tue, 01 Sep 2009 22:22:49 +0200 Subject: Re: [GRASS-stats] Re: [R-sig-Geo] GRASS commands (fwd) 2009/9/1 Roger Biva

[GRASS-stats] Re: spgrass6 and winGRASS 6.4.0 RC5

2009-09-03 Thread Roger Bivand
On Thu, 3 Sep 2009, alexandre villers wrote: Dear members, Roger Bivand advised me to post problems on the R / GRASS interface on this list. I was using spgrass6 and R 2.9.2 with win GRASS 6.3.0 without much problems. I downloaded winGRASS 6.4 and tried to run again old script and the

SV: [GRASS-stats] Sys.setlocale for GRASS6.4

2009-09-04 Thread Roger Bivand
0x.. spell eacute (\'{e}) in latex, then "fin" from "défine...", the first non-ASCII string in the output for g.region. The fix is to insert "latin1" into the header, so I've updated the package to allow the user to do this from within R Roger -

Re: [GRASS-dev] Re: [GRASS-stats] Sys.setlocale for GRASS6.4

2009-09-05 Thread Roger Bivand
ommand, see a UTF-8 error message, and then try inserting usual suspects with setXMLencoding() - typically "latin1" - and retry parseGRASS(). Users of initGRASS() will see the UTF-8 error because parseGRASS("g.region") is run when the function completes. Roger ? Markus

Re: [GRASS-stats] problem installing spgrass6 in R

2009-09-28 Thread Roger Bivand
of package 'rgdal' had non-zero exit status 5: In install.packages("spgrass6", type = "source", dependencies = TRUE) : installation of package 'spgrass6' had non-zero exit status -- Roger Bivand Economic Geography Section, Department of Economics, Norwegia

Re: [GRASS-stats] problem installing spgrass6 in R

2009-09-29 Thread Roger Bivand
RASS install is broken too (probably PATH problems) wrt. GDAL. Roger Hamish -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-

Re: [GRASS-stats] Problem installing spdep

2009-09-29 Thread Roger Bivand
d need to find out from library(), installed.packages() and .libPaths() where the errant Matrix is, and use remove.packages() on it, indicating the correct lib=. Roger PS. There are more spdep users on R-sig-geo. Jarek ___ grass-stats mailing lis

Re: [GRASS-stats] plugin and multiple GRASS instalation

2009-09-29 Thread Roger Bivand
_ grass-stats mailing list grass-stats@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-stats -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 5

Re: [GRASS-stats] problem installing spgrass6 in R

2009-09-30 Thread Roger Bivand
On Tue, 29 Sep 2009, Tim Holland wrote: Hamish wrote: you need to install 'make' which comes with gcc etc. from the Xcode(?) installer. Roger Bivand wrote: I think Tim needs to read the available FAQs on CRAN, and read: http://r.research.att.com/tools/ giving the r

Re: [GRASS-stats] problem installing spgrass6 in R

2009-09-30 Thread Roger Bivand
read http://www.kyngchaos.com/software:frameworks, and higher up on the GRASS page, it should work. Installing rgdal within the frameworks is also a possibility, especially if the GRASS install uses the GDAL framework. Roger Best, Tim -- Roger Bivand Economic Geography Section, Department of

Re: [GRASS-stats] problem installing spgrass6 in R

2009-10-04 Thread Roger Bivand
atively, use gdal-config within GRASS to find the the GDAL libs (--libs) and headers (--cflags) strings to pass to the configure arguments in install.packages() in R outside GRASS. Here rgdal will fail after installation if the GDAL shared objects are not on the PATH R can see. Hope this helps, Ro

  1   2   3   >