[GRASS-SVN] r64429 - grass-addons/grass7/raster/r.fidimo
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 3 08:01:24 PST 2015
Author: jradinger
Date: 2015-02-03 08:01:24 -0800 (Tue, 03 Feb 2015)
New Revision: 64429
Modified:
grass-addons/grass7/raster/r.fidimo/r.fidimo.py
Log:
Manual remove of temporary files of raster arrays
Modified: grass-addons/grass7/raster/r.fidimo/r.fidimo.py
===================================================================
--- grass-addons/grass7/raster/r.fidimo/r.fidimo.py 2015-02-03 15:50:56 UTC (rev 64428)
+++ grass-addons/grass7/raster/r.fidimo/r.fidimo.py 2015-02-03 16:01:24 UTC (rev 64429)
@@ -798,6 +798,11 @@
Density[...] = cdf(x2) - cdf(x1)
grass.debug(_("Write density from point to garray. unmasked"))
Density.write("density_from_point_unmasked_tmp_%d" % os.getpid())
+
+ #remove temporary arrays
+ grass.try_remove(x1.filename)
+ grass.try_remove(x2.filename)
+ grass.try_remove(Density.filename)
# Mask density output because Density.write doesn't provide nulls()
grass.mapcalc("$density_from_point = if($distance_from_point>=0, $density_from_point_unmasked, null())",
@@ -1007,6 +1012,10 @@
RealisedDensity.write("realised_density_"+str(cat))
+ #remove temporary arrays
+ grass.try_remove(CorrectedDensity.filename)
+ grass.try_remove(RealisedDensity.filename)
+
grass.run_command("r.null", map="realised_density_"+str(cat), null="0")
# Get a list of all realised densities processed so far within this segement
More information about the grass-commit
mailing list