[GRASS-SVN] r39753 - grass-addons/raster/r.terraflow.tools
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 18 20:08:43 EST 2009
Author: hamish
Date: 2009-11-18 20:08:42 -0500 (Wed, 18 Nov 2009)
New Revision: 39753
Modified:
grass-addons/raster/r.terraflow.tools/calc_terraflow_dir.m
grass-addons/raster/r.terraflow.tools/dominant_dir.m
Log:
add minimal usage text
Modified: grass-addons/raster/r.terraflow.tools/calc_terraflow_dir.m
===================================================================
--- grass-addons/raster/r.terraflow.tools/calc_terraflow_dir.m 2009-11-18 13:25:19 UTC (rev 39752)
+++ grass-addons/raster/r.terraflow.tools/calc_terraflow_dir.m 2009-11-19 01:08:42 UTC (rev 39753)
@@ -13,10 +13,12 @@
% 32 64 128
% 16 * 1
% 8 4 2
+%
+% USAGE:
+% !r.out.mat in=terraflow.dir out=tf.mat
+% load tf.mat
+% then run this script
-% !r.out.mat in=terraflow.dir out=tf.mat
-% load tf.mat
-
if ( exist('map_data') ~= 1)
disp('you have to import map from GRASS first. r.out.mat->load file.mat')
end
@@ -56,3 +58,4 @@
!r.colors terraflow_aspect col=aspect
!d.rast.arrow terraflow_aspect
end
+
Modified: grass-addons/raster/r.terraflow.tools/dominant_dir.m
===================================================================
--- grass-addons/raster/r.terraflow.tools/dominant_dir.m 2009-11-18 13:25:19 UTC (rev 39752)
+++ grass-addons/raster/r.terraflow.tools/dominant_dir.m 2009-11-19 01:08:42 UTC (rev 39753)
@@ -8,6 +8,9 @@
% 32 64 128
% 16 * 1
% 8 4 2
+%
+% USAGE: this scipt is a helper function for use by the
+% calc_terraflow_dir.m script
switch(dir)
case {1,2,4,8,16,32,64,128}
More information about the grass-commit
mailing list