-
Notifications
You must be signed in to change notification settings - Fork 185
r.surf.volcano: port from grass6 addons shell script #1202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HamishB
wants to merge
6
commits into
OSGeo:grass8
Choose a base branch
from
HamishB:rsvolc_port_from_g6a
base: grass8
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2eab8be
r.surf.volcano: copy from grass6 addons
HamishB 54ae680
r.surf.volcano: port from grass6 addons shell script
HamishB f56dd56
Merge remote-tracking branch 'upstream/grass8' into rsvolc_port_from_g6a
HamishB 47c8599
Update src/raster/r.surf.volcano/r.surf.volcano.html
HamishB cb5cf45
r.surf.volcano: redo man page examples, add screenshots
HamishB 03a34bf
r.surf.volcano: add test script
HamishB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| MODULE_TOPDIR = ../.. | ||
|
|
||
| PGM = r.surf.volcano | ||
|
|
||
| include $(MODULE_TOPDIR)/include/Make/Script.make | ||
|
|
||
| default: script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| <h2>DESCRIPTION</h2> | ||
|
|
||
|
|
||
| <em>r.surf.volcano</em> creates an artificial surface resembling a seamount | ||
| or cone volcano. The user can alter the size and shape of the mountain and | ||
| optionally roughen its surface. | ||
|
|
||
|
|
||
| <h2>NOTES</h2> | ||
|
|
||
| The friction of distance controls the shape of the mountain when using | ||
| the default polynomial method. Higher values generate steeper slopes. | ||
| <p> | ||
| The <i>pseudo</i>-<b>kurtosis</b> factor is used with all other methods | ||
| to control the slope steepness. For the Gaussian method setting the value | ||
| nearer to zero creates a flatter surface, while higher values generate | ||
| steeper slopes. For Lorentzian, logarithmic, and exponential methods the | ||
| opposite is true. | ||
| <p> | ||
| The surface roughness factor controls the fixed standard deviation | ||
| distance (<b>sigma</b>) used in the Gaussian random number generator. | ||
| It is only used when the <b>-r</b> roughen surface flag is turned on. | ||
| A value closer to zero makes a smoother surface, a higher value makes | ||
| a rougher surface. | ||
| <p> | ||
| It is possible to set a negative value for the <b>peak</b> in order | ||
| to create a pit. | ||
|
|
||
|
|
||
| <h2>EXAMPLES</h2> | ||
|
|
||
| <div class="code"><pre> | ||
| r.surf.volcano -r output=seamount | ||
|
|
||
| # view in the display monitor | ||
| r.colors seamount color=sepia -e | ||
| d.rast seamount | ||
|
|
||
| # export to Matlab | ||
| r.out.mat in=seamount out=seamount.mat | ||
|
|
||
| # integrate into existing DEM | ||
| r.mapcalc "seamount_dem = if(seamount > dem, seamount, dem)" | ||
| r.colors seamount_dem color=srtm | ||
| </pre></div> | ||
|
|
||
|
|
||
| Create a roughened volcano with a crater: | ||
| <div class="code"><pre> | ||
| r.surf.volcano -r output=volcano crater=250 --verbose | ||
| r.relief in=volcano out=volcano.shade | ||
| </pre></div> | ||
|
|
||
| Create a fancy 3D scene: | ||
| <div class="code"><pre> | ||
| r.surf.volcano -r output=base_volcano peak=600 crater=120 | ||
| r.surf.fractal output=base_fractal | ||
| r.mapcalc "artificial_land = base_volcano*10 + base_fractal" | ||
| r.colors artificial_land color=srtm | ||
| <!-- nviz artificial_land --> | ||
| </pre></div> | ||
|
|
||
|
|
||
| <h2>SEE ALSO</h2> | ||
|
|
||
| <em> | ||
| <a href="r.surf.fractal.html">r.surf.fractal</a><br> | ||
| <a href="r.surf.gauss.html">r.surf.gauss</a><br> | ||
| <a href="r.surf.random.html">r.surf.random</a> | ||
| </em> | ||
|
|
||
| <h2>AUTHOR</h2> | ||
|
|
||
| Hamish Bowman<br> | ||
| <i>Dept. of Geology<br> | ||
| University of Otago<br> | ||
| Dunedin, New Zealand</i> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.