[GRASS-SVN] r66881 - in grass-addons/grass7/raster: r.local.relief r.shaded.pca r.skyview

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 20 13:03:55 PST 2015


Author: wenzeslaus
Date: 2015-11-20 13:03:55 -0800 (Fri, 20 Nov 2015)
New Revision: 66881

Modified:
   grass-addons/grass7/raster/r.local.relief/r.local.relief.py
   grass-addons/grass7/raster/r.shaded.pca/r.shaded.pca.py
   grass-addons/grass7/raster/r.skyview/r.skyview.py
Log:
write raster history in relief processing modules

Modified: grass-addons/grass7/raster/r.local.relief/r.local.relief.py
===================================================================
--- grass-addons/grass7/raster/r.local.relief/r.local.relief.py	2015-11-20 21:02:41 UTC (rev 66880)
+++ grass-addons/grass7/raster/r.local.relief/r.local.relief.py	2015-11-20 21:03:55 UTC (rev 66881)
@@ -282,6 +282,8 @@
                                              b=purged_elevation,
                                              overwrite=gcore.overwrite()))
 
+    gscript.raster_history(local_relief_output)
+
     # set color tables
     if save_intermediates:
         # same color table as input
@@ -319,6 +321,7 @@
             gscript.run_command('r.colors', flags=rcolors_flags,
                                 map=local_relief_output,
                                 color=color_table, quiet=True)
+        gscript.raster_history(shaded_local_relief_output)
     else:
         if not user_color_table:
             color_table = 'grey'

Modified: grass-addons/grass7/raster/r.shaded.pca/r.shaded.pca.py
===================================================================
--- grass-addons/grass7/raster/r.shaded.pca/r.shaded.pca.py	2015-11-20 21:02:41 UTC (rev 66880)
+++ grass-addons/grass7/raster/r.shaded.pca/r.shaded.pca.py	2015-11-20 21:03:55 UTC (rev 66881)
@@ -253,6 +253,7 @@
                       blue=pca_maps[2],
                       output=pca_shade_output,
                       overwrite=core.overwrite(), quiet=True)
+    grass.raster_history(pca_shade_output)
 
     if pca_basename_user:
         set_color_table(pca_maps, map_=shade_maps[0])

Modified: grass-addons/grass7/raster/r.skyview/r.skyview.py
===================================================================
--- grass-addons/grass7/raster/r.skyview/r.skyview.py	2015-11-20 21:02:41 UTC (rev 66880)
+++ grass-addons/grass7/raster/r.skyview/r.skyview.py	2015-11-20 21:03:55 UTC (rev 66881)
@@ -197,6 +197,8 @@
                               flags=rcolors_flags)
         gcore.run_command('r.shade', shade=output, color=color_raster_tmp,
                           output=colorized_output)
+        grast.raster_history(colorized_output)
+    grast.raster_history(output)
     return 0
 
 



More information about the grass-commit mailing list