table of contents
other versions
- wheezy 6.4.2-2
- jessie 6.4.4-1
- testing 7.2.0-2
- unstable 7.2.0-2
- experimental 7.2.1-1~exp1
d.profile(1grass) | Grass User's Manual | d.profile(1grass) |
NAME¶
d.profile - Interactive profile plotting utility with optional output.KEYWORDS¶
display, raster, profileSYNOPSIS¶
d.profileParameters:¶
- rast=string
-
- drast=string
-
- plotfile=string
-
DESCRIPTION¶
This command works only interactively. It clears the entire graphics screen and provides a graphical interaction allowing the selection of transects for which profiles are then generated. Input parameters can be specified on the command line for quicker start-up.USER PROMPTS¶
First, you will be presented with a prompt asking you to choose a raster map layer to be profiled. Then you will be prompted for an optional display raster. The optional display raster will be shown rather than the profiled raster. This is useful to be able to more easily see ground features, such as might be visible in an aerial photo or satellite image. Finally, you will be prompted for the name prefix for output file(s) containing the profile data. This is an optional feature. After parameters are given, the raster layer will be displayed in the left half of the graphics monitor, and the right half will be divided into four frames. There will also be two frames along the top of the monitor: a mouse-button menu frame on the left, and a status frame on the right. The mouse-button menu initially offers you three options: Mouse Buttons:NOTES¶
You might notice the first two 'dist' values in the profile output above are both zero. This is due to the fact the cell resolution for this file is less than one meter, and so the function that calculates the distance considers the distance between the first cell and the second to be zero. You might also notice, the coordinates given in the header and displayed on screen are slightly different from the first and last coordinates given in the profile data output. This is because the profile data output finds the eastings and northings for the center of the cells while the coordinate transformations from mouse clicks might yield slightly different coordinates which still fall within the same cell boundaries. The difference should always be less than the distance between the center and any corner (not edge!) of the cell at the resolution of the profiled raster. Only four output plotfiles can be made. Each time a new profile is run, the plotfile is immediately written to the file name.letter. One can take advantage of this fact to create an unlimited number of plotfiles simply by renaming the output files before running more profiles. This may not always be the case, but it is at the time of this writing. Useful enhancements to d.profile would include: Adding an option to display profiles using category colors, like a bar-chart. Allowing profile lines to be defined by a series of points, not just two. Allowing profiles to be saved in a file, for later viewing by GRASS. Allowing the user to enter profile line points by typing coordinates.Perl Script to convert output to a site_list¶
The script below will convert the plotfile output to the site_list format. It probably won't work 100% for lat/lon datasets. #! /usr/bin/perl -wBUGS¶
None known.AUTHOR¶
Dave JohnsonDBA Systems, Inc. 10560 Arrowhead Drive
GRASS 6.4.2 |