[GRASS-user] Overlapping points in ps.map

2014-10-21 Thread Johannes Radinger
Hi, I am trying to use ps.map to create a map of many vector points which should be colored based on the values (0-1) in a specific column in the attribute table. If I understood the manual correctly, I need to create an rgbcolumn indicating the color for each point. Is there an example explain

Re: [GRASS-user] Upper case letters for defining columns via v.db.addtable

2014-10-13 Thread Johannes Radinger
Hi Helmut, v.db.addcolumn is also working here. Can you please test v.db.addtable with columns specified. This module does not work correctly in my case. /Johannes On Mon, Oct 13, 2014 at 11:44 AM, Helmut Kudrnovsky wrote: > > a quick test here with sqlite as db-backend: > > also tested with

[GRASS-user] Categories in new layers of vector maps

2014-10-13 Thread Johannes Radinger
Hi, I am slightly confused about creating new layers for vector maps and adding a category value. I want to add a layer and subsequently I want to use v.what.rast to query a raster map and update that layer. Hence, I need categories in the new layer. However, it seems that adding a new table and c

[GRASS-user] Upper case letters for defining columns via v.db.addtable

2014-10-13 Thread Johannes Radinger
Hi, when I want to specify a column in v.db.addtable, all upper case letters in the column name get converted to lower case. I'm working on GRASS 71 (trunk). Is this an intended behaviour? v.db.addtable map=myMap table=test layer=3 columns="My_COL INT" cheers, /Johannes ___

Re: [GRASS-user] my first script

2014-10-12 Thread Johannes Radinger
Hi,  It seems to raise an error related to the flag(s) you are specifying in oneof your grass modules you are using in your script. Flags in grass python scripts should be used like: flags="a" or for two flags: flags="ab". Note this does not need a "-" like in the bash command. Best, /johannes

[GRASS-user] Null-value in grass python array

2014-10-10 Thread Johannes Radinger
Hi, I am using the GRASS-numpy functionality [1] to read a python numpy.array from a GRASS raster map (GRASS7): import grass.script.array as garray a = garray.array() a.read(map) Here [2] it says that also the null value can be specified. So what is the actual null value in GRASS so that the

Re: [GRASS-user] raster exchange between GRASS and R with nodata

2014-09-26 Thread Johannes Radinger
e.g. 65535 for DCELL rasters if I remember correctly > > and to 255 > > for BYTE rasters. However, this seems not to be recognized when imported > > into R with > > the package 'raster'. > > > > /Johannes > > > >> > >> > >&

[GRASS-user] Equidistant points along lines of a vector network

2014-09-23 Thread Johannes Radinger
Hi, I've got a vector network (river network) and I want to place points along that network. The points should be placed every 250 m starting from the outlet. Any network junctions should be ignored so that every point is 250 apart from the next upstream and downstream point. With the tool v.segm

[GRASS-user] Installation r.fuzzy.system on GRASS7 (Mac OSX) failed

2014-09-12 Thread Johannes Radinger
r is just the add-on broken? Just to mention, my computer's name includes a space, so e.g. the grass7rc is located here: "/Users/Johannes Radinger/.grass7/rc" If that information is needed Maybe anybody has some more information about that issue. Best regards, Johannes __

Re: [GRASS-user] raster exchange between GRASS and R with nodata

2014-09-04 Thread Johannes Radinger
ific value in GRASS, this nodata-value is automatically set to e.g. 65535 for DCELL rasters if I remember correctly and to 255 for BYTE rasters. However, this seems not to be recognized when imported into R with the package 'raster'. /Johannes > > > > On 4 September 2014 14:

Re: [GRASS-user] raster exchange between GRASS and R with nodata

2014-09-04 Thread Johannes Radinger
Loading required package: sp > Loading required package: XML > GRASS GIS interface loaded with GRASS version: GRASS 7.0.0beta3 (2014) > and location: ohrfc_mpe > > dat<-readRAST6("xmrg0101200306z") > > image(dat) > > This is far more efficient. > > Tom

[GRASS-user] raster exchange between GRASS and R with nodata

2014-09-04 Thread Johannes Radinger
Hi, I want to export a raster map (FCELL) from GRASS70 to the geotiff format using r.out.gdal and to import it later on in R. The map contains many no data values. Here some details about the raster: Type of Map: raster Number of Categories: 0 Data Type:FCELL Rows: 750

[GRASS-user] multiple output maps of r.random.surface

2014-09-03 Thread Johannes Radinger
Hi, I'd like to generate multiple random surface with different spatial autocorrelation. Of course I can do that with multiple runs of r.random.surface (GRASS7) by setting different values for the distance parameter for each run (this works fine). In the manual I read that if "If multiple values a

[GRASS-user] r.clump2 for GRASS7

2014-09-03 Thread Johannes Radinger
Hi, I am just wondering if the add-on r.clump2 is still available for GRASS 7. I can find the add-on manual mentioned here: http://grass.osgeo.org/grass70/manuals/addons/r.clump2.html However I could not find r.clump2 via g.extension. I seems that the list http://grass.osgeo.org/grass70/manuals/

[GRASS-user] Broken r.stream.snap?

2014-07-14 Thread Johannes Radinger
Hi, the module r.stream.snap which has been included now in the main code of GRASS 7 does not produce an output table which is linked to the output vector map. Can anyone reproduce that behavior? Or is this related to my machine only? I am working with GRASS7.1 svn (rev61250) on Ubuntu. I hope th

Re: [GRASS-user] Grouping spatial points

2014-07-09 Thread Johannes Radinger
at 6:11 PM, Pietro wrote: > Hi Johannes, > > On Tue, Jul 8, 2014 at 1:58 PM, Johannes Radinger > wrote: > > I've a point vector containing more than 500 points. > > Some of these points are spatially clumped while > > others are single independent points (from

[GRASS-user] Grouping spatial points

2014-07-08 Thread Johannes Radinger
Hi, I've a point vector containing more than 500 points. Some of these points are spatially clumped while others are single independent points (from viewing the map). Now I am wondering if there is any tool in GRASS (or maybe other spatial-statistical software like R) that can be used to group the

Re: [GRASS-user] r.stream.basins disappeared?

2014-06-16 Thread Johannes Radinger
Hi, On Mon, Jun 16, 2014 at 2:09 PM, Margherita Di Leo wrote: > Hi Johannes, > > > On Mon, Jun 16, 2014 at 1:50 PM, Johannes Radinger < > johannesradin...@gmail.com> wrote: > >> Hi all, >> >> I recognized that the r.stream.* suit was moved from the

[GRASS-user] r.stream.basins disappeared?

2014-06-16 Thread Johannes Radinger
Hi all, I recognized that the r.stream.* suit was moved from the add-on arena to the main code of GRASS7, but what happened to r.stream.basins. This tool (which I depend on in my own add-on) is neither available in the main GRASS7 nor as an G7 add on. Has the functionality been merged with another

Re: [GRASS-user] mapcalc gui load/save

2014-03-30 Thread Johannes Radinger
Hi Anna, that is great, I was just about to request for a "copy" button for r.mapcalc similar to all other modules. Thanks, just what I needed. I'll try it out in near future. best regards, Johannes On Sun, Mar 30, 2014 at 12:04 AM, Anna Petrášová wrote: > Hi, > > I was wondering if anyone is

Re: [GRASS-user] [GRASS-dev] Problems 3D rendering with WxNviz (Ubuntu)

2014-03-28 Thread Johannes Radinger
t 5:40 PM, Anna Petrášová wrote: > > > > On Wed, Mar 26, 2014 at 5:27 AM, Johannes Radinger < > johannesradin...@gmail.com> wrote: > >> Hi, >> >> I just reinstalled wxPython and recompiled GRASS to be sure that I am >> working with the newest versi

Re: [GRASS-user] [GRASS-dev] Problems 3D rendering with WxNviz (Ubuntu)

2014-03-26 Thread Johannes Radinger
On Wed, Mar 26, 2014 at 5:11 AM, Anna Petrášová wrote: > > > > On Tue, Mar 25, 2014 at 6:30 AM, Johannes Radinger < > johannesradin...@gmail.com> wrote: > >> Hi, >> >> it wanted to try out the 3D capabilities of GRASS 7. However when I >> change to

[GRASS-user] Problems 3D rendering with WxNviz (Ubuntu)

2014-03-25 Thread Johannes Radinger
Hi, it wanted to try out the 3D capabilities of GRASS 7. However when I change to the 3d view (WxNviz) nothing is rendered, instead I get the message that I should try a different depth buffer number. This procedure is also mentioned in the wiki (http://grasswiki.osgeo.org/wiki/WxNviz). However, I

Re: [GRASS-user] Questions concerning r.mapcalc, r.cost and high resolution DEMs

2014-03-24 Thread Johannes Radinger
Hi Daniel, concerning your first point, you could try to run simpler calculations of your quite nested mapcalc expression, in order to pin down which cells cause problems at certain levels of calculations. Eg. just run a simpler mapcalculation like and identify the levels of calculation and cells

[GRASS-user] .lyr legends from ArcInfo grid

2014-02-25 Thread Johannes Radinger
Hi all, just I short question. Although I don't think that is possible, but is there a way to import/use a legend file (*.lyr) from a ArcGIS raster ( ArcInfo grid file, *.adf files) within GRASS? /Johannes ___ grass-user mailing list grass-user@lists.os

Re: [GRASS-user] Transforming raster lines to vectors with correct segment attributes

2014-02-03 Thread Johannes Radinger
v flag can help here? /Johannes On Mon, Feb 3, 2014 at 1:48 PM, Moritz Lennert wrote: > On 03/02/14 11:48, Johannes Radinger wrote: > >> Hi Moritz, >> hi all, >> >> sorry for my late response. I can now provide an example using the NC >> dataset. >&g

[GRASS-user] Transforming raster lines to vectors with correct segment attributes

2014-01-27 Thread Johannes Radinger
Hi, I have a raster river (processed with r.thin) which I want to transfrom to a vector. Therefore I use r.to.vect with the lines option. However, the raster has two different values representing e.g. habitat quality (good/bad) for single segments (group of raster cells). This information is writt

Re: [GRASS-user] r.clump with diagonal cells

2014-01-14 Thread Johannes Radinger
uch a tool available. For the moment, I'll try an approach to buffer (r.grow) my raster lines before applying r.clump which could work. best, Johannes On Mon, Jan 13, 2014 at 3:30 PM, Markus Neteler wrote: > On Mon, Jan 13, 2014 at 12:39 PM, Johannes Radinger > wrote: > > De

[GRASS-user] r.clump with diagonal cells

2014-01-13 Thread Johannes Radinger
Dear all, I just tried r.clump on a rastarized river with alternating patches of good and bad habitat (values 1 and 2). However, due to its linear structure, many cells of the same habitat patch are often only diagonally connected. So this is a case where r.clump does not work (as stated in its ma

Re: [GRASS-user] Creating spatially clumped random cells

2014-01-10 Thread Johannes Radinger
not always have exactly the > > requested density. > > > > > > cheers > > robert > > > > Am Freitag, 10. Januar 2014, 08:17:50 schrieb Johannes Radinger: > > > Hi Markus, > > > > > > so far as I understood r.random.cell crea

Re: [GRASS-user] Creating spatially clumped random cells

2014-01-09 Thread Johannes Radinger
good results although the 20% threshold did not exactly translate into 20% of all cells. I've to investigate a little bit more into that. Any other suggestions? Best regards, Johannes On Fri, Jan 10, 2014 at 12:43 AM, Markus Neteler wrote: > On Thu, Jan 9, 2014 at 4:09 PM, Johannes

[GRASS-user] Creating spatially clumped random cells

2014-01-09 Thread Johannes Radinger
Hi, just two short question concerning the creation of random cells. So far I used r.random to create e.g. a map with 20% cells (of my input raster). I'd like to know: 1) Is there a way to create randomly spatially clumped rasters cells so that the cells look aggregated like patches, while still s

[GRASS-user] Error with r.stream.basins in GRASS7

2014-01-08 Thread Johannes Radinger
Hi, I just tried to launch the r.stream.basins add-on in G7, however instead of seeing the GUI for the add-on I run into following error: Unable to fetch interface description for command 'r.stream.basins'. Details: GRASS_INFO_ERROR(31075,1): Incompatible library version for module. You need to

[GRASS-user] European cities map

2014-01-08 Thread Johannes Radinger
Dear GRASS users, is there a good (more or less uptodate) vector (point) file containing European cities and maybe also there approximate size? Maybe someone of you is aware of such a product that is freely available e.g. from the European Union? Does anyone have an idea about such a data source?

[GRASS-user] v.in.ascii with stdin in GRASS70

2014-01-07 Thread Johannes Radinger
Hi, just a short question: I wanted to use v.in.ascii with the stdin in GRASS70 to create a vector point with a simple single command from a coordinate pair like v.in.ascii -n stdin="512080,531630" output=my_point separator="," I can't remember excactly but I think that command was working (with

Re: [GRASS-user] Create a raster starting from a coordinate pair

2013-12-10 Thread Johannes Radinger
all the best > > Ivan > > > On Tue, 2013-12-10 at 05:01 -0800, aborruso wrote: > > Hi Johannes, > > thank you. > > > > Johannes Radinger wrote > > > What do you mean exactly with creating a raster from a coordinate pair? > > > > You a

Re: [GRASS-user] Create a raster starting from a coordinate pair

2013-12-10 Thread Johannes Radinger
What do you mean exactly with creating a raster from a coordinate pair? If you want to align a raster to your coordinates you might have a look into g.region and set appropriate resolution and extend coordinates. To create a raster based on coordinates, eg. set a raster value at a specific coordi

Re: [GRASS-user] Get sums of raster values based on the categories of an overlay raster

2013-11-28 Thread Johannes Radinger
Yes of course, r.statistics resp. r.statistics2 is doing the job. I just mixed up the the maps when I tried it the first time. Thanks Markus and Moritz! On Thu, Nov 28, 2013 at 9:22 AM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 26/11/13 16:28, Johannes Radinger wrote

[GRASS-user] Get sums of raster values based on the categories of an overlay raster

2013-11-26 Thread Johannes Radinger
Hi, I'd like to calculate the sum of all raster values that belong to a certain group. This spatially organized group is also indicated by an overlay raster (same resolution). Finally I want to assign these sums to a new raster. That might sound slightly complicated but here an example: Asume fol

[GRASS-user] Export multiple rasters into a single textfile

2013-11-20 Thread Johannes Radinger
Hi, what is the fastest/most convenient way to export multiple rasters into a simple single text file (e.g. csv) so that the rows represent the single cells and the columns the values of the single rasters at that specific cell? The rasters (n=12) have all the same resolution and consist of each a

Re: [GRASS-user] ordering points along a line

2013-11-18 Thread Johannes Radinger
Hi, as your points are intersections along the river course you could create a network within GRASS (v.net with points as nodes). I think then it should be possible to use a tool like v.net.distance to calculate distances between the nodes which is basically the basis for any ordering along the li

Re: [GRASS-user] grass 6.4.3 - can't launch wxpython interface on Ubuntu 13.10

2013-11-09 Thread Johannes Radinger
Hi, have you also installed the GRASS GUI? You can install it with 'sudo apt-get install grass-gui /Johannes On Sat, Nov 9, 2013 at 8:51 PM, Filipe Dias wrote: > Hi > > I just installed GRASS 6.4.3 from the central ubuntu repository and tried > to launch grass and got this on the command line

[GRASS-user] G7-gui and G64 add-on problems on Xubuntu (installation from grass/ubuntugis ppa)

2013-10-14 Thread Johannes Radinger
Hi all, I want to install G7 and G6.4.3 as well as several add-ons on a freshly installed Xubuntu (12.04) machine (Virtualbox) for testing purposes. Therefore I run following commands after Xubuntu installation and update of the system: sudo add-apt-repository ppa:grass/grass-devel sudo add-apt-r

Re: [GRASS-user] G7: r.random problems with creation of vector points

2013-10-14 Thread Johannes Radinger
That problem seems to be solved. :) On Sun, Sep 8, 2013 at 10:17 AM, RichardC wrote: > Hi Johannes, > > I seem to have encountered the same : > > http://osgeo-org.1560.x6.nabble.com/Problem-displaying-imported-3D-points-shapefile-in-GRASS-7-td5076193.html > > Grass 7: version 57592 > > Richard

[GRASS-user] Assign random cell values (integers)

2013-10-01 Thread Johannes Radinger
Hi, what is the most effective way to assign randomly the values -1,0 and 1 to a raster map, where each of the three values should occur in one third of the map. Furthermore I'd like to assign to 10 % of the cell the values -1 and 10% the value 1 and to the remaining 80% the value 0 (or any other

Re: [GRASS-user] Create random raster map with sum of cells == N

2013-09-09 Thread Johannes Radinger
Hi Rainer, I don't know of any standard GRASS tool that performs such tasks. However I had a similar task, also an ecological topic and it was about the redistribution of fish according to a dispersal kernel. So in my case a number of fish (n_individuals) should be randomly distributed over a ras

Re: [GRASS-user] FW: r.fuzzy.system: specifying raster file?

2013-08-19 Thread Johannes Radinger
ou with feedback as soon as I manage to > test r.fuzzy.system on GRASS 7. > > Thank you. > > With kind regards, > Beatrice. > > ------ > *From:* Beatrice Christopher Tarimo > *Sent:* 16 August 2013 16:23 > > *To:* Johannes Radinger > *S

Re: [GRASS-user] r.le.out subdirectory

2013-06-20 Thread Johannes Radinger
Thank you for the fast response. It is indeed the pwd. /Johannes On Thu, Jun 20, 2013 at 2:44 PM, José Miguel Barrios wrote: > Indeed. With pwd you can get to know where the r.le.out directory is > created. The r.le.para directory with the settings (units size, units form, > etc) is also create

[GRASS-user] r.le.out subdirectory

2013-06-20 Thread Johannes Radinger
Hi, I just wanted to try out the r.le.* tools for a simple analysis of habitat patch patterns. In this context, I was not able to find out where this r.le.out subdirectory is located where all the result tables are stored? Should this be a subdirectory within the mapset? Has anyone used the tool

Re: [GRASS-user] HydroFlow: Stream order soleley based on shape files/vectors

2013-06-18 Thread Johannes Radinger
, Jun 18, 2013 at 3:08 PM, Markus Metz wrote: > On Tue, Jun 18, 2013 at 1:52 PM, Johannes Radinger > wrote: > > Hi, > > > > I found following interesting Brasilian program called HydroFlow: > > http://www.fgel.uerj.br/labgis/hydroflow/en/downloads_ingles.html >

[GRASS-user] HydroFlow: Stream order soleley based on shape files/vectors

2013-06-18 Thread Johannes Radinger
Hi, I found following interesting Brasilian program called HydroFlow: http://www.fgel.uerj.br/labgis/hydroflow/en/downloads_ingles.html This tools calculates the Stream order (e.g. Strahler, Shreve) based on a shapefile input of the river network and a shapefile that defines the border (catchment

Re: [GRASS-user] Use of v.in.ascii in python with stdin

2013-06-17 Thread Johannes Radinger
Hi, On Mon, Jun 17, 2013 at 3:39 PM, Pietro wrote: > Hi Johannes, > > On Mon, Jun 17, 2013 at 1:24 PM, Johannes Radinger > wrote: > > I want to create a point via python at a specific location using the > > v.in.ascii command. How can I also specify the colum names or

[GRASS-user] Use of v.in.ascii in python with stdin

2013-06-17 Thread Johannes Radinger
Hi, I want to create a point via python at a specific location using the v.in.ascii command. How can I also specify the colum names or how can a header be used in combination with the standard input. As it is only one single point I don't want to create a txt file containing the header and the inf

Re: [GRASS-user] r.fuzzy.system: specifying raster file?

2013-06-17 Thread Johannes Radinger
Although I am not the author of that module, I can confirm that the input raster files are specified in the .map file as explained in the example. On Mon, Jun 17, 2013 at 9:41 AM, Markus Neteler wrote: > On Tue, Jun 4, 2013 at 11:09 AM, RichardC wrote: > > Hi, > > > > I'm trying to run the r.f

Re: [GRASS-user] Directed vector networks (e.g. river networks)

2013-06-14 Thread Johannes Radinger
On Fri, Jun 14, 2013 at 11:59 AM, Markus Metz wrote: > On Fri, Jun 14, 2013 at 11:03 AM, Johannes Radinger > wrote: > > Hi, > > > > as I am not very familiar with GRASS' vector capabilities maybe someone > of > > you has some ideas. Is there the c

[GRASS-user] Directed vector networks (e.g. river networks)

2013-06-14 Thread Johannes Radinger
Hi, as I am not very familiar with GRASS' vector capabilities maybe someone of you has some ideas. Is there the concept of directed vector networks e.g describing river networks with flow direction implemented in GRASS? I am looking for a way that counts all barriers when routing from a starting

Re: [GRASS-user] [GRASS GIS] #1924: r.watershed - empty stream segment map

2013-06-04 Thread Johannes Radinger
wrote: > On Mon, Jun 3, 2013 at 3:30 PM, Johannes Radinger > wrote: > > Hi Markus, > > Hi others, > > > > I am coming back to the topic of running r.watershed on a rasterized > river > > network. > > > > As recommended I buffered now my river ra

Re: [GRASS-user] Import conditioned DEM from HydroSheds

2013-05-18 Thread Johannes Radinger
Hi Nikos, thanks! I already also checked and its really straight forward to import the bil raster file as ESRI-rasters. Now I am just working on a re-projection e.g. to a pseudo-mercator system... but that is another story ;) /johannes On Sat, May 18, 2013 at 2:46 PM, Nikos Alexandris wrote: >

[GRASS-user] Import conditioned DEM from HydroSheds

2013-05-18 Thread Johannes Radinger
Hi, I'd like to use the conditioned DEM from HydroSheds (15sec resolution) in GRASS to extract rivers etc. using r.watershed. On the HydroSheds- Website (http://hydrosheds.cr.usgs.gov/dataavail.php) there are two possible file formats: bil and esri grid. The esri grid folder for Europe (eu_dem_15

[GRASS-user] EPSG code spearfish dataset

2013-05-16 Thread Johannes Radinger
Hi, is there any EPSG code defined for the projection of the spearfish sample dataset? Or a EPSG code that is close to the projecton? I am just asking as there is a code provided for the NC-dataset but not for the Spearfish. cheers, /johannes ___ grass

Re: [GRASS-user] Failed export of vector, missing attribute column

2013-05-16 Thread Johannes Radinger
Hi, of course, I just forgot again that the column name can be to long for a shapefile. Thank you Micha! Maybe the Error message can be improved in such cases. /johannes On Thu, May 16, 2013 at 11:01 AM, Micha Silver wrote: > On 16/05/2013 11:48, Johannes Radinger wrote: > >>

[GRASS-user] Failed export of vector, missing attribute column

2013-05-16 Thread Johannes Radinger
Hi, I wanted to export a point vector to a .shp file. This works except for a column that does not get exported. I have tried it in grass70 and grass65 (in Ubuntu) but both without success. The attribute column that is not exported was created in the attribute table view and populated with a sqlit

Re: [GRASS-user] make error in grass7_trunk/man

2013-05-14 Thread Johannes Radinger
Hi, thanks! r56245 now compiles without any problems. /j On Tue, May 14, 2013 at 3:28 AM, Hamish wrote: > Johannes: > > > So maybe it is possible to update the r.fuzzy tools to > > > be successfully compiled with GRASS7. > > Glynn: > > AFAICT, it's just a case of replacing: > > module->ke

Re: [GRASS-user] make error in grass7_trunk/man

2013-05-13 Thread Johannes Radinger
wrote: > > Johannes Radinger wrote: > > > I just tried to build GRASS7 on Ubuntu with the r.stream.* and r.fuzzy > > add-ons in the scripts-folder (the subdirs have been added to the > makefile > > in the scripts folder). > > When running make I face a com

[GRASS-user] Set raster value for specific cell

2013-05-13 Thread Johannes Radinger
Hi, is there a simple way to set the value of a specific raster cell (e.g. defined by the coordinate of its cell center). One way could be to define a point by the coordinates (e.g. v.in.ascii) and then to convert the point to raster (v.to.rast) and use the mapcalculator to modify the original ras

[GRASS-user] make error in grass7_trunk/man

2013-05-13 Thread Johannes Radinger
Hi, I just tried to build GRASS7 on Ubuntu with the r.stream.* and r.fuzzy add-ons in the scripts-folder (the subdirs have been added to the makefile in the scripts folder). When running make I face a compilation error in the /man subfolder: radinger@grassgis:/usr/local/src/grass7_trunk/man$ make

[GRASS-user] Fwd: r.fuzzy.sytem rule file syntax error

2013-05-07 Thread Johannes Radinger
fluencing the fuzzy output, can that be somehow bypassed as I thought the rules are correct. Hopefully anybody can help here! Best regards, Johannes -- Forwarded message -- From: Johannes Radinger Date: Tue, May 7, 2013 at 11:35 AM Subject: r.fuzzy.sytem rule file syntax error To: G

[GRASS-user] r.fuzzy.sytem rule file syntax error

2013-05-07 Thread Johannes Radinger
Hi, I try to use the r.fuzzy.system tool but my rules do not work. The error seems to be related with a line in the rule definition file. The line is: $ low {(depth=veryhigh & (velocity=medium | velocity=high)) | ((depth=high & (velocity=high | velocity=veryhigh)) | ((depth=medium & velocity=veryh

Re: [GRASS-user] Attribute table from v.net.allpairs; v.out.ogr - dsn option in GUI

2013-04-25 Thread Johannes Radinger
?! /Johannes On Thu, Apr 25, 2013 at 11:17 AM, Markus Metz wrote: > On Thu, Apr 25, 2013 at 10:33 AM, Johannes Radinger > wrote: > > Hi, > > > > @Markus M: Thank you for the fix. > > > > However, somehow I am not able to export the attribute table that is > c

Re: [GRASS-user] Attribute table from v.net.allpairs; v.out.ogr - dsn option in GUI

2013-04-25 Thread Johannes Radinger
-attribute table? /Johannes On Wed, Apr 24, 2013 at 7:30 PM, Markus Metz wrote: > On Wed, Apr 24, 2013 at 3:01 PM, Johannes Radinger > wrote: > > Hi, > > > > > > There are two little issues that recently popped up in GRASS 7 > > > > 1) I

[GRASS-user] Attribute table from v.net.allpairs; v.out.ogr - dsn option in GUI

2013-04-24 Thread Johannes Radinger
Hi, There are two little issues that recently popped up in GRASS 7 1) I performed a pairwise network analysis with v.net.allpairs. The attribute table to the output map "map" that is produced is called "map_1" (note: _1 !!). Thus when I then try to export the attribute table to a csv using v.out

[GRASS-user] Problem with r.univar and very large values

2013-04-17 Thread Johannes Radinger
Hi, I just faced a problem when trying to run r.univar (both GRASS6.5 and GRASS7) on a raster which was multiplied by a very large value (1e+200) in a python script. The raster is displayed correctly and the cells can be querried and give the correct large value but r.univar gives: *** stack smash

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Johannes Radinger
Oh yes, of course I could use the sql= option... I just overlooked that after moving from GRASS6.5 where this option is not yet existing. Thank you ... /Johannes On Thu, Apr 11, 2013 at 12:47 PM, Glynn Clements wrote: > > Johannes Radinger wrote: > > > Thank you Hamish, inclu

Re: [GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Johannes Radinger
Thank you! The grass.script.overwrite() function was the one I was looking for. :) On Thu, Apr 11, 2013 at 1:00 PM, Glynn Clements wrote: > > Johannes Radinger wrote: > > > I would like to check if the file defined as output in a python script > > already exists and fire an

[GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Johannes Radinger
Hi, I would like to check if the file defined as output in a python script already exists and fire an error when it exists and the overwrite flag is not set. Furhtermore I'd like to check this already in the beginning before all calculations in the script are executed. I thought about something li

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Johannes Radinger
Hi all, Thank you Hamish, including the option "input=-" in the python line (for GRASS7) solved the problem. Now I get an update/entry in my attribute table. This is a different behavior from grass65 where this additional option is not needed. /johannes On Thu, Apr 11, 2013 at 11:15 AM, Markus

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-10 Thread Johannes Radinger
Hi, I just tested it again and realized this problem is not related to the placeholder in the python code, but probably an other issue of my pythoncode line nothing is update when use: grass.write_command("db.execute", stdin = "UPDATE my points SET prob=100") but using UPDATE my points SET prob=

Re: [GRASS-user] Exercises and Tutorials for GRASS GIS

2013-04-10 Thread Johannes Radinger
Hi Adrian, first welcome the the GRASS world. A good start to begin with is the GRASS website (http://grass.osgeo.org/) and the GRASS wiki which also includes a chapter about how to get started: grasswiki.osgeo.org/wiki/GRASS_Help. /Johannes On Wed, Apr 10, 2013 at 1:06 PM, Adrian Kirilov w

[GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-10 Thread Johannes Radinger
Hi, I am just struggling with a code line. I want to assign a value to all cells of a defined column. Thus I try to run in python: probvalue=100.0 grass.write_command("db.execute",stdin = "UPDATE my_points SET prob=%d" %(probvalue)) So far I checked that the string for stdin is generated correct

Re: [GRASS-user] Compile python add-on with GRASS7 - HTML/man error?

2013-04-09 Thread Johannes Radinger
Thanks Markus, and thank you for the hint with the validator... On Tue, Apr 9, 2013 at 1:48 PM, Markus Neteler wrote: > On Tue, Apr 9, 2013 at 11:58 AM, Johannes Radinger > wrote: > > Hi, > > > > I try to compile a GRASS6 add-on with GRASS7 to adapt the code to >

Re: [GRASS-user] set mutliple flags in python script

2013-04-09 Thread Johannes Radinger
Thank you Martin, the only way I haven't tried ;) /johannes On Mon, Apr 8, 2013 at 5:48 PM, Martin Landa wrote: > Hi, > > 2013/4/8 Johannes Radinger : > > I just wanted to know how to set mutliple flags when calling a module via > > python. > > Eg when I use

[GRASS-user] Compile python add-on with GRASS7 - HTML/man error?

2013-04-09 Thread Johannes Radinger
Hi, I try to compile a GRASS6 add-on with GRASS7 to adapt the code to the new GRASS version. I know probably some or even more code lines have to be adapted for the new version, however I already fail when I want to compile it with GRASS 7: Errors in: /usr/local/src/grass7_trunk/scripts/r.fidimo

[GRASS-user] set mutliple flags in python script

2013-04-08 Thread Johannes Radinger
Hi, I just wanted to know how to set mutliple flags when calling a module via python. Eg when I use grass.run_command("r.modulename", flags=a b) I tried: 1) flags=["a","b"] 2) flags="a,b" 3) flags="a b" So how can I call a module with multiple flags set in python? Thank you for your answers! Be

Re: [GRASS-user] v.db.join question

2013-02-15 Thread Johannes Radinger
Hi all, here some update... On Thu, Feb 14, 2013 at 3:29 PM, Johannes Radinger wrote: > Hi, > > does anyone have an idea what I should test to get my join working? > > /johannes > > On Tue, Feb 12, 2013 at 4:15 PM, Johannes Radinger > wrote: >> Hi, >> >&

Re: [GRASS-user] v.db.join question

2013-02-14 Thread Johannes Radinger
Hi, does anyone have an idea what I should test to get my join working? /johannes On Tue, Feb 12, 2013 at 4:15 PM, Johannes Radinger wrote: > Hi, > > I try to join a vector attribute table (points, sqlite-db) with > another sqlite table that is already imported to GRASS. > Bo

Re: [GRASS-user] getting the current location name

2013-02-13 Thread Johannes Radinger
Hi, On Wed, Feb 13, 2013 at 4:31 PM, Rebecca Stedham wrote: > Hi there, > > I am trying to 'get' the current grass location, set it to a variable such > that I can then use it in a python script. Currently I have managed to > print the current location to the command terminal screen using: > > g

Re: [GRASS-user] i.maxlik

2013-02-13 Thread Johannes Radinger
Hi On Wed, Feb 13, 2013 at 10:36 AM, Rebecca Stedham wrote: > Hello, > > I am running i.maxlik in python - attempting to automate a processing chain. > I use the command: > > grass.run_command('i.maxlik', group= group, subgroup=subgroup, > class='classification', sigfile = sigfile, verbose = True

[GRASS-user] v.db.join question

2013-02-12 Thread Johannes Radinger
Hi, I try to join a vector attribute table (points, sqlite-db) with another sqlite table that is already imported to GRASS. Both tables share some columns and have a column called AB_ID as unique identifier (key to join). I opened the sqlite database with the SQLite Manager (Firefox) and can succ

[GRASS-user] Copy python code from GRASS GUI modules

2013-02-01 Thread Johannes Radinger
Hi, I was just asking myself if there is something like the "copy code" button like to get the GRASS python code of a module (incl. its settings) in the GUI. I am thinking of a comparable button to the actual copy button in GRASS for the shell command. I am often trying some modules in the GUI and

Re: [GRASS-user] v.out.ascii with vector created by v.net.allpairs

2013-02-01 Thread Johannes Radinger
On Thu, Jan 31, 2013 at 11:41 PM, Markus Metz wrote: > On Thu, Jan 31, 2013 at 11:38 AM, Markus Metz > wrote: >> On Thu, Jan 31, 2013 at 11:00 AM, Johannes Radinger >> wrote: >>>> >>>> You could >>>> 1) create new categories in a new layer w

Re: [GRASS-user] Count points in a network between two locations

2013-02-01 Thread Johannes Radinger
On Thu, Jan 31, 2013 at 3:10 PM, Moritz Lennert wrote: > On 30/01/13 14:18, Johannes Radinger wrote: >> >> Hi, >> >> I have a network (proper GRASS network) and two point vectors. >> One is representing sampling stations the second contains locations >> of

Re: [GRASS-user] v.out.ascii with vector created by v.net.allpairs

2013-01-31 Thread Johannes Radinger
> > You could > 1) create new categories in a new layer with v.category > 2) add columns from_cat, to_cat to the new layer > 3) upload values by assigning from_cat (new layer) = cat (old layer) > and to_cat (new layer) = to_cat (old layer) > That sounds like a good idea, but somehow I fail. What I

Re: [GRASS-user] v.out.ascii with vector created by v.net.allpairs

2013-01-30 Thread Johannes Radinger
On Wed, Jan 30, 2013 at 4:51 PM, Markus Metz wrote: > On Wed, Jan 30, 2013 at 3:28 PM, Johannes Radinger > wrote: >> Hi, >> >> I performed an analysis to get the distances between single points >> within a network using v.net.allpairs. As a result a point v

[GRASS-user] v.out.ascii with vector created by v.net.allpairs

2013-01-30 Thread Johannes Radinger
Hi, I performed an analysis to get the distances between single points within a network using v.net.allpairs. As a result a point vector is created containing following information in the attribute table: for example cat,to_cat,cost 1,1,0 1,2,12 1,3,10 2,1,12 2,2,0 2,3,17 so there are

[GRASS-user] Count points in a network between two locations

2013-01-30 Thread Johannes Radinger
Hi, I have a network (proper GRASS network) and two point vectors. One is representing sampling stations the second contains locations of migration barriers with a certain value for its permeability (0-1). Both point vectors are located on the network (snapped via v.distance and v.in.db). Now I'd

Re: [GRASS-user] Problems with r.in.gdal and python

2012-11-28 Thread Johannes Radinger
wrote: > 2012/11/28 Johannes Radinger : >> grass.run_command("r.in gdal", overwrite = True, input = testmap, >> output = "test") > > seems to be just a typo > > grass.run_command("r.in.gdal", ... > > see missing dot between 'i

[GRASS-user] Problems with r.in.gdal and python

2012-11-28 Thread Johannes Radinger
Hi, I try to load several maps from a geoTiff into GRASS via a python script. Although it is working with a bash-command, it isn't with the python command I am using: # Bash command way r.in.gdal --overwrite input=path/to/map.tif output=test # python approach testmap = "path/to/map.tif" grass.ru

Re: [GRASS-user] r.fuzzy.system output definition

2012-11-07 Thread Johannes Radinger
Hi, yes I got r.fuzzy.system working now. The output map in the rule file must definitely be _OUTPUT_, nothing else. This is also stated in the text of the article: "A new GRASS GIS fuzzy inference system for massive data analysis" in Computers and Geosciences. But as I followed actually the exam

Re: [GRASS-user] export tif

2012-10-26 Thread Johannes Radinger
You need to have your GDAL compiled against libtiff >=4.0 to have BigTIFF support. See here: http://grass.osgeo.org/wiki/BigTIFF_support best regards /j On Fri, Oct 26, 2012 at 10:42 AM, Albert Saribekyan wrote: > > > > > > > Albert Saribekyan. >> >> > I want to export my ndvi result and get th

Re: [GRASS-user] urgently!!!

2012-10-26 Thread Johannes Radinger
Hi, You could try to start GRASS with the GUI. Then you'll see that your mapset you want to start is greyed out. Anyway if you select it and click start GRASS will ask you if you want to remove the GISLOCK. Unfortunately I don't know how to remove the GIS lock from the Terminal (but there must be

<    1   2   3   4   5   >