[GRASS-dev] Modifying the functionality of r.ros module

Vaclav Petras wenzeslaus at gmail.com
Thu Aug 2 17:10:49 PDT 2018


On Thu, Aug 2, 2018 at 2:36 AM, Vidura Dantanarayana <vidurada at gmail.com>
wrote:

>
> Currently I am investigation on the effects of the variables of
> Rothermel's fire behavior model. So I'm planning to modify the equations
> and variables in r.ros module to observe the change of output. Since the
> source code is available I can do the needed modifications. So do I have to
> compile whole the software after a change or do I have any continent way to
> do what I intended.
>

Hi Vidura,

you will need to have the compilation environment ready on your system, but
you don't need to compile whole GRASS GIS. On Ubuntu, you can install the
grass-dev package and that should be sufficient. You can compile directly
using the `make` command or you can use the `g.extension` module which
avoids the need to provide parameters for the `make` command. Get this
ready on Linux (not necessary Ubuntu) will be just much easier than
anything else, so I recommend starting with that.

Start with downloading the code. The files are available on GRASS Trac or
in HTML view of the repository, but I would just get the whole source code
using Subversion (`svn`) so you can look around in the code base and copy
the r.ros code from that. I would suggest you to rename the module
slightly, so you always know when you are using your version and when the
original one.

Finally, even if you would be compiling the whole code base, `make` will
figure out where are the changes and compiles only the changed files which
in your case would be equivalent to running `make` in the directory of the
module which you could do as well.

Best,
Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180802/d43cdd9d/attachment.html>


More information about the grass-dev mailing list