[GRASS-SVN] r56072 - in grass/trunk: lib/python/temporal temporal/t.merge
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 2 01:17:57 PDT 2013
Author: huhabla
Date: 2013-05-02 01:17:56 -0700 (Thu, 02 May 2013)
New Revision: 56072
Modified:
grass/trunk/lib/python/temporal/metadata.py
grass/trunk/temporal/t.merge/test.t.merge.sh
Log:
Better STDS info layout.
Modified: grass/trunk/lib/python/temporal/metadata.py
===================================================================
--- grass/trunk/lib/python/temporal/metadata.py 2013-05-02 05:18:45 UTC (rev 56071)
+++ grass/trunk/lib/python/temporal/metadata.py 2013-05-02 08:17:56 UTC (rev 56072)
@@ -979,11 +979,12 @@
# 0123456789012345678901234567890
print " | Number of registered maps:.. " + str(
self.get_number_of_maps())
+ print " |"
print " | Title:"
print " | " + str(self.get_title())
print " | Description:"
print " | " + str(self.get_description())
- print " | Commands of creation:"
+ print " | Command history:"
command = self.get_command()
if command:
for token in command.split("\n"):
@@ -1159,7 +1160,6 @@
def print_info(self):
"""!Print information about this class in human readable style"""
- STDSMetadataBase.print_info(self)
# 0123456789012345678901234567890
print " | North-South resolution min:. " + str(self.get_nsres_min())
print " | North-South resolution max:. " + str(self.get_nsres_max())
@@ -1169,6 +1169,7 @@
print " | Minimum value max:.......... " + str(self.get_min_max())
print " | Maximum value min:.......... " + str(self.get_max_min())
print " | Maximum value max:.......... " + str(self.get_max_max())
+ STDSMetadataBase.print_info(self)
def print_shell_info(self):
"""!Print information about this class in shell style"""
@@ -1276,9 +1277,9 @@
"""!Print information about this class in human readable style"""
print " +-------------------- Metadata information ----------------------------------+"
# 0123456789012345678901234567890
- STDSRasterMetadataBase.print_info(self)
print " | Raster register table:...... " + str(
self.get_raster_register())
+ STDSRasterMetadataBase.print_info(self)
def print_shell_info(self):
"""!Print information about this class in shell style"""
@@ -1409,12 +1410,12 @@
"""!Print information about this class in human readable style"""
print " +-------------------- Metadata information ----------------------------------+"
# 0123456789012345678901234567890
- STDSRasterMetadataBase.print_info(self)
# 0123456789012345678901234567890
+ print " | 3D raster register table:... " + str(
+ self.get_raster3d_register())
print " | Top-bottom resolution min:.. " + str(self.get_ewres_min())
print " | Top-bottom resolution max:.. " + str(self.get_ewres_max())
- print " | 3D raster register table:... " + str(
- self.get_raster3d_register())
+ STDSRasterMetadataBase.print_info(self)
def print_shell_info(self):
"""!Print information about this class in shell style"""
@@ -1673,7 +1674,6 @@
"""!Print information about this class in human readable style"""
print " +-------------------- Metadata information ----------------------------------+"
# 0123456789012345678901234567890
- STDSMetadataBase.print_info(self)
print " | Vector register table:...... " + str(
self.get_vector_register())
print " | Number of points ........... " + str(self.number_of_points)
@@ -1688,6 +1688,7 @@
print " | Number of islands .......... " + str(self.number_of_islands)
print " | Number of holes ............ " + str(self.number_of_holes)
print " | Number of volumes .......... " + str(self.number_of_volumes)
+ STDSMetadataBase.print_info(self)
def print_shell_info(self):
"""!Print information about this class in shell style"""
Modified: grass/trunk/temporal/t.merge/test.t.merge.sh
===================================================================
--- grass/trunk/temporal/t.merge/test.t.merge.sh 2013-05-02 05:18:45 UTC (rev 56071)
+++ grass/trunk/temporal/t.merge/test.t.merge.sh 2013-05-02 08:17:56 UTC (rev 56072)
@@ -38,11 +38,11 @@
t.rast.list precip_abs4
t.unregister type=rast maps=prec_1,prec_2,prec_3 input=precip_abs4
-t.merge inputs=precip_abs1,precip_abs2,precip_abs3 output=precip_abs4
+t.merge --o inputs=precip_abs1,precip_abs2,precip_abs3 output=precip_abs4
t.info precip_abs4
t.rast.list precip_abs4
-t.merge inputs=precip_abs1,precip_abs2,precip_abs3,precip_abs4 output=precip_abs4
+t.merge --o inputs=precip_abs1,precip_abs2,precip_abs3,precip_abs4 output=precip_abs4
t.info precip_abs4
t.rast.list precip_abs4
More information about the grass-commit
mailing list