[GRASS-dev] [GRASS GIS] #131: Tool to assist creation (design) of simple scripts within from the wxpython-GUI

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: unspecified
Keywords: GUI, script creation |
----------------------------------+-----------------------------------------
I think the title (summary) is precise enough :wink: = Would be great for
beginners.

Examples of simple script (or one-line command) to import all *.tif files
from a directory:

for i in *.tif; do r.in.gdal in=$i out=`echo $i | cut -d"." -f1`; done

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/131&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: default | Version: unspecified
Resolution: | Keywords: GUI, script creation
--------------------------+-------------------------------------------------
Comment (by hamish):

see also the shell script or python compatible parser-wrapper generator:

   g.module --script

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/131#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 6.4.0
Component: default | Version: unspecified
Resolution: | Keywords: GUI, script creation
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by nikos):

  * platform: => Unspecified
  * cpu: => Unspecified

Comment:

Martin,

is this a ticket that can be closed? I am not following closely the new
achievements with respect to the wxGUI but I think I've spotted something
relevant with this wish.

Nikos

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/131#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.5.0
Component: default | Version: unspecified
Keywords: GUI, script creation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------
Changes (by martinl):

* cc: martinl (added)
  * milestone: 6.4.0 => 6.5.0

Comment:

Replying to [comment:2 nikos]:
> Martin,
>
> is this a ticket that can be closed? I am not following closely the new
achievements with respect to the wxGUI but I think I've spotted something
relevant with this wish.

take a look at wxGUI Modeler which allows exporting model to Python
script. Note that development of wxGUI modeler is on the beginning.

http://grass.osgeo.org/wiki/WxGUI_Modeler

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/131#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.5.0
Component: Default | Version: unspecified
Keywords: GUI, script creation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------

Comment(by hamish):

done by the now-developed modeler?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/131#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.5.0
Component: Python | Version: unspecified
Keywords: GUI, script creation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------
Changes (by hamish):

  * component: Default => Python

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/131#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.5.0
Component: Python | Version: unspecified
Keywords: GUI, script creation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------

Comment(by hamish):

does the modeler save out to a .py template, looking like a regular grass
python script might? (if so, way cool)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/131#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
----------------------------------+-----------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.5.0
Component: Python | Version: unspecified
Keywords: GUI, script creation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------

Comment(by martinl):

Replying to [comment:6 hamish]:
> does the modeler save out to a .py template, looking like a regular
grass python script might? (if so, way cool)

{{{
File -> Export to Python
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/131#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#131: Tool to assist creation (design) of simple scripts within from the
wxpython-GUI
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 6.5.0
Component: Python | Version: unspecified
Resolution: fixed | Keywords: GUI, script creation
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by wenzeslaus):

  * status: new => closed
  * resolution: => fixed

Comment:

Closing as fixed since we have the ''Save/Export as Python script'' in
wxGUI Graphical Modeler.

If something does not work or you want more functionality, please create a
new ticket.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/131#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>