[GRASS-SVN] r60943 - grass-addons/grass7/raster/r.valley.bottom

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 24 02:26:56 PDT 2014


Author: hellik
Date: 2014-06-24 02:26:56 -0700 (Tue, 24 Jun 2014)
New Revision: 60943

Modified:
   grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py
Log:
r.valley.bottom: remove intermediate maps

Modified: grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py
===================================================================
--- grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py	2014-06-24 08:20:29 UTC (rev 60942)
+++ grass-addons/grass7/raster/r.valley.bottom/r.valley.bottom.py	2014-06-24 09:26:56 UTC (rev 60943)
@@ -456,7 +456,7 @@
     grass.message( "----" )
 
 	# change resolution
-    grass.message( "Step 4: change to resolution to 3 x 3 step 3 resolution" )
+    grass.message( "Step 4: change to resolution to 3 x step 3 resolution" )
     grass.run_command('g.region', res = Xres_step4, 
                                     flags = 'a')
 
@@ -572,9 +572,35 @@
 	
     grass.message( "Step 4: Calculation of MRVBF4 done." )	
     grass.message( "----" )
+
+    # clean up some temporay files and maps
+    grass.message( "Some clean up ..." )	
+    grass.run_command('g.remove', region = "base_region_MrVBF", 
+                                     quiet = True)
+    grass.run_command('g.remove', rast = ["F1,F2,F3,F4"], 
+                                     quiet = True)
+    grass.run_command('g.remove', rast = ["CF2,CF3,CF4"], 
+                                     quiet = True)
+    grass.run_command('g.remove', rast = ["PCTL1,PCTL2,PCTL3,PCTL3_refined_base_resolution,PCTL4,PCTL4_refined_base_resolution"], 
+                                     quiet = True)									 
+    grass.run_command('g.remove', rast = ["PVF1,PVF2,PVF3,PVF4"], 
+                                     quiet = True)									 
+    grass.run_command('g.remove', rast = ["VF1,VF2,VF3,VF4"], 
+                                     quiet = True)
+    grass.run_command('g.remove', rast = ["W2,W3,W4"], 
+                                     quiet = True)									 
+    grass.run_command('g.remove', rast = ["r_slope_step1,r_slope_step3,r_slope_step4,r_slope_step4_refined_base_resolution"], 
+                                     quiet = True)	
+    grass.run_command('g.remove', rast = ["DEM_smoothed_step3,DEM_smoothed_step3_coarsed,DEM_smoothed_step4,DEM_smoothed_step4_coarsed"], 
+                                     quiet = True)	
+					 
+    grass.message( "Clean up done." )
+    grass.message( "----" )	
+
+    # v.habitat.dem done!	
+    grass.message( "r.valley.bottom done!" )		
 	
 	
-	
 if __name__ == "__main__":
     options, flags = grass.parser()
     sys.exit(main())



More information about the grass-commit mailing list