Difference between revisions of "Software"

m (Installing SAGA)
m (First steps in SAGA)
Line 120: Line 120:
  
 
<geshi lang=R lines=0>
 
<geshi lang=R lines=0>
> rsaga.env(path="C:/Progra~1/saga_vc")
+
> myenv <- rsaga.env(path="C:/saga_vc")
 
</geshi>
 
</geshi>
  
Line 135: Line 135:
 
#! $grid_gridding
 
#! $grid_gridding
 
#!  code                      name interactive
 
#!  code                      name interactive
#! 1    0         Inverse Distance       FALSE
+
#! 1    0           Shapes to Grid       FALSE
#! 2    1         Nearest Neighbour       FALSE
+
#! 2    1 Inverse Distance Weighted       FALSE
#! 3    2 Modifed Quadratic Shepard       FALSE
+
#! 3    2         Nearest Neighbour       FALSE
#! 4    3           Shapes to Grid       FALSE
+
#! 4    3         Natural Neighbour       FALSE
#! 5    4            Triangulation      FALSE
+
#! 5    4 Modifed Quadratic Shepard      FALSE
#! 6   NA                      <NA>       FALSE
+
#! 6    5             Triangulation      FALSE
#! 7   NA                      <NA>       FALSE
+
#! 7    6 Kernel Density Estimation       FALSE
 +
#! 8    7 Angular Distance Weighted       FALSE
 
#!  
 
#!  
 
#! Warning message:
 
#! Warning message:
Line 156: Line 157:
  
 
<geshi lang=R lines=0>
 
<geshi lang=R lines=0>
#! SAGA CMD 2.0.3
+
#! library path:  C:\saga_vc\modules\grid_gridding.dll
#! library path:  C:/Progra~1/saga_vc/modules
+
#! library name:  Grid - Gridding
#! library name:  grid_gridding
+
#! Usage: saga_cmd grid_gridding 0 -INPUT <str> [-FIELD <str>] [-OUTPUT <str>] [-MULTIPLE <str>] [-LINE_TYPE <str>] [-POLY_TYPE <str>] [-GRID_TYPE <str>] [-TARGET <str>] [-USER_XMIN  <str>] [-USER_XMAX <str>] [-USER_YMIN <str>] [-USER_YMAX <str>] [-USER_SIZE <str>] [-USER_FIT <str>] [-USER_GRID <str>] [-USER_COUNT <str>] [-USER_BCOUNT] [-GRID_GRID <str>] [-GRID_COUNT <str>]
#! module name :  Shapes to Grid
+
#! -INPUT:<str>         Shapes
#! Usage: 3 [-GRID <str>] -INPUT <str> [-FIELD <num>] ...
+
#!       Shapes (input)
#!   -GRID:<str>                   Grid
+
#! -FIELD:<str>         Attribute
#!         Data Object (optional output)
+
#!        Table field
#!   -INPUT:<str>                 Shapes
+
#! -OUTPUT:<str>         Output Values
#!        Shapes (input)
+
#!        Choice
#! ...
+
#!        Available Choices:
 +
#!        [0] data / no-data
 +
#!        [1] index number
 +
#!        [2] attribute
 +
#!       Default: 2
 
</geshi>
 
</geshi>
  
 
Another place to look for libraries and parameters is the [http://www.saga-gis.org/saga_modules_doc/ SAGA's homepage] or this [[list of SAGA modules]]. SAGA also provides an [http://www.saga-gis.org/saga_api_doc/html/ API functionality], so you can access SAGA grids and libraries from e.g. python.  
 
Another place to look for libraries and parameters is the [http://www.saga-gis.org/saga_modules_doc/ SAGA's homepage] or this [[list of SAGA modules]]. SAGA also provides an [http://www.saga-gis.org/saga_api_doc/html/ API functionality], so you can access SAGA grids and libraries from e.g. python.  
  
Once you have learned about a specific function, you can run it via the rsaga.geoprocessor. For example to extract a stream network from a DEM, we can run:
+
Once you have learned about a specific function, you can run it via the ''rsaga.geoprocessor''. For example to extract a stream network from a DEM, we can run:
  
 
<geshi lang=R lines=0>
 
<geshi lang=R lines=0>
Line 182: Line 187:
 
</geshi>
 
</geshi>
  
which will produce a screen as shown on the right (above). Note that the rsaga.geoprocessor only serves to pass the parameters to SAGA command line (saga_cmd.exe). If you are loading a list of grids to some SAGA process, they need to be written as a list:
+
which will produce a screen as shown on the right (above). Note that the ''rsaga.geoprocessor'' only serves to pass the parameters to SAGA command line (saga_cmd.exe). If you are loading a list of grids to some SAGA process, they need to be written as a list:
  
 
<geshi lang=R lines=0>
 
<geshi lang=R lines=0>

Revision as of 16:18, 23 May 2014