[GRASS-stats] Towards spgrass7

Rainer M Krug Rainer at krugs.de
Wed Jan 21 01:10:12 PST 2015


Roger Bivand <Roger.Bivand-aX1nC9UfZf8 at public.gmane.org> writes:

> On Tue, 20 Jan 2015, Rainer M Krug wrote:
>
>> Sorry if this has been received before - but I don't seem to be able to
>> post via gmane?
>
> Sorry, don't know about gmane.

No problem.

>
>>
>> Roger Bivand <Roger.Bivand-aX1nC9UfZf8-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org> writes:
>>
>>> On Thu, 15 Jan 2015, Markus Neteler wrote:
>>>
>>>> Dear Roger,
>>>>
>>>> On Thu, Jan 15, 2015 at 1:10 PM, Roger Bivand
>>>> <Roger.Bivand-aX1nC9UfZf8-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org>
>>>> wrote:
>>>>> Dear Markus,
>>>>>
>>>>> Good to hear you are well! Great that RC1 is ready!
>>>>
>>>> Yeah, it took us a while but the latest cleanup efforts where really
>>>> important. I expect that we will proceed from RC1 to final release
>>>> rather fast (finally!).
>>>>
>>>>> Yes, I guess it would be sensible to condition on version in these cases, so
>>>>> first add comments for hard-coded flags and options (there are also some
>>>>> changes in type, I think). In addition, bin_out_win in parseGRASS() needs
>>>>> updating and/or conditioning on version, and the logic for handling where
>>>>> Python scripts are found should be looked at.
>>>>
>>>> Yes, fine.
>>>>
>>>>> You do not (yet) have commit rights on:
>>>>> https://r-forge.r-project.org/projects/rspatial/ where spgrass6 lives.
>>>>
>>>> I have now registered on R-Forge.
>>>>
>>>>> Two alignments: should GRASS5 support (GRASS packages) be dropped (yes)?
>>>>
>>>> Yes, dropped.
>>>>
>>>>> Should spgrass6 be forked into (new) spgrass which supports >= 7, and leave
>>>>> spgrass6 for 6.*?
>>>>
>>>> I'd support to fork in order to not have too many conditions in the code.
>>>>
>>>>> If fork, is SVN on R-Forge OK?
>>>>
>>>> Yes.
>>>
>>> After forking, as of now:
>>>
>>> install.packages("spgrass", repos="http://R-Forge.R-project.org")
>>>
>>> installs the "new" package for GRASS 7. Function names are now without
>>> the trailing 6 to avoid confusion, and all examples run correctly in
>>> Spearfish in GRASS 7.0 RC1.
>>>
>>> Could someone please run the examples in Spearfish in GRASS 7.0 RC1 on
>>> Windows after installing the Windoes spgrass binary (R 3.1) from
>>> R-Forge, and report back?
>>>
>>> Could someone please install spgrass from source on OSX (pre-Yosemite
>>> and Yosemite), run the examples in Spearfish, and report back?
>>
>> I installed now spgrass and have the GRASS 7 Spearfish dataset. Which
>> examples are you referring to to be run?
>
> Thanks for looking. I provided commit rights on R-forge, so if you see
> things that need fixing, please do so!

Thanks - I will look into it in more detail tomorrow. 
Just now a quick report on which of the tests is producing errors:

>
> (Yosemite should have been Mavericks, of course).

I am running Yosemite - 10.10.1 (14B25). So if you are looking for
Mavericks testers, I can't help at the moment.

But here the results from the tests on Yosemite with the following R
setup:

,----
| > version
|                _
| platform       x86_64-apple-darwin14.1.0
| arch           x86_64
| os             darwin14.1.0
| system         x86_64, darwin14.1.0
| status
| major          3
| minor          1.2
| year           2014
| month          10
| day            31
| svn rev        66913
| language       R
| version.string R version 3.1.2 (2014-10-31)
| nickname       Pumpkin Helmet
| > sessionInfo()
| R version 3.1.2 (2014-10-31)
| Platform: x86_64-apple-darwin14.1.0 (64-bit)
| 
| locale:
| [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
| 
| attached base packages:
| [1] stats     graphics  grDevices utils     datasets  methods   base
| 
| other attached packages:
| [1] spgrass_0.1-0 XML_3.98-1.1  sp_1.0-16
| 
| loaded via a namespace (and not attached):
| [1] grid_3.1.2      lattice_0.20-29 tools_3.1.2
| >
`----

> The examples are on the help pages, so running R inside GRASS 7
> something like:

OK - found them.

>
> library(spgrass)

No problems

,----
| Loading required package: sp
| Loading required package: XML
| GRASS GIS interface loaded with GRASS version: GRASS 7.0.0beta3 (2014)
| and location: spearfish60_grass7
`----

> example(execGRASS)

caused warning : 
running command 'r.stats -C -n input=fire_blocksgg 2>&1' had status 1

,----
| eGRASS> if (nchar(Sys.getenv("GISRC")) > 0) {
| eGRASS+   oechoCmd <- get.echoCmdOption()
| eGRASS+   set.echoCmdOption(TRUE)
| eGRASS+   print(parseGRASS("r.slope.aspect"))
| eGRASS+   doGRASS("r.slope.aspect", flags=c("overwrite"),
| eGRASS+     elevation="elevation.dem", slope="slope", aspect="aspect")
| eGRASS+   pars <- list(elevation="elevation.dem", slope="slope", aspect="aspect")
| eGRASS+   doGRASS("r.slope.aspect", flags=c("overwrite"), parameters=pars)
| eGRASS+   print(parseGRASS("r.buffer"))
| eGRASS+   doGRASS("r.buffer", flags=c("overwrite"), input="bugsites", output="bmap",
| eGRASS+     distances=seq(1000,15000,1000))
| eGRASS+   pars <- list(input="bugsites", output="bmap", distances=seq(1000,15000,1000))
| eGRASS+   doGRASS("r.buffer", flags=c("overwrite"), parameters=pars)
| eGRASS+   set.echoCmdOption(oechoCmd)
| eGRASS+   try(res <- execGRASS("r.stats", input = "fire_blocksgg", # no such file
| eGRASS+     flags = c("C", "n")), silent=FALSE)
| eGRASS+   res <- execGRASS("r.stats", input = "fire_blocksgg", flags = c("C", "n"),
| eGRASS+     legacyExec=TRUE)
| eGRASS+   print(res)
| eGRASS+   if (res != 0) {
| eGRASS+     resERR <- execGRASS("r.stats", input = "fire_blocksgg",
| eGRASS+       flags = c("C", "n"), redirect=TRUE, legacyExec=TRUE)
| eGRASS+     print(resERR)
| eGRASS+   }
| eGRASS+ }
| Command: r.slope.aspect
| Description: Generates raster maps of slope, aspect, curvatures and partial derivatives from an elevation raster map.
| Keywords: Aspect is calculated counterclockwise from east.
| Parameters:
|   name: elevation, type: string, required: yes, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name of input elevation raster map]
|   name: slope, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output slope raster map]
|   name: aspect, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output aspect raster map]
|   name: format, type: string, required: no, multiple: no
|   default: degrees
| [Format for reporting the slope]
|   name: precision, type: string, required: no, multiple: no
|   default: FCELL
| [Type of output aspect and slope maps]
|   name: pcurv, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output profile curvature raster map]
|   name: tcurv, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output tangential curvature raster map]
|   name: dx, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output first order partial derivative dx (E-W slope) raster map]
|   name: dy, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output first order partial derivative dy (N-S slope) raster map]
|   name: dxx, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output second order partial derivative dxx raster map]
|   name: dyy, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output second order partial derivative dyy raster map]
|   name: dxy, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output second order partial derivative dxy raster map]
|   name: zfactor, type: float, required: no, multiple: no
|   default: 1.0
| [Multiplicative factor to convert elevation units to meters]
|   name: min_slp_allowed, type: float, required: no, multiple: no
|   default: 0.0
| [Minimum slope val. (in percent) for which aspect is computed]
| Flags:
|   name: a [Do not align the current region to the raster elevation map] {FALSE}
|   name: overwrite [Allow output files to overwrite existing files] {FALSE}
|   name: help [Print usage summary] {FALSE}
|   name: verbose [Verbose module output] {FALSE}
|   name: quiet [Quiet module output] {FALSE}
| GRASS command: r.slope.aspect --overwrite elevation=elevation.dem slope=slope aspect=aspect
| GRASS command: r.slope.aspect --overwrite elevation=elevation.dem slope=slope aspect=aspect
| Command: r.buffer
| Description: Creates a raster map showing buffer zones surrounding cells that contain non-NULL category values.
| Keywords: raster, buffer
| Parameters:
|   name: input, type: string, required: yes, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name of input raster map]
|   name: output, type: string, required: yes, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output raster map]
|   name: distances, type: float, required: yes, multiple: yes
| [Distance zone(s)]
|   name: units, type: string, required: no, multiple: no
|   default: meters
| [Units of distance]
| Flags:
|   name: z [Ignore zero (0) data cells instead of NULL cells] {FALSE}
|   name: overwrite [Allow output files to overwrite existing files] {FALSE}
|   name: help [Print usage summary] {FALSE}
|   name: verbose [Verbose module output] {FALSE}
|   name: quiet [Quiet module output] {FALSE}
| GRASS command: r.buffer --overwrite input=bugsites output=bmap distances=1000,2000,3000,4000,5000,6000,7000,8000,9000,10000,11000,12000,13000,14000,15000
| GRASS command: r.buffer --overwrite input=bugsites output=bmap distances=1000,2000,3000,4000,5000,6000,7000,8000,9000,10000,11000,12000,13000,14000,15000
| Error in execGRASS("r.stats", input = "fire_blocksgg", flags = c("C",  :
|   The command:
| r.stats -C -n input=fire_blocksgg
| produced an error (1) during execution:
| ERROR: Raster map <fire_blocksgg> not found
| ERROR: Raster map <fire_blocksgg> not found
| [1] 1
| [1] "ERROR: Raster map <fire_blocksgg> not found"
| attr(,"status")
| [1] 1
| Warning message:
| running command 'r.stats -C -n input=fire_blocksgg 2>&1' had status 1
| >
`----

> example(gmeta)

Working without problems.

,----
| gmeta> if (nchar(Sys.getenv("GISRC")) > 0) {
| gmeta+   G <- gmeta()
| gmeta+   print(G)
| gmeta+   CRS(getLocationProj())
| gmeta+   grd <- gmeta2grd()
| gmeta+   print(grd)
| gmeta+   ncells <- prod(slot(grd, "cells.dim"))
| gmeta+   df <- data.frame(k=rep(1, ncells))
| gmeta+   mask_SG <- SpatialGridDataFrame(grd, data=df)
| gmeta+   print(summary(mask_SG))
| gmeta+ }
| gisdbase    /Users/rainerkrug/Documents
| location    spearfish60_grass7
| mapset      user1
| rows        477
| columns     634
| north       4928010
| south       4913700
| west        589980
| east        609000
| nsres       30
| ewres       30
| projection  +proj=utm +zone=13 +a=6378206.4 +rf=294.9786982 +no_defs
| +nadgrids=/usr/local/Cellar/grass-70/7.0.0beta3/grass-7.0.0beta3/etc/proj/nad/conus
| +to_meter=1.0
|                       X1      X2
| cellcentre.offset 589995 4913715
| cellsize              30      30
| cells.dim            634     477
| Object of class SpatialGridDataFrame
| Coordinates:
|          min     max
| [1,]  589980  609000
| [2,] 4913700 4928010
| Is projected: NA
| proj4string : [NA]
| Grid attributes:
|   cellcentre.offset cellsize cells.dim
| 1            589995       30       634
| 2           4913715       30       477
| Data attributes:
|    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
|       1       1       1       1       1       1
| >
`----

> example(spgrass)

Caused error

,----
| spgrss> if (nchar(Sys.getenv("GISRC")) > 0) {
| spgrss+   require(rgdal)
| spgrss+   soilsph <- readRAST("soils.ph", ignore.stderr=TRUE, plugin=FALSE)
| spgrss+   summary(soilsph)
| spgrss+   grd <- gmeta2grd(ignore.stderr=TRUE)
| spgrss+   grd
| spgrss+   set.seed(1)
| spgrss+   pts <- spsample(soilsph, 200, "random")
| spgrss+   smple <- SpatialPointsDataFrame(pts, data=over(pts, soilsph))
| spgrss+   summary(smple)
| spgrss+   writeVECT(smple, "sp_dem", v.in.ogr_flags="overwrite", ignore.stderr=TRUE)
| spgrss+   bugsDF <- readVECT("bugsites", ignore.stderr=TRUE, mapset="PERMANENT")
| spgrss+   summary(bugsDF)
| spgrss+   vInfo("streams", ignore.stderr=TRUE)
| spgrss+   vColumns("streams", ignore.stderr=TRUE)
| spgrss+   vDataCount("streams", ignore.stderr=TRUE)
| spgrss+   streams <- readVECT("streams", type="line,boundary",
| spgrss+     remove.duplicates=FALSE, ignore.stderr=TRUE, plugin=FALSE)
| spgrss+   summary(streams)
| spgrss+ }
| Loading required package: rgdal
| rgdal: version: 0.9-1, (SVN revision 518)
| Geospatial Data Abstraction Library extensions to R successfully loaded
| Loaded GDAL runtime: GDAL 1.11.1, released 2014/09/24
| Path to GDAL shared files: /usr/local/Cellar/gdal/1.11.1_3/share/gdal
| Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
| Path to PROJ.4 shared files: (autodetected)
| Command: v.in.ogr
| Description: Imports vector data into a GRASS vector map using OGR library.
| Keywords: vector, import, OGR
| Parameters:
|   name: dsn, type: string, required: yes, multiple: no
| [Examples:
| 		ESRI Shapefile: directory containing shapefiles
| 		MapInfo File: directory containing mapinfo files]
|   name: layer, type: string, required: no, multiple: yes
| [Examples:
| 		ESRI Shapefile: shapefile name
| 		MapInfo File: mapinfo file name]
|   name: output, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for output vector map]
|   name: spatial, type: float, required: no, multiple: yes
|   keydesc: xmin,ymin,xmax,ymax, keydesc_count: 4
| [Format: xmin,ymin,xmax,ymax - usually W,S,E,N]
|   name: where, type: string, required: no, multiple: no
|   keydesc: sql_query, keydesc_count: 1
| [Example: income < 1000 and inhab >= 10000]
|   name: min_area, type: float, required: no, multiple: no
|   default: 0.0001
| [Smaller areas and islands are ignored. Should be greater than snap^2]
|   name: type, type: string, required: no, multiple: yes
|   default:
| [Optionally change default input type]
|   name: snap, type: float, required: no, multiple: no
|   default: -1
| ['-1' for no snap]
|   name: location, type: string, required: no, multiple: no
|   keydesc: name, keydesc_count: 1
| [Name for new location to create]
|   name: cnames, type: string, required: no, multiple: yes
| [List of column names to be used instead of original names, first is used for category column]
|   name: encoding, type: string, required: no, multiple: no
| [Overrides encoding interpretation, useful when importing ESRI Shapefile]
|   name: key, type: string, required: no, multiple: no
| [If not given, categories are generated as unique values and stored in 'cat' column]
| Flags:
|   name: f [List supported OGR formats and exit] {TRUE}
|   name: l [List available OGR layers in data source and exit] {TRUE}
|   name: c [Do not clean polygons (not recommended)] {FALSE}
|   name: 2 [Useful if input is 3D but all z coordinates are identical] {FALSE}
|   name: t [Do not create attribute table] {FALSE}
|   name: o [Override dataset projection (use location's projection)] {FALSE}
|   name: r [Limit import to the current region] {FALSE}
|   name: e [Also updates the default region if in the PERMANENT mapset] {FALSE}
|   name: w [Change column names to lowercase characters] {FALSE}
|   name: i [Create the location specified by the "location" parameter and exit. Do not import the vector data.] {FALSE}
|   name: overwrite [Allow output files to overwrite existing files] {FALSE}
|   name: help [Print usage summary] {FALSE}
|   name: verbose [Verbose module output] {FALSE}
|   name: quiet [Quiet module output] {FALSE}
| Error in insert_required(pcmd = pcmd, parameters = parameters, pt = pt,  :
|   required parameters with no defaults missing: dsn
|
|
| > traceback()
| 10: stop(paste("required parameters with no defaults missing:", paste(nadefnms1,
|         collapse = " ")))
| 9: insert_required(pcmd = pcmd, parameters = parameters, pt = pt,
|        req = req, suppress_required = suppress_required)
| 8: doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd = echoCmd,
|        legacyExec = legacyExec)
| 7: execGRASS("v.in.ogr", flags = v.in.ogr_flags, input = GDSN, output = vname,
|        layer = LAYER, ignore.stderr = ignore.stderr)
| 6: writeVECT(smple, "sp_dem", v.in.ogr_flags = "overwrite", ignore.stderr = TRUE) at Rex5f417e3a6ea0#18
| 5: eval(expr, envir, enclos)
| 4: eval(ei, envir)
| 3: withVisible(eval(ei, envir))
| 2: source(tf, local, echo = echo, prompt.echo = paste0(prompt.prefix,
|        getOption("prompt")), continue.echo = paste0(prompt.prefix,
|        getOption("continue")), verbose = verbose, max.deparse.length = Inf,
|        encoding = "UTF-8", skip.echo = skips, keep.source = TRUE)
| 1: example(spgrass)
`----

`----

> example(readRAST)

Error

,----
| rdRAST> if (nchar(Sys.getenv("GISRC")) > 0) {
| rdRAST+   require(rgdal)
| rdRAST+   ois <- get.ignore.stderrOption()
| rdRAST+   set.ignore.stderrOption(TRUE)
| rdRAST+   get.useGDALOption()
| rdRAST+   spear <- readRAST(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
| rdRAST+     useGDAL=FALSE)
| rdRAST+   spear <- readRAST(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
| rdRAST+     useGDAL=TRUE)
| rdRAST+   print(table(spear$geology))
| rdRAST+   execGRASS("r.stats", flags=c("c", "l", "quiet"), input="geology")
| rdRAST+   boxplot(spear$elevation.dem ~ spear$geology)
| rdRAST+   spear$sqdem <- sqrt(spear$elevation.dem)
| rdRAST+   if ("GRASS" %in% gdalDrivers()$name) {
| rdRAST+     execGRASS("g.region", rast="elevation.dem")
| rdRAST+     dem1 <- readRAST("elevation.dem", plugin=TRUE, mapset="PERMANENT")
| rdRAST+     print(summary(dem1))
| rdRAST+     execGRASS("g.region", rast="elevation.dem")
| rdRAST+   }
| rdRAST+   writeRAST(spear, "sqdemSP", zcol="sqdem")
| rdRAST+   execGRASS("r.info", map="sqdemSP")
| rdRAST+   execGRASS("g.remove", flags="f", name="sqdemSP", type="raster")
| rdRAST+   writeRAST(spear, "sqdemSP", zcol="sqdem", useGDAL=TRUE)
| rdRAST+   execGRASS("r.info", map="sqdemSP")
| rdRAST+   print(system.time(sqdemSP <- readRAST(c("sqdemSP", "elevation.dem"),
| rdRAST+     useGDAL=TRUE, return_SGDF=FALSE)))
| rdRAST+   print(system.time(sqdemSP <- readRAST(c("sqdemSP", "elevation.dem"),
| rdRAST+     useGDAL=TRUE, return_SGDF=TRUE)))
| rdRAST+   print(system.time(sqdemSP <- readRAST(c("sqdemSP", "elevation.dem"),
| rdRAST+     useGDAL=FALSE, return_SGDF=TRUE)))
| rdRAST+   print(system.time(sqdemSP <- readRAST(c("sqdemSP", "elevation.dem"),
| rdRAST+     useGDAL=FALSE, return_SGDF=FALSE)))
| rdRAST+   str(sqdemSP)
| rdRAST+   mat <- do.call("cbind", sqdemSP$dataList)
| rdRAST+   str(mat)
| rdRAST+   print(system.time(SGDF <- SpatialGridDataFrame(grid=sqdemSP$grid,
| rdRAST+     proj4string=sqdemSP$proj4string, data=as.data.frame(sqdemSP$dataList))))
| rdRAST+   summary(SGDF)
| rdRAST+   execGRASS("g.remove", flags="f", name="sqdemSP", type="raster")
| rdRAST+   execGRASS("r.mapcalc", expression="quads0 = quads - 1")
| rdRAST+   execGRASS("r.stats", flags="c", input="quads0")
| rdRAST+   quads0 <- readRAST("quads0")
| rdRAST+   print(table(quads0$quads0))
| rdRAST+   quads0 <- readRAST("quads0", plugin=FALSE)
| rdRAST+   print(table(quads0$quads0))
| rdRAST+   execGRASS("g.remove", flags="f", name="quads0", type="raster")
| rdRAST+   set.ignore.stderrOption(ois)
| rdRAST+ }
| Creating BIL support files...
| Exporting raster as integer values (bytes=4)
|  100%
| Creating BIL support files...
| Exporting raster as integer values (bytes=4)
|  100%
| 
| metamorphic  transition     igneous   sandstone   limestone       shale
|       11693         142       36534       74959       61355       46423
| sandy shale    claysand        sand
|       11266       14535       36561
| 1 metamorphic 11693
| 2 transition 142
| 3 igneous 36534
| 4 sandstone 74959
| 5 limestone 61355
| 6 shale 46423
| 7 sandy shale 11266
| 8 claysand 14535
| 9 sand 36561
| * no data 8950
| Hit <Return> to see next plot:
| WARNING: Datum <unknown> not recognised by GRASS and no parameters found
|  100%
| Raster map <sqdemSP> created.
| r.in.gdal complete.
|  +----------------------------------------------------------------------------+
|  | Map:      sqdemSP                        Date: Wed Jan 21 10:05:23 2015    |
|  | Mapset:   user1                          Login of Creator: rainerkrug      |
|  | Location: spearfish60_grass7                                               |
|  | DataBase: /Users/rainerkrug/Documents                                      |
|  | Title:     ( sqdemSP )                                                     |
|  | Timestamp: none                                                            |
|  |----------------------------------------------------------------------------|
|  |                                                                            |
|  |   Type of Map:  raster               Number of Categories: 0               |
|  |   Data Type:    FCELL                                                      |
|  |   Rows:         477                                                        |
|  |   Columns:      634                                                        |
|  |   Total Cells:  302418                                                     |
|  |        Projection: UTM (zone 13)                                           |
|  |            N:    4928010    S:    4913700   Res:    30                     |
|  |            E:     609000    W:     589980   Res:    30                     |
|  |   Range of data:    min = 32.64965  max = 42.89522                         |
|  |                                                                            |
|  |   Data Description:                                                        |
|  |    generated by r.in.gdal                                                  |
|  |                                                                            |
|  |   Comments:                                                                |
|  |    r.in.gdal input="/Users/rainerkrug/Documents/spearfish60_grass7/user\   |
|  |    1/.tmp/Rainers-MacBook-Pro-4.local/X898" output="sqdemSP" memory=300\   |
|  |     offset=0                                                               |
|  |                                                                            |
|  +----------------------------------------------------------------------------+
| 
| Command: g.remove
| Description: Removes data base element files from the user's current mapset.
| Keywords: general, map management, remove
| Parameters:
|   name: rast, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [raster map(s) to be removed]
|   name: rast3d, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [3D raster map(s) to be removed]
|   name: vect, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [vector map(s) to be removed]
|   name: oldvect, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [old (GRASS 5.0) vector map(s) to be removed]
|   name: asciivect, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [ASCII vector map(s) to be removed]
|   name: icon, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [paint icon file(s) to be removed]
|   name: labels, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [paint label file(s) to be removed]
|   name: sites, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [site list file(s) to be removed]
|   name: region, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [region definition(s) to be removed]
|   name: region3d, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [3D region definition(s) to be removed]
|   name: group, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [imagery group(s) to be removed]
|   name: view3d, type: string, required: no, multiple: yes
|   keydesc: name, keydesc_count: 1
| [3D view parameter(s) to be removed]
| Flags:
|   name: f [Force removal for base raster maps] {FALSE}
|   name: help [Print usage summary] {FALSE}
|   name: verbose [Verbose module output] {FALSE}
|   name: quiet [Quiet module output] {FALSE}
| Error in doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd = echoCmd,  :
|   Invalid parameter name: nameInvalid parameter name: type
|
|
| > traceback()
| 8: stop(paste("Invalid parameter name:", parnms[is.na(pm)]))
| 7: doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd = echoCmd,
|        legacyExec = legacyExec)
| 6: execGRASS("g.remove", flags = "f", name = "sqdemSP", type = "raster") at Rex5f416a3414ea#29
| 5: eval(expr, envir, enclos)
| 4: eval(ei, envir)
| 3: withVisible(eval(ei, envir))
| 2: source(tf, local, echo = echo, prompt.echo = paste0(prompt.prefix,
|        getOption("prompt")), continue.echo = paste0(prompt.prefix,
|        getOption("continue")), verbose = verbose, max.deparse.length = Inf,
|        encoding = "UTF-8", skip.echo = skips, keep.source = TRUE)
| 1: example(readRAST)
`----

> example(readVECT)

Seems to be missing in my installation?

As I said, I can look more into details tomorrow.

Cheers,

Rainer

>
> interactively would be a possibility.
>
> I guess that the package will move to nc_basic to align better with
> GRASS 7.
>
> Best wishes,
>
> Roger
>
>>
>> Rainer
>>
>>>
>>> The existing spgrass6 does not work with GRASS 7 following recent
>>> changes in GRASS parameter names - it may be modified either to permit
>>> these, or to remove GRASS 7 conditions, leaving it just for GRASS 6.
>>>
>>> Best wishes,
>>>
>>> Roger
>>>
>>>>
>>>> Best wishes,
>>>> Markus
>>>>
>>
>>

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-stats/attachments/20150121/bdf63a9c/attachment.pgp>


More information about the grass-stats mailing list