[GRASS-SVN] r66574 - in grass/trunk/temporal: t.rast.univar t.vect.univar
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 22 03:37:48 PDT 2015
Author: huhabla
Date: 2015-10-22 03:37:47 -0700 (Thu, 22 Oct 2015)
New Revision: 66574
Modified:
grass/trunk/temporal/t.rast.univar/t.rast.univar.py
grass/trunk/temporal/t.vect.univar/t.vect.univar.py
Log:
temporal modules: Added file based output to t.vect.univar
Modified: grass/trunk/temporal/t.rast.univar/t.rast.univar.py
===================================================================
--- grass/trunk/temporal/t.rast.univar/t.rast.univar.py 2015-10-22 10:14:37 UTC (rev 66573)
+++ grass/trunk/temporal/t.rast.univar/t.rast.univar.py 2015-10-22 10:37:47 UTC (rev 66574)
@@ -25,12 +25,10 @@
#%option G_OPT_STRDS_INPUT
#%end
-
#%option G_OPT_F_OUTPUT
#% required: no
#%end
-
#%option G_OPT_T_WHERE
#% guisection: Selection
#%end
Modified: grass/trunk/temporal/t.vect.univar/t.vect.univar.py
===================================================================
--- grass/trunk/temporal/t.vect.univar/t.vect.univar.py 2015-10-22 10:14:37 UTC (rev 66573)
+++ grass/trunk/temporal/t.vect.univar/t.vect.univar.py 2015-10-22 10:37:47 UTC (rev 66574)
@@ -25,6 +25,10 @@
#%option G_OPT_STVDS_INPUT
#%end
+#%option G_OPT_F_OUTPUT
+#% required: no
+#%end
+
#%option G_OPT_V_FIELD
#%end
@@ -72,6 +76,7 @@
# Get the options
input = options["input"]
+ output = options["output"]
twhere = options["twhere"]
layer = options["layer"]
type = options["type"]
@@ -84,8 +89,13 @@
# Make sure the temporal database exists
tgis.init()
+ if not output:
+ output = None
+ if output == "-":
+ output = None
+
tgis.print_vector_dataset_univar_statistics(
- input, twhere, layer, type, column, where, extended, header, separator)
+ input, output, twhere, layer, type, column, where, extended, header, separator)
if __name__ == "__main__":
options, flags = grass.parser()
More information about the grass-commit
mailing list