[GRASS-SVN] r40158 - grass-addons/raster/r.out.gmt

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 28 11:53:21 EST 2009


Author: hamish
Date: 2009-12-28 11:53:20 -0500 (Mon, 28 Dec 2009)
New Revision: 40158

Modified:
   grass-addons/raster/r.out.gmt/r.out.gmt
Log:
more suggested GMT command cleanup, rename grid type to 2 letter version

Modified: grass-addons/raster/r.out.gmt/r.out.gmt
===================================================================
--- grass-addons/raster/r.out.gmt/r.out.gmt	2009-12-28 16:32:35 UTC (rev 40157)
+++ grass-addons/raster/r.out.gmt/r.out.gmt	2009-12-28 16:53:20 UTC (rev 40158)
@@ -113,11 +113,11 @@
 
 case "$MAP_TYPE" in
     CELL)
-	MAP_TAG="=2" ;;
+	MAP_TAG="=bs" ;;
     FCELL)
-	MAP_TAG="=1" ;;
+	MAP_TAG="=bf" ;;
     DCELL)
-	MAP_TAG="=1"
+	MAP_TAG="=bf"
 	echo "WARNING: Converting from double precision to floating point map" 1>&2
 	r.mapcalc "tmp_gmt_$$=float($MAP_NAME)"
 	MAP_NAME=tmp_gmt_$$
@@ -235,14 +235,17 @@
     echo "==================================================" 1>&2
     echo 1>&2
     # setup basemap
-    echo "psbasemap -J$projection_string -R${w}/${e}/${s}/${n} \\
+    echo "psbasemap -J$projection_string \\
+   -R${w}/${e}/${s}/${n} \\
    -Bpf${tic_interval}a${annotated_tic_interval}:\"Easting (m)\":/f${tic_interval}a${annotated_tic_interval}:\"Northing (m)\"::.\"$OUT_BASE\":WeSn \\
-   -X$x_offset -Y$y_offset -U\"scale $map_comment\" \\
-   --D_FORMAT='%.15g' -K -V > $OUTPUT_PS"
+   -X$x_offset -Y$y_offset \\
+   -U\"scale $map_comment\" \\
+   --D_FORMAT='%.15g' \\
+   -K -V > $OUTPUT_PS"
 
     echo 1>&2
     # render the grid with the translated color palette
-    # note that we append a =2 after the grd filename- this instructs GMT to read it as an INT GRD
+    # note that we append a =bs after the grd filename- this instructs GMT to read it as an INT GRD
     # -J inherit the projection information from previous declaration
     # -R inherit the region information from previous declaration (important when regions of grd files do not match!!)
     # -K allows for further PS additions later ("K"eeps PostScript file open)



More information about the grass-commit mailing list