[GRASS-SVN] r50477 - grass/trunk/temporal/t.time.rel

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 26 16:02:46 EST 2012


Author: huhabla
Date: 2012-01-26 13:02:46 -0800 (Thu, 26 Jan 2012)
New Revision: 50477

Modified:
   grass/trunk/temporal/t.time.rel/t.time.rel.py
   grass/trunk/temporal/t.time.rel/test.t.time.rel.file.sh
Log:
Fixed option type of start and end time


Modified: grass/trunk/temporal/t.time.rel/t.time.rel.py
===================================================================
--- grass/trunk/temporal/t.time.rel/t.time.rel.py	2012-01-26 14:33:32 UTC (rev 50476)
+++ grass/trunk/temporal/t.time.rel/t.time.rel.py	2012-01-26 21:02:46 UTC (rev 50477)
@@ -33,16 +33,16 @@
 
 #%option
 #% key: start
-#% type: integer
-#% description: The valid integer start value for all maps, or file in case the start time is located in the input file 
+#% type: string
+#% description: The valid integer start value for all maps, or the identifier "file" in case the start time is located in the input file 
 #% required: no
 #% multiple: no
 #%end
 
 #%option
 #% key: end
-#% type: integer
-#% description: The valid integer end value for all maps, or file in case the start time is located in the input file 
+#% type: string
+#% description: The valid integer end value for all maps, or the identifier "file" in case the start time is located in the input file 
 #% required: no
 #% multiple: no
 #%end

Modified: grass/trunk/temporal/t.time.rel/test.t.time.rel.file.sh
===================================================================
--- grass/trunk/temporal/t.time.rel/test.t.time.rel.file.sh	2012-01-26 14:33:32 UTC (rev 50476)
+++ grass/trunk/temporal/t.time.rel/test.t.time.rel.file.sh	2012-01-26 21:02:46 UTC (rev 50477)
@@ -53,24 +53,29 @@
 
 # Test with input files
 # File 1
+echo "Test 1"
 t.time.rel -i file="${n1}" start=20 increment=5 unit=months
 
 tr.register input=precip_rel file="${n1}"
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
 
+echo "Test 2"
 # File 1
 t.time.rel file="${n1}" start=20 unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 3"
 # File 2
 t.time.rel file="${n2}" start=file unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 4"
 # File 2
 t.time.rel -i file="${n2}" start=file increment=5 unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 5"
 # File 3
 t.time.rel file="${n3}" start=file end=file unit=months
 t.info type=strds input=precip_rel



More information about the grass-commit mailing list