<div dir="ltr"><div><div><div>Hi Paulo,<br><br></div>Thanks a lot for the update!<br><br></div>Best,<br></div>Anusheema</div><div class="gmail_extra"><br><div class="gmail_quote">On 30 January 2015 at 13:50, Paulo van Breugel <span dir="ltr"><<a href="mailto:p.vanbreugel@gmail.com" target="_blank">p.vanbreugel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi, there is an updated version for grass 7 which you can install using g.extension.</p><div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote">On Sat, 27 Dec 2014 18:40 Anusheema Chakraborty <<a href="mailto:anusheema@gmail.com" target="_blank">anusheema@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for the response!<br><br></div>I was trying to use the 
shell script in GRASS 6. And I am working on a Windows system. I'll use 
the updated version of the Shell script with
GRASS version 7, I suppose, and I would let you know how it goes.<br><br></div>Thanks again!</div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 December 2014 at 19:25, Paulo van Breugel <span dir="ltr"><<a href="mailto:p.vanbreugel@gmail.com" target="_blank">p.vanbreugel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi <span>Anusheema<br><br></span></div><span>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>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" target="_blank">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>Paulo<br></span></div><div><span><br></span><div><div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><span>On Sat, Dec 27, 2014 at 12:53 PM, anusheema <<a href="mailto:anusheema@gmail.com" target="_blank">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><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><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><font color="#888888"><br>
Markus<br>
</font></span></div></div><div><div>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">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>
</blockquote></div><br><br clear="all"><br></div><div class="gmail_extra">-- <br><div><div dir="ltr"><br><b>Anusheema Chakraborty</b><br>PhD Scholar<font size="1"><br>Department of Natural Resources<br>TERI University<br>10, Institutional Area, Vasant Kunj, New Delhi - 110070 (India)<br>Website: <a href="http://www.teriuniversity.ac.in" target="_blank">www.teriuniversity.ac.in </a></font><br></div></div>
</div></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><br><b>Anusheema Chakraborty</b><br>PhD Scholar<font size="1"><br>Department of Natural Resources<br>TERI University<br>10, Institutional Area, Vasant Kunj, New Delhi - 110070 (India)<br>Website: <a href="http://www.teriuniversity.ac.in" target="_blank">www.teriuniversity.ac.in </a></font><br></div></div>
</div>