[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

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

2014-09-12 Thread Johannes Radinger
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 ___ grass-user mailing list grass

[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

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

2014-09-04 Thread Johannes Radinger
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 On Thu, Sep 4, 2014 at 5:32 AM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, I want to export

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

2014-09-04 Thread Johannes Radinger
, 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:27, Johannes Radinger johannesradin...@gmail.com

[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] 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

[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

Re: [GRASS-user] Grouping spatial points

2014-07-09 Thread Johannes Radinger
, On Tue, Jul 8, 2014 at 1:58 PM, Johannes Radinger johannesradin...@gmail.com 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 viewing the map). Now I am wondering if there is any tool

[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

[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

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 direg...@gmail.com 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 add-on arena to the main code of GRASS7

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

2014-03-28 Thread Johannes Radinger
...@gmail.comwrote: 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 versions. The problem still persists. Here how I installed wxPython: sudo apt-get install

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

2014-03-26 Thread Johannes Radinger
, 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 the 3d view (WxNviz) nothing is rendered, instead I get the message that I should try a different depth buffer number

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

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

2014-02-03 Thread Johannes Radinger
here? /Johannes On Mon, Feb 3, 2014 at 1:48 PM, Moritz Lennert mlenn...@club.worldonline.be 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. First I needed to generate data (rasterized line

[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

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

2014-01-14 Thread Johannes Radinger
that there is such 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 nete...@osgeo.org wrote: On Mon, Jan 13, 2014 at 12:39 PM, Johannes Radinger johannesradin...@gmail.com

[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

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

2014-01-10 Thread Johannes Radinger
in spatstat are e.g. rThomas, rGaussPoisson, rMatClust, rcell (retrieved from the help page of rpoispp). The simulated point density will of course not always have exactly the requested density. cheers robert Am Freitag, 10. Januar 2014, 08:17:50 schrieb Johannes Radinger

[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

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

2014-01-09 Thread Johannes Radinger
, Johannes Radinger johannesradin...@gmail.com wrote: 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

[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] 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] 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 fs

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

2013-12-10 Thread Johannes Radinger
-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 are rigth, I have to be more understandable. I have defined region, with a defined extent and a defined resolution

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: Hi, I'd

[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

[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

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 filipesd...@gmail.com wrote: Hi I just installed GRASS 6.4.3 from the central ubuntu repository and tried to launch grass and got this

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 richtcoo...@hotmail.com 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

[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

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

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

2013-08-19 Thread Johannes Radinger
. With kind regards, Beatrice. -- *From:* Beatrice Christopher Tarimo *Sent:* 16 August 2013 16:23 *To:* Johannes Radinger *Subject:* RE: FW: [GRASS-user] r.fuzzy.system: specifying raster file? Hi Johannes, Thank you for your email and this information. I have

[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

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 jmbarri...@gmail.comwrote: 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,

[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

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

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

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 nete...@osgeo.org wrote: On Tue, Jun 4, 2013 at 11:09 AM, RichardC richtcoo...@hotmail.com wrote:

[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

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 peter.z...@gmail.com wrote: Hi Johannes, On Mon, Jun 17, 2013 at 1:24 PM, Johannes Radinger johannesradin...@gmail.com wrote: I want to create a point via python at a specific location using the v.in.ascii command. How can I also specify

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 markus.metz.gisw...@gmail.com wrote: On Fri, Jun 14, 2013 at 11:03 AM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, as I am not very familiar with GRASS' vector capabilities maybe someone of you has some ideas

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

2013-06-04 Thread Johannes Radinger
markus.metz.gisw...@gmail.comwrote: On Mon, Jun 3, 2013 at 3:30 PM, Johannes Radinger johannesradin...@gmail.com 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 raster. This river raster

[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

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

[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

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 mi...@arava.co.il wrote: On 16/05/2013 11:48, Johannes Radinger wrote: Hi

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 hamis...@yahoo.com 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:

[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$

[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

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

2013-05-13 Thread Johannes Radinger
gl...@gclements.plus.comwrote: 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 compilation error in the /man

[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

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

2013-04-25 Thread Johannes Radinger
with a net.allpairs-attribute table? /Johannes On Wed, Apr 24, 2013 at 7:30 PM, Markus Metz markus.metz.gisw...@gmail.comwrote: On Wed, Apr 24, 2013 at 3:01 PM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, There are two little issues that recently popped up in GRASS 7 1) I performed

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 markus.metz.gisw...@gmail.com wrote: On Thu, Apr 25, 2013 at 10:33 AM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, @Markus M: Thank you for the fix. However, somehow I am not able to export the attribute table

[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

[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

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

[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

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 gl...@gclements.plus.comwrote: Johannes Radinger wrote: I would like to check if the file defined as output in a python script already exists and fire

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 gl...@gclements.plus.comwrote: Johannes Radinger wrote: Thank you Hamish

[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 correctly:

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

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=100

[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

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 landa.mar...@gmail.com wrote: Hi, 2013/4/8 Johannes Radinger johannesradin...@gmail.com: I just wanted to know how to set mutliple flags when calling a module via python. Eg when I

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 nete...@osgeo.org wrote: On Tue, Apr 9, 2013 at 11:58 AM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, I try to compile a GRASS6 add-on with GRASS7 to adapt the code

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 johannesradin...@gmail.com 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 johannesradin...@gmail.com wrote: Hi, I

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 johannesradin...@gmail.com wrote: Hi, I try to join a vector attribute table (points, sqlite-db) with another sqlite table that is already imported to GRASS

Re: [GRASS-user] i.maxlik

2013-02-13 Thread Johannes Radinger
Hi On Wed, Feb 13, 2013 at 10:36 AM, Rebecca Stedham rlsted...@btinternet.com 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 =

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 rlsted...@btinternet.com 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

[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

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 mlenn...@club.worldonline.be 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 migration barriers

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 markus.metz.gisw...@gmail.com wrote: On Thu, Jan 31, 2013 at 11:38 AM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Thu, Jan 31, 2013 at 11:00 AM, Johannes Radinger johannesradin...@gmail.com wrote: You could 1) create new categories

[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-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 did

[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

[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

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 markus.metz.gisw...@gmail.com wrote: On Wed, Jan 30, 2013 at 3:28 PM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, I performed an analysis to get the distances between single points within a network using v.net.allpairs. As a result

[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

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

2012-11-28 Thread Johannes Radinger
landa.mar...@gmail.com wrote: 2012/11/28 Johannes Radinger johannesradin...@gmail.com: 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 'in' and 'gdal'. Martin -- Martin Landa

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

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

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 albertsaribek...@rambler.ru wrote: Albert Saribekyan. I want to export my ndvi

Re: [GRASS-user] Join sqlite table by coordinate pair (X,Y)

2012-10-25 Thread Johannes Radinger
Hi, thank you for your enspiring answers. I think I'll stick to the direct sqlite approach instead of the v.distance. There are now two tables in my sqlite database, one is connected to the GRASS vector and the other is a table imported from a csv. For both tables I want to join/merge I created

[GRASS-user] Join sqlite table by coordinate pair (X,Y)

2012-10-22 Thread Johannes Radinger
Hi, I have a points vector file with the columns X and Y which are populated with the respective coordinates. Additionally I have a .csv file for the same points, also with the X and Y column and a lot more columns providing additional information. These two files don't share a single unique key

[GRASS-user] Rescale of float-raster

2012-08-31 Thread Johannes Radinger
Hi, I have a float raster with a minimum cell value 0f 0.2 and a maximum of 0.8. Now I'd like to rescale all floating values between 0.0 and 1.0. I tried r.rescale with from=0.2,0.8 and to=0,1 but the I get a map with only two values 0 and 1, but I'd like to strech all values to this new scale

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

2012-08-29 Thread Johannes Radinger
Hi GRASS users! Maybe anyone has already tried the new GRASS GIS fuzzy inference system (r.fuzzy.system). I try to do my first fuzzy computation and follow the paper Jasiewicz, J. 2011: A new GRASS GIS fuzzy inference system for massive data analysis, Computers Geosciences, 37: 9, 1525-1531.

Re: [GRASS-user] Precision of raster/vector float values

2012-08-24 Thread Johannes Radinger
Hi, So I misunderstood something about IEEE precision, sorry about the confusion! Coming back to the original problem, it seems that it can be solved for DCELL by using .15g instead of .10f, i.e. use the same formatting rules like e.g. r.what and d.what.rast. I tested and the values uploaded

Re: [GRASS-user] After Qgis installation - GRASS6.4 doesn't start anymore

2012-08-24 Thread Johannes Radinger
Hi, Please check how many files remained in /usr/lib/grass64/. Perhaps QGIS removed it to install again GRASS (which failed)? Before installing QGIS (at the time when GRASS is still launching), there is no grass64 folder in /usr/lib but there is the folder /usr/local/grass6.4.3SVN. This seems

Re: [GRASS-user] After Qgis installation - GRASS6.4 doesn't start anymore

2012-08-24 Thread Johannes Radinger
convinced if it really needed or if it might cause any problems (with versions etc)? Would it get very messy if just sudo make install is used? Any recommendations on that? /johannes HTH kind regards Werner On Fri, Aug 24, 2012 at 10:45 AM, Johannes Radinger johannesradin...@gmail.com

Re: [GRASS-user] Precision of raster/vector float values

2012-08-24 Thread Johannes Radinger
On Fri, Aug 24, 2012 at 11:53 AM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, Aug 24, 2012 at 11:27 AM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, Aug 24, 2012 at 10:40 AM, Johannes Radinger johannesradin...@gmail.com wrote: Hi, So I misunderstood something about

[GRASS-user] Precision of raster/vector float values

2012-08-23 Thread Johannes Radinger
Hi, I have a GRASS raster map which contains small values (e.g 2.5e-15) among others. When I try to update a attribute column (Type = Float) of a corresponding point vector (using v.what.rast), all small values turn in 0. Thus I am curious about the precision of the float values of a vector file

[GRASS-user] After Qgis installation - GRASS6.4 doesn't start anymore

2012-08-23 Thread Johannes Radinger
Hi, I successfully compiled and installed GRASS6.4 with make -j2 sudo checkinstall sudo ldconfig which is usually working perfectly. But after installing QGIS I can't start GRASS6.4 itself anymore. I try to launch it from the Terminal like: x@y:~$ grass64 Cleaning up temporary files ...

Re: [GRASS-user] Precision of raster/vector float values

2012-08-23 Thread Johannes Radinger
I have a GRASS raster map which contains small values (e.g 2.5e-15) among others. This is (dangerously) close to the IEEE limit of double precision floating point values. If GRASS tests for fp precision, it regards (absolute) values smaller than 1.0e-15 (GRASS_EPSILON) as zero. v.what.rast

Re: [GRASS-user] Precision of raster/vector float values

2012-08-23 Thread Johannes Radinger
On Thu, Aug 23, 2012 at 3:23 PM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Thu, Aug 23, 2012 at 2:40 PM, Johannes Radinger johannesradin...@gmail.com wrote: I have a GRASS raster map which contains small values (e.g 2.5e-15) among others. This is (dangerously) close to the IEEE

Re: [GRASS-user] Parallelization of Python Script

2012-08-07 Thread Johannes Radinger
Hi, for an example of grass.start_command() for parallelizing a bunch of r.cost runs, see v.surf.icw(.py) in grass7 addons: https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py thank you for that example. I think it explains it very well how it works to

Re: [GRASS-user] Parallelization of Python Script

2012-08-07 Thread Johannes Radinger
Räder Softwarecenter 3 35037 Marburg Festnetz: +49 6421 379 6256 Mobil: +49 176 6127 7269 E-Mail: l...@isi-solutions.org Web: http://www.isi-solutions.org 2012/8/7 Johannes Radinger johannesradin...@gmail.com Hi, for an example of grass.start_command() for parallelizing a bunch

Re: [GRASS-user] Parallelization of Python Script

2012-08-07 Thread Johannes Radinger
Nils Räder Softwarecenter 3 35037 Marburg Festnetz: +49 6421 379 6256 Mobil: +49 176 6127 7269 E-Mail: l...@isi-solutions.org Web: http://www.isi-solutions.org 2012/8/7 Johannes Radinger johannesradin...@gmail.com Hi, sounds promising, but somehow I don't get it (as I not yet deeply

[GRASS-user] Parallelization of Python Script

2012-08-06 Thread Johannes Radinger
Dear GRASS users, I am running serveral task in GRASS in python scripts. Most of them involve for-loops, e.g. to run various raster modules with different input. In the end all the result maps are mostly aggregated to one final map. Anyway the maps are generated during the loops in a serial

<    1   2   3   4   >