[GRASS-SVN] r50557 - grass-addons/grass6/raster/r.denoise
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 30 08:54:43 EST 2012
Author: amuriy
Date: 2012-01-30 05:54:43 -0800 (Mon, 30 Jan 2012)
New Revision: 50557
Modified:
grass-addons/grass6/raster/r.denoise/r.denoise
Log:
r.denoise minor edits
Modified: grass-addons/grass6/raster/r.denoise/r.denoise
===================================================================
--- grass-addons/grass6/raster/r.denoise/r.denoise 2012-01-30 13:05:37 UTC (rev 50556)
+++ grass-addons/grass6/raster/r.denoise/r.denoise 2012-01-30 13:54:43 UTC (rev 50557)
@@ -21,6 +21,8 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
+# MINOR FIXES: Alexander Muriy (amuriy AT gmail DOT com), 01.2012
+#
#############################################################################/
#%Module
@@ -155,13 +157,13 @@
# As only the z coordinates have changed in denoising, to prevent rounding
# errors, the new z coordinates are combined with the original xy coordinates.
-cat "$temp".xyz | awk '{print $1" "$2}' > "$temp".xy
+cat "$temp".xyz | awk '{print $1,$2}' > "$temp".xy
cat "$temp".DN.xyz | awk '{print $3}' > "$temp".DN.z
-paste -d " " "$temp".xy "$temp".DN.z > "$temp".DN.xyz
+paste -d' ' "$temp".xy "$temp".DN.z > "$temp".DN.xyz
# Reload data
g.message "Reloading data..."
-r.in.xyz "$temp".DN.xyz output="$OUTPUT" fs=space x=1 y=2 z=3 --q
+r.in.xyz -i "$temp".DN.xyz output="$OUTPUT" fs=space x=1 y=2 z=3 --q
# Edit metadata to record denoising parameters
r.support "$OUTPUT" title="A denoised version of <$INPUT>" history=""
More information about the grass-commit
mailing list