<div dir="ltr"><div><div>Hi <span class="im">Anusheema<br><br></span></div><span class="im">As I replied on your question on my blogpost, there are two versions of the script; one for GRASS 6  and one for GRASS 7. In both cases you need to install the script manually (I am planning to rewrite the script as a python script, but that will take some time). <br><br></span></div><div><span class="im">The script for GRASS 7 did indeed not work anymore for me due to syntax changes in some of the functions used. An updated version should be available on <a href="http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.forestfrag">http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.forestfrag</a>. If you try out and it doesn't work, let me know (and if so, please indicate whether you are running this on Linux or Windows).<br><br></span></div><div><span class="im">Paulo<br></span></div><div><span class="im"><br></span><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 27, 2014 at 2:38 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Sat, Dec 27, 2014 at 12:53 PM, anusheema <<a href="mailto:anusheema@gmail.com">anusheema@gmail.com</a>> wrote:<br>
> Dear list members,<br>
><br>
> I am also interested in implementing Dr. Kurt Ritters forest fragmentation<br>
> model. I was, however, attempting this in R Statistical software, although I<br>
> am pretty new to both R and GRASS.<br>
<br>
</span>Which GRASS version do you use?<br>
<span class=""><br>
> While reading forums on this model, I came across this post. I see that Mr.<br>
> Maning Sambale and Mr. Stefan Sylla have developed an AddOn for GRASS:<br>
> r.forestfrag (<a href="http://grasswiki.osgeo.org/wiki/GRASS_AddOns#r.forestfrag" target="_blank">http://grasswiki.osgeo.org/wiki/GRASS_AddOns#r.forestfrag</a>).<br>
> But while trying to attempt this model on GRASS, it keeps showing an error<br>
> (AddOn not found).<br>
<br>
</span>If you are using GRASS 6: the script has been written for GRASS 7. You<br>
can install both 6 and 7 in parallel on the same computer. However, I<br>
see a link to a GRASS 6 version of the script in the Wiki page.<br>
<br>
If you are using GRASS 7: The reason is that it has not been<br>
implemented as Python script but as Shell script. To my knowledge<br>
g.extention (the extension manager) is not capable to deal with shell<br>
scripts.<br>
<span class=""><br>
> If you could please share the script? I was trying to implement the script<br>
> mentioned in this post, but without much luck. In R, with the help of this<br>
> script, replicating Pf is easier, however, for Pff, implementing the code in<br>
> cardinal direction only, is more complex.<br>
<br>
</span>You can simply download the script from here:<br>
<a href="http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.forestfrag/r.forestfrag?format=txt" target="_blank">http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.forestfrag/r.forestfrag?format=txt</a><br>
and put it into the search path in your GRASS session. Be sure to set<br>
the "executable" flag.<br>
<br>
Please let us know how it goes.<br>
<span class=""><font color="#888888"><br>
Markus<br>
</font></span><div class=""><div class="h5">_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div></div></blockquote></div><br></div></div></div></div></div>