1PSROSE(1)                    Generic Mapping Tools                   PSROSE(1)
2
3
4

NAME

6       psrose  - Plot (length, azimuth) as windrose diagram or polar histogram
7       (sector or rose diagram).
8

SYNOPSIS

10       psrose file [ -Asector_width[r] ] [ -B[p|s]parameters ] [ -C[mode_file]
11       ] [ -D ] [ -Eazimuth/elevation ] [ -I ] [ -Gfill ] [ -H[i][nrec] ] [ -I
12       ] [ -K ] [ -L[wlabel/elabel/slabel/nlabel] ] [ -M[parameters ] [ -O ] [
13       -P   ]   [   -Rr0/r1/az_0/az_1  ]  [  -Sradial_scale[n]  ]  [  -T  ]  [
14       -U[just/dx/dy/][c|label] ] [ -V ] [ -Wpen ] [ -X[a|c|r][x-shift[u]] ] [
15       -Y[a|c|r][y-shift[u]]  ]  [  -Zscale  ]  [  -ccopies  ]  [  -:[i|o] ] [
16       -bi[s|S|d|D[ncol]|c[var1/...]] ]
17

DESCRIPTION

19       psrose reads (length,azimuth) pairs from file [or standard  input]  and
20       generates  PostScript  code that will plot a windrose diagram.  Option‐
21       ally (with -A), polar histograms may be drawn (sector diagram  or  rose
22       diagram).   Options  include  full  circle  and half circle plots.  The
23       PostScript code is written to standard output.
24
25       file   Name of ASCII [or binary, see -b] data  file.   If  no  file  is
26              given, psrose will read standard input.
27

OPTIONS

29       No space between the option flag and the associated arguments.
30
31       -A     Gives  the  sector width in degrees for sector and rose diagram.
32              [Default 0 means windrose diagram].  Append r to draw rose  dia‐
33              gram instead of sector diagram.
34
35       -B     Sets  map  boundary  annotation  and tickmark intervals; see the
36              psbasemap man page for all the details.  Remember that "x"  here
37              is  radial  distance and "y" is azimuth.  The ylabel may be used
38              to plot a figure caption.
39
40       -C     Plot vectors showing the principal directions given in the modes
41              file.  If no file is given, compute and plot mean direction.
42
43       -D     Shift  sectors  so  that  they  are centered on the bin interval
44              (e.g., first sector is centered on 0 degrees).
45
46       -E     Sets the viewpoint's azimuth and elevation [180/90]
47
48       -F     Do not draw the scale length bar [Default plots scale  in  lower
49              right corner]
50
51       -G     Selects shade, color or pattern for filling the sectors [Default
52              is no fill].  (See SPECIFYING FILL below).
53
54       -H     Input file(s) has header record(s).  If used, the default number
55              of  header records is N_HEADER_RECS.  Use -Hi if only input data
56              should have  header  records  [Default  will  write  out  header
57              records  if  the  input  data  have them]. Blank lines and lines
58              starting with # are always skipped.
59
60       -I     Inquire.  Computes statistics needed to specify useful  -R.   No
61              plot is generated.
62
63       -K     More  PostScript code will be appended later [Default terminates
64              the plot system].
65
66       -L     Specify labels for the 0, 90, 180, and 270  degree  marks.   For
67              full-circle  plot  the  default is WEST/EAST/SOUTH/NORTH and for
68              half-circle the default is 90W/90E/-/0.  A - in any  entry  dis‐
69              ables  that  label.  Use -L with no argument to disable all four
70              labels
71
72       -M     Specify   new   arrow   attributes    tailwidth/headlength/head‐
73              width/r/g/b  to  change  the appearance of arrows (Only if -C is
74              set).     [Default      is      0.075c/0.3c/0.25c/0/0/0      (or
75              0.03i/0.12i/0.1i/0/0/0)].
76
77       -O     Selects  Overlay  plot mode [Default initializes a new plot sys‐
78              tem].
79
80       -P     Selects Portrait plotting mode [Default is Landscape, see gmtde‐
81              faults to change this].
82
83       -R     Specifies  the 'region' of interest in (r,azimuth) space.  r0 is
84              0, r1 is max length in units.  For azimuth, specify  -90/90  for
85              half circle plot or 0/360 for full circle.
86
87       -S     Specifies  radius  of circle.  Append n to normalize input radii
88              to go from 0 to 1.
89
90       -T     Specifies that the input data is orientation  data  (has  a  180
91              degree  ambiguity)  instead  of  true  0-360  degree  directions
92              [Default].
93
94       -U     Draw Unix System time stamp on plot.  By adding just/dx/dy/, the
95              user  may  specify  the justification of the stamp and where the
96              stamp should fall on the page relative to lower left  corner  of
97              the  plot.  For example, BL/0/0 will align the lower left corner
98              of the time stamp with  the  lower  left  corner  of  the  plot.
99              Optionally,  append  a  label, or c (which will plot the command
100              string.).  The  GMT  parameters  UNIX_TIME,  UNIX_TIME_POS,  and
101              UNIX_TIME_FORMAT  can affect the appearance; see the gmtdefaults
102              man page for details.  The time string will be in the locale set
103              by the environment variable TZ (generally local time).
104
105       -V     Selects verbose mode, which will send progress reports to stderr
106              [Default runs "silently"].
107
108       -W     Set pen attributes for sector outline or rose plot.  [Default is
109              no outline].  (See SPECIFYING PENS below).
110
111       -X -Y  Shift  plot origin relative to the current origin by (x-shift,y-
112              shift) and optionally append the length unit (c, i, m, p).   You
113              can  prepend a to shift the origin back to the original position
114              after plotting, or prepend  r [Default]  to  reset  the  current
115              origin  to the new location.  If -O is used then the default (x-
116              shift,y-shift) is (0,0), otherwise it is (r1i, r1i)  or  (r2.5c,
117              r2.5c).  Alternatively, give c to align the center coordinate (x
118              or y) of the plot with the center of the page based  on  current
119              page size.
120
121       -Z     Multiply  the data radii by scale.  E.g., use -Z0.001 to convert
122              your data from m to km [Default is no scaling].
123
124       -:     Input file has (azimuth,radius) pairs rather than  the  expected
125              (radius,azimuth).
126
127       -bi    Selects binary input.  Append s for single precision [Default is
128              d  (double)].   Uppercase  S  or  D  will  force  byte-swapping.
129              Optionally,  append  ncol,  the number of columns in your binary
130              input file if it exceeds the columns needed by the program.   Or
131              append  c  if  the  input  file  is  netCDF.  Optionally, append
132              var1/var2/... to specify the variables to be read.  [Default  is
133              2 input columns].
134
135       -c     Specifies the number of plot copies. [Default is 1].
136
137   SPECIFYING PENS
138       pen    The attributes of lines and symbol outlines as defined by pen is
139              a comma delimetered list of width, color and  texture,  each  of
140              which is optional.  width can be indicated as a measure (points,
141              centimeters, inches) or as faint, thin[ner|nest], thick[er|est],
142              fat[ter|test],  or obese.  color specifies a gray shade or color
143              (see SPECIFYING COLOR  below).   texture  is  a  combination  of
144              dashes `-' and dots `.'.
145
146   SPECIFYING FILL
147       fill   The attribute fill specifies the solid shade or solid color (see
148              SPECIFYING COLOR below) or the pattern used  for  filling  poly‐
149              gons.   Patterns  are  specified  as pdpi/pattern, where pattern
150              gives the number of the built-in pattern (1-90) or the name of a
151              Sun  1-,  8-, or 24-bit raster file. The dpi sets the resolution
152              of the image. For 1-bit rasters: use  Pdpi/pattern  for  inverse
153              video,  or  append  :Fcolor[B[color]] to specify fore- and back‐
154              ground colors (use color = - for transparency).  See  GMT  Cook‐
155              book  &  Technical Reference Appendix E for information on indi‐
156              vidual patterns.
157
158   SPECIFYING COLOR
159       color  The color of lines, areas and patterns can  be  specified  by  a
160              valid  color  name;  by  a gray shade (in the range 0-255); by a
161              decimal color code (r/g/b, each in range  0-255;  h-s-v,  ranges
162              0-360,  0-1,  0-1; or c/m/y/k, each in range 0-1); or by a hexa‐
163              decimal color code (#rrggbb, as used in HTML).  See the  gmtcol‐
164              ors manpage for more information and a full list of color names.
165

EXAMPLES

167       To  plot  a half circle rose diagram of the data in the file fault_seg‐
168       ments.az_r (containing pairs of (azimuth, length in meters), using a 10
169       degree bin sector width, on a circle of radius = 3 inch, grid going out
170       to radius = 150 km in steps of 25 km with a 30 degree sector  interval,
171       radial direction annotated every 50 km, using a light blue shading out‐
172       lined by a solid red pen (width = 0.75 points), draw the mean  azimuth,
173       and shown in Portrait orientation, use:
174
175       psrose      fault_segments.az_r      -R0/150/-90/90      -B50g25:"Fault
176       length":/g30:."Rose  diagram":  -S3i  -A10r   -Glightblue   -W0.75p,red
177       -Z0.001 -C -P -T -: | lpr
178
179       To  plot  a  full  circle  wind  rose  diagram  of the data in the file
180       lines.r_az, on a circle of radius = 5 cm, grid going out  to  radius  =
181       500  units  in  steps  of 100 with a 45 degree sector interval, using a
182       solid pen (width = 0.5 point), and shown in landscape [Default]  orien‐
183       tation with UNIX timestamp and command line plotted, use:
184
185       psrose  lines.az_r  -R0/500/0/360  -S5c -Bg100/g45:."Windrose diagram":
186       -W0.5p -Uc | lpr
187

BUGS

189       No default radial scale and grid settings for polar  histograms.   User
190       must run psrose -I to find max length in binned data set.
191

SEE ALSO

193       GMT(1), gmtcolors(5), gmtdefaults(1), pshistogram(1)
194
195
196
197GMT 4.5.6                         10 Mar 2011                        PSROSE(1)
Impressum