[GRASS-user] creating custom filter with r.mfilter

2012-08-06 Thread maning sambale
Any working code I can start with to create custom filters?  I
basically want to run the speckle filters in GRASS.  Sample filters
are explained here:
http://resources.arcgis.com/en/help/main/10.1/index.html#//009t01z700

-- 
cheers,
maning
--
Freedom is still the most radical idea of all -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
--
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] help me, please!

2012-08-06 Thread Albert Saribekyan






Albert Saribekyan.




hi all,

when I run g.region in text mod, there was an error

GRASS 6.4.2RC2 (newlocation):~  g.region
g.region: error while loading shared libraries: libgeos-3.1.0.so: cannot open 
shared object file: No such file or directory

regards,
Albert
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] help me, please!

2012-08-06 Thread Markus Neteler
On Mon, Aug 6, 2012 at 2:31 PM, Albert Saribekyan
albertsaribek...@rambler.ru wrote:
 GRASS 6.4.2RC2 (newlocation):~  g.region
 g.region: error while loading shared libraries: libgeos-3.1.0.so: cannot
 open shared object file: No such file or directory

You need to install the geos library package for your system.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] creating custom filter with r.mfilter

2012-08-06 Thread Markus Neteler
I forgot to mention that there is a screenshot example
with PALSAR:

https://svn.osgeo.org/grass/grass-addons/grass6/imagery/i.despeckle/description.html

Cheers
Markus

On Mon, Aug 6, 2012 at 4:32 PM, Markus Neteler nete...@osgeo.org wrote:
 On Mon, Aug 6, 2012 at 12:54 PM, maning sambale
 emmanuel.samb...@gmail.com wrote:
 Any working code I can start with to create custom filters?  I
 basically want to run the speckle filters in GRASS.

 I have implemented a SAR Speckle Filter module, uploaded
 right now to GRASS 6 Addons. For now only the
 GAMMA SAR Speckle Filter is implemented.

 Installation:
 g.extension i.despeckle

 Please expand with other filters (Lee, Frost etc.)

 Markus

-- 
http://gis.cri.fmach.it/neteler/
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[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 process which takes quite some time.

Thus I thought one could pseudo-parallelize the python scripts. As I very
unexperienced in this field I just
read the wiki where it states that one could perform the single parts in
own mapsets and then run the task in parallel.

I attached I short example python script which looks similar to ones I am
using involving the r.cost module (one
out of several others) which I run inside a for loop. I tried to understand
the example in the wiki
(http://grass.osgeo.org/wiki/Parallelizing_Scripts#Python) but I can't
transfer it to my task.

Maybe someone is more experienced than me and wants to help to improve the
speed of such scripts if this
is generally possible (in GRASS 6). I think this can also be quite
interesting to other users.

Best regards,

/Johannes


GRASS_Parallel_skript.py
Description: Binary data
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Parallelization of Python Script

2012-08-06 Thread Daniel Lee
Hi Johannes,

One very simple trick would be to switch off using grass.run_command with
grass.start_command. grass.start_command() spawns a child process that and
continues on to the next line of code, so that you can have several
processes going simultaneously. You just have to make sure that the
processes play nice with each other and don't cause any problems. It's not
the most elegant solution, but it's one that works for many things :)

Best,
Daniel

--

B.Sc. Daniel Lee
Geschäftsführung für Forschung und Entwicklung
ISIS - International Solar Information Solutions GbR
Vertreten durch: Daniel Lee, Nepomuk Reinhard und 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/6 Johannes Radinger johannesradin...@gmail.com

 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 process which takes quite some time.

 Thus I thought one could pseudo-parallelize the python scripts. As I
 very unexperienced in this field I just
 read the wiki where it states that one could perform the single parts in
 own mapsets and then run the task in parallel.

 I attached I short example python script which looks similar to ones I am
 using involving the r.cost module (one
 out of several others) which I run inside a for loop. I tried to
 understand the example in the wiki
 (http://grass.osgeo.org/wiki/Parallelizing_Scripts#Python) but I can't
 transfer it to my task.

 Maybe someone is more experienced than me and wants to help to improve the
 speed of such scripts if this
 is generally possible (in GRASS 6). I think this can also be quite
 interesting to other users.

 Best regards,

 /Johannes

 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Parallelization of Python Script

2012-08-06 Thread Hamish
Daniel wrote:
 One very simple trick would be to switch off using
 grass.run_command with grass.start_command.
 grass.start_command() spawns a child process that and continues
 on to the next line of code, so that you can have several
 processes going simultaneously. You just have to make sure that
 the processes play nice with each other and don't cause any
 problems. It's not the most elegant solution, but it's one that
 works for many things :)

( when it works, it works pretty well)


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

maybe a bit more complicated than you need, but hopefully
enough to give you an idea. Other grass7 python scripts which
have been parallelized are listed in the grass wiki page.
e.g. r3.in.xyz.


Hamish
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user