[GRASS-user] Newbie Q - how do I use addons?
Vaclav Petras
wenzeslaus at gmail.com
Thu Jun 12 07:34:33 PDT 2014
On Thu, Jun 12, 2014 at 9:16 AM, Isabel Sargent <
Isabel.Sargent at ordnancesurvey.co.uk> wrote:
> Thank you for such a prompt response. I had read through the manual
> pages online (though I couldn’t get the man command to work, perhaps
> because I’m using windows?). Those last 4 required fields have defaults, so
> in my question I was assuming that I didn’t need to explicitly set them.
> Even if I do set them I get the error requiring an output. I don’t think
> this in itself is a r.geomorphon issue, there is probably a standard way of
> defining an output (neither | or > work). I’m sure there must be examples
> on how to do this somewhere, I just can’t find them.
>
>
>
r.geomorphon should work on MS Windows.
In manual page (
http://grass.osgeo.org/grass70/manuals/addons/r.geomorphon.html) I can see
5 required parameters (options):
*dem*=*name* *[required]*Input dem*search*=*integer* *[required]*Outer
search radiusDefault: *3**skip*=*integer* *[required]* Inner search
radiusDefault:
*0**flat*=*float* *[required]*Flatenss treshold (degrees)Default: *1**dist*=
*float* *[required]* Flatenss distance, zero for noneDefault: *0*Four have
default but *dem* does not. This is the elevation raster map, your input.
You should also specify output, this is option *forms*, this will be the
name of newly created raster map containing identified forms. This is what
the message *'ERROR: At least one output is required'* was telling you, it
wanted you to specify one of the outputs. (The interface does not follow
GRASS naming conventions, that's one of the reasons why it is an addon.
This might be improved in the future.)
Note that to get really nice output from r.geomorphon you have to play with
the parameters such as search, skip, flat and dist a little bit.
| and > are linux/unix command line features which allows you to direct
standard input and output of the programs. This is applicable to some of
the GRASS modules but most of them outputs "grass maps" (raster or vector)
and there are specified by setting certain options to a name of the raster
map. This is what manual page will tell you.
> Am I right in expecting to be able to find installed addons use the GUI?
> If so, where will I find them? If not, how do I define an output at the
> command prompt?
>
>
Yes and no. They are not in menu (to keep it short) but installed addons
are in the module tree in Search modules tab (3rd tab by default in layer
manager). You have to restart GRASS (or just GUI if you use command line
and know g.gui command) to get the updated list.
You can always type r.geomorphon to Command console in GUI and you will get
the dialog to fill parameters (including inputs and outputs) for
r.geomorphon. This works for every command, form addons or standard one.
Let us know if you have any further problems.
Vaclav
>
>
> Izzy
>
>
>
> *From:* Micha Silver [mailto:micha at arava.co.il]
> *Sent:* 12 June 2014 13:56
> *To:* Isabel Sargent; grass-user at lists.osgeo.org
> *Subject:* Re: [GRASS-user] Newbie Q - how do I use addons?
>
>
>
> On 12/06/2014 15:20, Isabel Sargent wrote:
>
> Sorry, the answer to my question must be somewhere but I have been searching for 90 minutes and have found nothing, please humour me.
>
>
>
> I GRASS 7.0.0BETA2 installed on Windows 7. All looks fine. I have installed the r.geomorphon addon without any errors and have checked in the installed extensions manager that it appears to be installed. My problem is, what now?
>
>
>
> I can't find r.geomorphon in any of the lists in the gui. If I use command line, I cannot work out how to tell GRASS where to put the output (do I have to pipe somewhere? How should I do this?). Command line is not happy with simply 'r.geomorphon dem=<name>' => 'ERROR: At least one output is required'
>
> I'm not familiar with the addon, but typing "r.geomorphon help " in the
> command line gives a brief help message. And "man r.geomorphon" opens the
> whole manual page.
> The required parameters are "dem" (input) and "search", "skip", "flat" and
> "dist" (numeric parameters).
>
>
>
>
> Please just point me to some examples and I'll stop being so annoying!
>
>
>
> Izzy
>
>
>
> _______________________________________________
>
> grass-user mailing list
>
> grass-user at lists.osgeo.org
>
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
>
> This mail was received via Mail-SeCure System.
>
>
>
>
>
>
>
>
> --
>
> Micha Silver
>
> GIS Consulting
>
> 052-3665918
>
> http://www.surfaces.co.il
>
> This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.
>
> Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.
>
> Thank you for your cooperation.
>
> Ordnance Survey
> Adanac Drive
> Southampton SO16 0AS
> Tel: 08456 050505http://www.ordnancesurvey.co.uk
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140612/2feaf391/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grass_gis_lmgr_with_addon_.png
Type: image/png
Size: 47125 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140612/2feaf391/attachment-0001.png>
More information about the grass-user
mailing list