Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 413e0bdb3c48563b2d8d9038d07d5533 > files > 1527

grass-6.3.0-15.fc13.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS: d.rast.arrow</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<h2>NAME</h2>
<em><b>d.rast.arrow</b></em>  - Draws arrows representing cell aspect direction for a raster map containing aspect data.
<h2>KEYWORDS</h2>
display
<h2>SYNOPSIS</h2>
<b>d.rast.arrow</b><br>
<b>d.rast.arrow help</b><br>
<b>d.rast.arrow</b>  [<b>map</b>=<em>string</em>]   [<b>type</b>=<em>string</em>]   [<b>arrow_color</b>=<em>string</em>]   [<b>grid_color</b>=<em>string</em>]   [<b>x_color</b>=<em>string</em>]   [<b>unknown_color</b>=<em>string</em>]   [<b>skip</b>=<em>integer</em>]   [<b>magnitude_map</b>=<em>string</em>]   [<b>scale</b>=<em>float</em>]   [--<b>verbose</b>]  [--<b>quiet</b>] 


<h3>Parameters:</h3>
<DL>
<DT><b>map</b>=<em>string</em></DT>
<DD>Name of raster aspect map to be displayed</DD>

<DT><b>type</b>=<em>string</em></DT>
<DD>Type of existing raster aspect map</DD>
<DD>Options: <em>grass,compass,agnps,answers</em></DD>
<DD>Default: <em>grass</em></DD>

<DT><b>arrow_color</b>=<em>string</em></DT>
<DD>Color for drawing arrows</DD>
<DD>Options: <em>red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,magenta,aqua,grey,cyan,purple</em></DD>
<DD>Default: <em>green</em></DD>

<DT><b>grid_color</b>=<em>string</em></DT>
<DD>Color for drawing grid or "none"</DD>
<DD>Options: <em>red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,magenta,aqua,grey,cyan,purple,none</em></DD>
<DD>Default: <em>gray</em></DD>

<DT><b>x_color</b>=<em>string</em></DT>
<DD>Color for drawing X's (Null values)</DD>
<DD>Options: <em>red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,magenta,aqua,grey,cyan,purple</em></DD>
<DD>Default: <em>black</em></DD>

<DT><b>unknown_color</b>=<em>string</em></DT>
<DD>Color for showing unknown information</DD>
<DD>Options: <em>red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,magenta,aqua,grey,cyan,purple</em></DD>
<DD>Default: <em>red</em></DD>

<DT><b>skip</b>=<em>integer</em></DT>
<DD>Draw arrow every Nth grid cell</DD>
<DD>Default: <em>1</em></DD>

<DT><b>magnitude_map</b>=<em>string</em></DT>
<DD>Raster map containing values used for arrow length</DD>

<DT><b>scale</b>=<em>float</em></DT>
<DD>Scale factor for arrows (magnitude map)</DD>
<DD>Default: <em>1.0</em></DD>

</DL>
<H2>DESCRIPTION</H2>

<EM>d.rast.arrow</EM>
is designed to help users better visualize surface water flow direction,
as indicated in an aspect raster map layer.  There are two ways to specify
the aspect layer the program is to use.  The first is to display the aspect
map layer on the graphics monitor before running <EM>d.rast.arrow</EM>.
The second method involves setting the <EM>map</EM> parameter
to the name of the desired aspect map.
This allows the arrows to be drawn over any other maps already displayed
on the graphics monitor.
<P>

<EM>d.rast.arrow</EM> will draw an arrow over each displayed cell
to indicate in which direction the cell slopes. If the aspect
layer has a category value denoting locations of "unknown" aspect,
<EM>d.rast.arrow</EM> draws a question mark over the displayed cells
of that category.
Cells containing null data will be marked with an "X".
<p>
If you specify the <em>magnitude_map</em> option, arrow lengths 
denoting magnitude will be extracted from the cell values of the specified 
map. In this case the tail of the arrow will be centered on the source cell.
You may adjust the overall scale using the <em>scale</em> option.
<em>d.rast.arrow</em> will ignore NULL and negative magnitudes, and will
warn you if the debug level is set at 5 or higher. Be aware. If your application
uses negative values for magnitude, you can use <em>r.mapcalc</em> to prepare
the magnitude map to suit your needs (absolute value, inverted direction and 
so on). 

<p>
<H2>NOTES</H2>
By default, arrows are drawn at the size of a cell and cannot be seen if 
the raster map is relatively close in scale. You can use the <em>skip</em> 
option to draw arrows every n-th cell in both directions if you are working 
with relatively high resolutions. It may be useful to disable the grid in
this case, which is accomplished by setting its color to "<tt>none</tt>".
<P>
For GRASS and Compass type aspect maps, the cell values of the aspect map
will determine the corresponding direction in 360 degrees. ANSWERS type
aspect maps will be plotted in multiples of 15 degrees, and AGNPS type
aspect maps will be displayed in D8 representation, i.e. the eight multiples 
of 45 degrees.
<P>
GRASS aspect maps are measured using Cartesian conventions, i.e. in degrees 
counterclockwise from east. e.g.:
<UL>
<pre>
90  North
180 West
270 South
0,360 East</pre>
</UL>
<P>
They can be created from a raster elevation map with <em>r.slope.aspect</em>.
<P>
Compass type aspect maps are measured in degrees clockwise from north.
<P>
This module uses oceanographic conventions, i.e. arrows point downslope or 
direction "to", as opposed to atmospheric conventions (direction "from").


<H2>EXAMPLE</H2>

Convert U,V velocity component maps into magnitide,direction maps for use 
with <em>d.rast.arrow</em>:
<pre>
  r.mapcalc 'magnitude = sqrt(U_map^2 + V_map^2)'
  r.mapcalc 'direction = atan(U_map, V_map)'
  d.rast.arrow map=direction type=grass magnitude_map=magnitude skip=3 grid=none
</pre>
<BR>

<H2>SEE ALSO</H2>

<EM><A HREF="d.frame.html">d.frame</A></EM><BR>
<EM><A HREF="d.rast.html">d.rast</A></EM><BR>
<EM><A HREF="d.rast.edit.html">d.rast.edit</A></EM><BR>
<EM><A HREF="d.rast.num.html">d.rast.num</A></EM><BR>
<EM><A HREF="g.region.html">g.region</A></EM><BR>
<EM><A HREF="r.slope.aspect.html">r.slope.aspect</A></EM><BR>
<BR>

<H2>AUTHORS</H2>

<u>Original author</u><BR>
Chris Rewerts<BR>
<em>Agricultural Engineering,<BR>
Purdue University</em><BR><BR>
<u>Magnitude and 360 arrow code</u><BR>
Hamish Bowman<BR>
<em>Department of Marine Science, <BR>
University of Otago, New Zealand</em>

<p><i>Last changed: $Date: 2005-10-18 06:58:58 +0200 (Tue, 18 Oct 2005) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="display.html">display index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>