1.SAGAをダウンロードする(2013.6.3現在ver.2.0.8が最新)
2.適当なディレクトリにインストール(というか解凍)
3.コマンドプロンプトを起動
4.SAGA本体のありかを指定する
>PATH=%PATH%;ここに2でインストールした場所(パス)を書く
例えば、PATH=%PATH%;C:\saga208
5.SAGAのモジュールのありかを指定する
>SET SAGA_MLB=ここにmodulesへのパスを書く
例えば、SET SAGA_MLB=C:\saga208\modules
6.作業場所へ移動する[C:\gis で作業する場合]
>cd /d C:\gis
7.どんなモジュールがあるか見てみる
>saga_cmd
長いけどこんな感じ
>C:\gis>saga_cmd
_____________________________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
_____________________________________________
error: module library
available module libraries:
- contrib_a_perego.dll
- docs_html.dll
- docs_pdf.dll
- garden_3d_viewer.dll
- garden_webservices.dll
- geostatistics_grid.dll
- geostatistics_kriging.dll
- geostatistics_points.dll
- geostatistics_regression.dll
- grid_analysis.dll
- grid_calculus.dll
- grid_calculus_bsl.dll
- grid_filter.dll
- grid_gridding.dll
- grid_spline.dll
- grid_tools.dll
- grid_visualisation.dll
- ihacres.dll
- imagery_classification.dll
- imagery_rga.dll
- imagery_segmentation.dll
- imagery_tools.dll
- io_esri_e00.dll
- io_gdal.dll
- io_gps.dll
- io_grid.dll
- io_grid_grib2.dll
- io_grid_image.dll
- io_odbc.dll
- io_shapes.dll
- io_shapes_dxf.dll
- io_shapes_las.dll
- io_table.dll
- lectures_introduction.dll
- opencv.dll
- pj_georeference.dll
- pj_geotrans.dll
- pj_proj4.dll
- pointcloud_tools.dll
- pointcloud_viewer.dll
- recreations_fractals.dll
error: Library does not contain executable modules [recreations_games.dll]
- shapes_grid.dll
- shapes_lines.dll
- shapes_points.dll
- shapes_polygons.dll
- shapes_tools.dll
- shapes_transect.dll
- sim_cellular_automata.dll
- sim_ecosystems_hugget.dll
- sim_fire_spreading.dll
- sim_hydrology.dll
- table_calculus.dll
- table_tools.dll
- ta_channels.dll
- ta_compound.dll
- ta_hydrology.dll
- ta_lighting.dll
- ta_morphometry.dll
- ta_preprocessor.dll
- ta_profiles.dll
- tin_tools.dll
- tin_viewer.dll
- vigra.dll
63 SAGA Module Libraries
type -h or --help for further information
――――――――――ココまで
8.水文解析をするとすると ta_hydrologyを使ってみたいかもしれない
{他にどんなモジュールがあるかは(http://spatial-analyst.net/DATA/SAGA_GIS_2_0_6.txt)に詳しい。誰かが訳さないといけないんだとは思う。}
>C:\gis>saga_cmd ta_hydrology
_____________________________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
_____________________________________________
error: module
executable modules:
0 - Catchment Area (Parallel)
1 - Catchment Area (Recursive)
2 - Catchment Area (Flow Tracing)
4 - Upslope Area
6 - Flow Path Length
7 - Slope Length
10 - Cell Balance
13 - Edge Contamination
15 - SAGA Wetness Index
16 - Lake Flood
18 - Catchment Area (Mass-Flux Method)
19 - Flow Width and Specific Catchment Area
20 - Topographic Wetness Index (TWI)
21 - Stream Power Index
22 - LS Factor
type -h or --help for further information
――――――――――ココまで
Topographic Wetness Index (TWI)を計算したい場合は、ta_hydrologyの20というモジュールを使えば良いことがわかる。
9.使い方の調べ方は、先ほどと同様
>C:\gis>saga_cmd ta_hydrology 20
_____________________________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
_____________________________________________
library path: C:\GIS\saga208\modules
library name: ta_hydrology
module name : Topographic Wetness Index (TWI)
author : O.Conrad (c) 2003
_____________________________________________
go...
Usage: 20 -SLOPE
HOD
-SLOPE:
Grid (input)
-AREA:
Grid (input)
-TRANS:
Grid (optional input)
-TWI:
Grid (output)
-CONV:
Choice
Available Choices:
[0] no conversion (areas already given as specific catchment area)
[1] 1 / cell size (pseudo specific catchment area)
-METHOD:
Choice
Available Choices:
[0] Standard
[1] TOPMODEL
とこんな具合になる