[GRASS-SVN] r32315 - grass-addons/raster/r.out.gmt2

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 26 15:48:31 EDT 2008


Author: hcho
Date: 2008-07-26 15:48:31 -0400 (Sat, 26 Jul 2008)
New Revision: 32315

Modified:
   grass-addons/raster/r.out.gmt2/r.out.gmt2
Log:
Added null option

Modified: grass-addons/raster/r.out.gmt2/r.out.gmt2
===================================================================
--- grass-addons/raster/r.out.gmt2/r.out.gmt2	2008-07-26 19:43:45 UTC (rev 32314)
+++ grass-addons/raster/r.out.gmt2/r.out.gmt2	2008-07-26 19:48:31 UTC (rev 32315)
@@ -51,6 +51,13 @@
 #% required: no
 #%end
 #%option
+#% key: null
+#% type: integer
+#% description: Value to write out for null
+#% required: no
+#% answer: -9999
+#%end
+#%option
 #% key: width
 #% type: string
 #% description: Map width (e.g., 7in, 18cm)
@@ -112,6 +119,8 @@
     output_base="$GIS_OPT_OUTPUT"
 fi
 
+null_value="$GIS_OPT_NULL"
+
 if [ -z "$GIS_OPT_TITLE" ]; then
     title="$output_base"
 else
@@ -161,7 +170,7 @@
     ;;
 esac
 
-r.out.bin -h input="$map_name" output="$output_grd"
+r.out.bin -h input="$map_name" output="$output_grd" null=$null_value
 if [ $? -ne 0 ]; then
     echo "ERROR: creating binary grd file" 1>&2
     cleanup



More information about the grass-commit mailing list