[GRASS-dev] r.profile interface changes

Hamish hamish_b at yahoo.com
Fri Feb 14 17:27:18 PST 2014


Vaclav wrote:

> Hamish and I did some changes in r.profile. X monitors-related parts
> of documentation removed, standard options introduced and most
> notably, Hamish added `coordinate_file` option to enable file input
> and make clear end checkable when standard input is used.
> 
> I'm just unsure about names `coordinate_file` and `profile`.
> Predefined name for G_OPT_M_COORDS standard option is `coordinates`,
> so it will be good if `profile` would be renamed to `coordinates`. It
> would also improve r.profile call syntax from my point of view:
>
> - r.profile input=... profile= 
> +r.profile input=... coordinates= 
> 
> Moreover, profile is the output of r.profile, not the input. So,
> do you agree with rename of `profile` to `coordinates`?

sure, done in svn.


> I'm not sure about `coordinate_file` versus `coordinates_file`.
> What is more correct English here?

I renamed it to file=. If you are using the command line having
both coordinates= and coordinate(s)_file= means you have to type
the whole word, which is really annoying. (yes, there's the c_f=
trick, but it's not widely known.

> Note that Grass7/NewFeatures page was not updated yet.

todo.

> And what about d.where and d.profile linked in r.profile manual? What
> they were doing at X monitors?

Both now removed from the G7 help page. d.where lets you click on the
map canvas and it prints the coord as text on the terminal. From
there you could redirect them to a file or as in the commented out
example in the r.profile help page, pipe it directly into r.profile
for a do-it-yourself interactive input & profile tool.

d.profile is an interactive tool similar to the wxGUI profile tool,
and is replaced by it.

> Note that there is currently no way to run wxGUI profile tool
> from command line.

See also r.transect by the way, which is an alternate front-end to
r.profile.


regards,
Hamish


More information about the grass-dev mailing list