[GRASS-SVN] r44482 - grass-addons/postscript/ps.output/examples
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 29 07:46:56 EST 2010
Author: neteler
Date: 2010-11-29 04:46:56 -0800 (Mon, 29 Nov 2010)
New Revision: 44482
Added:
grass-addons/postscript/ps.output/examples/MAP_2raster.sh
grass-addons/postscript/ps.output/examples/MAP_cat.sh
grass-addons/postscript/ps.output/examples/MAP_raster.sh
Log:
extracted examples from PDF files
Added: grass-addons/postscript/ps.output/examples/MAP_2raster.sh
===================================================================
--- grass-addons/postscript/ps.output/examples/MAP_2raster.sh (rev 0)
+++ grass-addons/postscript/ps.output/examples/MAP_2raster.sh 2010-11-29 12:46:56 UTC (rev 44482)
@@ -0,0 +1,73 @@
+#!/bin/bash
+
+g.region rast=elevation −a
+
+ps.output out=MAP_2raster.ps << EOF
+paper A4
+ landscape y
+end
+
+maparea
+ height 12cm
+ border .8mm
+ color yellow
+end
+
+grid
+ major 20000
+ width .2mm
+ color blue
+ end
+ minor 5000
+ width .2mm
+ color blue
+ style 1
+ end
+ font
+ name Univers
+ size 6
+ extend 1.2
+ color black
+ end
+ fcolor black
+ format +out
+ trim 3
+end
+
+raster elevation.3d
+ maskcolor red
+ maskcell urban_mask elevation.3d
+end
+
+rlegend
+ raster elevation
+ cols 5 0
+ swidth 8mm
+ frame
+ where 100% 0%
+ ref right upper
+ offset 0 −10
+ margin 8
+ border 1
+ fcolor 220:220:220
+ color black
+ end
+ font
+ name Univers
+ size 8
+ color black
+ end
+end
+
+note :file ps_output_2raster
+ font
+ name Courier
+ size 6
+ end
+ frame
+ where 110% 110%
+ ref left upper
+ end
+end
+EOF
+
Property changes on: grass-addons/postscript/ps.output/examples/MAP_2raster.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Added: grass-addons/postscript/ps.output/examples/MAP_cat.sh
===================================================================
--- grass-addons/postscript/ps.output/examples/MAP_cat.sh (rev 0)
+++ grass-addons/postscript/ps.output/examples/MAP_cat.sh 2010-11-29 12:46:56 UTC (rev 44482)
@@ -0,0 +1,67 @@
+#!/bin/bash
+
+r.mask input=urban_mask_neg
+
+ps.output −d out=MAP_cat.ps << EOF
+palette
+ pure red yellow 7 color
+end
+
+paper A4
+ left 1cm
+ right 1cm
+ top 1cm
+ landscape n
+end
+
+maparea
+ top 3cm
+ border .8mm
+ color black
+end
+
+raster landclass96
+ grey n
+ maskcolor 116:66:20
+ maskcell urban_mask_neg lsat.543
+ outline
+ width 0.5
+ color black
+ end
+ setcolor 1 color0
+ setcolor 2 color1
+ setcolor 3 color2
+ setcolor 4 color3
+ setcolor 5 color4
+ setcolor 6 color5
+end
+
+rlegend
+ title Land Class 1996
+ name Univers Bold
+ size 12
+ extend 0.85
+ color black
+end
+
+raster landclass96
+ cols 1 0
+ frame
+ where 100% 100%
+ ref right upper
+ offset 0 0
+ border 2
+ color black
+ fcolor white
+ margin 8
+ end
+ font
+ name Univers
+ size 9
+ color black
+ end
+ width 8mm
+end
+EOF
+
+r.mask −r input=−
Property changes on: grass-addons/postscript/ps.output/examples/MAP_cat.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Added: grass-addons/postscript/ps.output/examples/MAP_raster.sh
===================================================================
--- grass-addons/postscript/ps.output/examples/MAP_raster.sh (rev 0)
+++ grass-addons/postscript/ps.output/examples/MAP_raster.sh 2010-11-29 12:46:56 UTC (rev 44482)
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+RASTER=zipcodes_wake
+
+g.region rast=$RASTER res=60 −a
+
+g.region n=n+1000 s=s−1000 w=w−1000 e=e+1000
+
+ps.out out=MAP_raster.ps << EOF
+paper A4
+ landscape n
+end
+
+maparea
+ height 12cm
+ border .8mm
+ color yellow
+end
+
+grid
+ major 20000
+ width .2mm
+ color blue
+ end
+ minor 5000
+ width .2mm
+ color blue
+ style 1
+ end
+ font
+ name Univers
+ size 6
+ extend 1.2
+ color black
+ end
+ fcolor black
+ format out
+ trim 3
+end
+
+raster $RASTER
+ gray n
+ maskcolor brown
+ maskcell $RASTER elev_state_500m
+ outline
+ width .2
+ color black
+ end
+ setcolor 25 black
+end
+
+rlegend
+ title .Zip Codes (wake)
+ name Univers−Bold
+ size 10
+ extend 1.5
+ color black
+ end
+ raster $RASTER
+ cols 5 0
+ swidth 8mm
+ order 20,10,30,22,34
+ frame
+ where 100% 0%
+ ref right upper
+ offset 0 −10
+ margin 8
+ border 1
+ fcolor 220:220:220
+ color black
+ end
+ font
+ name Univers
+ size 8
+ color black
+ end
+end
+
+note :file ps_output_raster
+ font
+ name Courier
+ size 6
+ end
+ frame
+ where 110% 110%
+ ref left upper
+ end
+end
+EOF
+
+ps2pdf14 MAP_raster.ps MAP_raster.pdf
+
Property changes on: grass-addons/postscript/ps.output/examples/MAP_raster.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list