Re: [GRASS-user] log(0)-error in r.mapcalculator

2012-11-09 Thread Patrick S.
Thank you so much, Markus! That was the missing hint and it works now! However, I just went through the documentation, which says: "/F/ means that the functions always results in a floating point value" and Function "log" has "F". This is somehow misleading and rather should be an "*". Can I

Re: [GRASS-user] log(0)-error in r.mapcalculator

2012-11-09 Thread Markus Metz
On Fri, Nov 9, 2012 at 9:27 AM, Patrick S. wrote: > Thank you so much, Markus! > > That was the missing hint and it works now! > However, I just went through the documentation, which says: "F means that > the functions always results in a floating point value" and Function "log" > has "F". The do

[GRASS-user] How to split raster map by specified rows

2012-11-09 Thread Andranik Hayrapetyan
Hi. I am trying to split raster map into chunks to do calculations (with r.mapcalc) on each chunk separately. I browsed the net and found only the script called r.split.line, which needs vector file to split raster, but this is not that I want. Is there a way to split raster by rows? For example

Re: [GRASS-user] log(0)-error in r.mapcalculator

2012-11-09 Thread Patrick S.
Markus, I understand your arguments, but "A" is the slope of r.slope.aspect and has floating point values as input for the formula. I just created a testcase to be able to report on the behavior in detail. As you can see below the results are truncated to integer as soon as I add a term to "A

Re: [GRASS-user] How to split raster map by specified rows

2012-11-09 Thread Helmut Kudrnovsky
hi >Is there a way to split raster by rows? For example if I have a GeoTiff file with 8000 rows I want to >split it into 8 files 1000 row per each. r.info (http://grass.osgeo.org/grass64/manuals/html64_user/r.info.html) to get the raster extent g.region (http://grass.osgeo.org/grass64/manuals/htm

Re: [GRASS-user] How to split raster map by specified rows

2012-11-09 Thread Paulo van Breugel
The function r.tileset ( http://grass.osgeo.org/grass64/manuals/html64_user/r.tileset.html) allows you to split your raster layer in user-defined tiles (which could be a tile of one row). The description states that it "produces tilings of the source projection for use in the destination region and

Re: [GRASS-user] How to split raster map by specified rows

2012-11-09 Thread Micha Silver
The gdal_translate utility has a -srcwin option where you can speciify row/col values to "clip" a raster. If your data is Geotiff to begin with, this would be an easy solution. -- Micha Silver 052-366-5918 -Original message- From: Andranik Hayrapetyan To: grass-user@lists.osgeo.org

Re: [GRASS-user] Calculate p value for regression slope in r.series

2012-11-09 Thread Glynn Clements
Markus Metz wrote: > >> Just wondering, if it is implemented in r.regression.series, would it be > >> very difficult to port to r.series? Or do the two things function different > >> internally? > > > > It could probably be added to r.series quite quickly if someone was > > willing to provide def

Re: [GRASS-user] log(0)-error in r.mapcalculator

2012-11-09 Thread Glynn Clements
Patrick S. wrote: > ###Testcase2: formula= log(((A+1)/100)/(1-(A+1/100))) Note that (A+1/100) = A+(1/100) = A as 1/100 will use integer division. -- Glynn Clements ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.o

Re: [GRASS-user] Calculate p value for regression slope in r.series

2012-11-09 Thread 王德辉
Thank you Paulo! I think your way is feasible. For r.series, t could be caluclate via R2 using r.mapcalc. I am also a newcomer to time series analysis. Hope r.series may add t,f, p function soon. Best regard, Dehui -原始邮件- 发件人: "Paulo van Breugel" 发送时间: 2012年11月9日 星期五 收件人: "王德辉"

[GRASS-user] new `g.gui.` modules

2012-11-09 Thread Martin Landa
Hi, yesterday with Anna and Vaclav we added a new module `g.gui.mapswipe` in G7 which allows to launch wxGUI Map Swipe as standalone application. Today I did the same for Graphical Modeler. So currently you can launch the Graphical Modeler also from CLI g.gui.gmodeler or g.gui.gmodeler file=.gm

[GRASS-user] gui modeler: dynamic variable names

2012-11-09 Thread Moritz Lennert
Hi, I'm experimenting with the gui modeler (thanks for a great tool by the way !) trying to build a very simple model of city growth, starting with a very basic cellula automata style model where the state of each pixel at time t+1 depends the state of its neighborhood at time t. In Python t

[GRASS-user] Easy way to patch vector files

2012-11-09 Thread Stephen Sefick
I have two different vectors that I would like to patch together. one doesn't have an attribute table associated with it. The other does. I am having a problem figuring out how to get them to play nicely. At this point It would be easier to just create an attribute table... All help is gre

Re: [GRASS-user] Calculate p value for regression slope in r.series

2012-11-09 Thread Paulo van Breugel
Great, thanks On Fri, Nov 9, 2012 at 12:28 PM, Glynn Clements wrote: > > Markus Metz wrote: > > > >> Just wondering, if it is implemented in r.regression.series, would it > be > > >> very difficult to port to r.series? Or do the two things function > different > > >> internally? > > > > > > It c

Re: [GRASS-user] Is r.damflood is suitable for grass6.5

2012-11-09 Thread Margherita Di Leo
Hi, On Fri, Nov 9, 2012 at 6:27 AM, SWAPAN GHOSH wrote: > > Thanks to all for helping me. Later I build Grass7 developement > environment. At that time I have not much time for research. I can solve my > requirement using r.lake and r.hazard.flood command. I would like to point you out that r.

Re: [GRASS-user] Easy way to patch vector files

2012-11-09 Thread Richard Chirgwin
Stephen - Adding an attribute table to the input map is probably the best thing to do! You can create the patched vector with no attribute table, and add it later - but you'll then have to go back and use other tools to create a table and fetch attributes from the original. cheers, Richard C

Re: [GRASS-user] Is r.damflood is suitable for grass6.5

2012-11-09 Thread SWAPAN GHOSH
*Dear madi,* Ok, I know it but according to our requirement we need some customization. We are also focus on psmap flooding scripts. *Thanks & Regards,* * * *Swapan* On Sat, Nov 10, 2012 at 1:15 AM, Margherita Di Leo wrote: > Hi, > > On Fri, Nov 9, 2012 at 6:27 AM, SWAPAN GHOSH wrote: > >> >>

Re: [GRASS-user] Calculating Azimuth of Stream Main Channel [RESOLVED]

2012-11-09 Thread Markus Neteler
On Thu, Nov 8, 2012 at 5:34 PM, Rich Shepard wrote: ... > Thanks for pointing this out to me. It's one of the hidden gems in GRASS > not visible from the one-line descriptions in the module list. Yes - this is why I still think that the manual should be upgraded: make documentation be full tex