[GRASS-SVN] r62267 - grass-addons/grass7/raster/r.gradient
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 16 02:09:33 PDT 2014
Author: lucadelu
Date: 2014-10-16 02:09:33 -0700 (Thu, 16 Oct 2014)
New Revision: 62267
Modified:
grass-addons/grass7/raster/r.gradient/r.gradient.py
Log:
r.gradient: fixed missing parameter for oblique gradient
Modified: grass-addons/grass7/raster/r.gradient/r.gradient.py
===================================================================
--- grass-addons/grass7/raster/r.gradient/r.gradient.py 2014-10-16 08:30:55 UTC (rev 62266)
+++ grass-addons/grass7/raster/r.gradient/r.gradient.py 2014-10-16 09:09:33 UTC (rev 62267)
@@ -109,6 +109,7 @@
values = options['range'].split(',')
NewMin = values[0].strip()
NewMax = values[1].strip()
+ percentile = options['percentile']
direction = options['direction']
# And now we can calculate the graded rasters
@@ -134,14 +135,12 @@
newmap=output, NewMin=NewMax, NewMax=NewMin, OldMin=1,
OldMax=regiondict["cols"], overwrite=True)
elif direction == 'NW-SE':
- mat = calculateOblique(regiondict, NewMin, NewMax)
+ mat = calculateOblique(regiondict, NewMin, NewMax, percentile)
createRast(output, mat)
elif direction == 'NE-SW':
- mat = calculateOblique(regiondict, NewMin, NewMax)
+ mat = calculateOblique(regiondict, NewMin, NewMax, percentile)
createRast(output, mat, True)
-
-
if __name__ == "__main__":
options, flags = grass.parser()
sys.exit(main())
More information about the grass-commit
mailing list