<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2018-05-03 14:03 GMT+02:00 Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Roberta,<br></blockquote><div><br></div><div>Hi Moritz and Roberto!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On 25/04/18 18:03, Roberta Fagandini wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
2018-04-25 16:03 GMT+02:00 Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a> <mailto:<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonl<wbr>ine.be</a>>>:<span class="gmail-"><br>
    Looking at your bash scripts, I think the first thing to do during<br>
    this bonding period is, as you planned yourself, to get familiar<br>
    with the writing of GRASS modules in Python. You can have a look at<br>
    existing scripts [1, 2] to get feeling for this works and how to<br>
    structure addon code in order to make it directly installable with<br>
    g.extension.<br>
<br>
    You can find the actual function definitions and documentation of<br>
    the GRASS Python scripting library at [3]. The functions in that<br>
    library should be more than enough to translate your scripts into a<br>
    (or several) modules.<br>
<br>
    Be aware that GRASS modules create their own GUI. So, unless you<br>
    need some interactive features in your modules, you will not have to<br>
    program your own GUI.<br>
<br>
<br>
Thank you for your precious suggestions! I'll start studying how to write a GRASS module in Python in the next days and at the same time I will keep on testing the procedures so as to show you some results and fix some open points.<br>
<br>
<br>
    Something else you should probably do during this bonding time is to<br>
    elaborate a schema of your algorithm, so that it is easier to<br>
    understand what it does at each step.<br>
<br>
<br>
Yes, this could be very useful also for me in order to better organize and put in order everything!<br>
<br>
</span></blockquote>
<br>
Have you advanced on any of this ? Do you have any questions ? Please don't hesitate to ask on the mailing list.<br></blockquote><div><br></div><div><div>Yes, I started working with GRASS Python scripting library. I'm following the link [0] you suggested, I'm also looking at other existing GRASS scripts [1,2] and moreover, Roberto gave me one of his scripts as an example. I have just committed the first version of the python script I'm working on, it works and I'm quite satisfied ;-)</div><div>Tomorrow I want to elaborate the schema of the algorithm and at the same time, I have to keep testing the procedure. As I wrote in the bash file, shadows detection seems to be strongly land cover dependent therefore I think it is necessary to test the procedure using several images sensed in different seasons, latitude, etc.</div><div><br></div><div>Anyway, I'll commit some results tomorrow so as to show you something more concrete!</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Best wishes,<br>
Moritz<br></blockquote><div><br></div><div>Best regards,</div><div>Roberta</div><div> </div></div>[0] <a href="https://grass.osgeo.org/grass75/manuals/libpython/script_intro.html">https://grass.osgeo.org/grass75/manuals/libpython/script_intro.html</a></div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">[1]<span> </span></span><a href="https://trac.osgeo.org/grass/browser/grass/trunk/scripts" rel="noreferrer" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">https://trac.osgeo.org/grass/b<wbr>rowser/grass/trunk/scripts</a><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">[2]<span> </span></span><a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7" rel="noreferrer" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">https://trac.osgeo.org/grass/b<wbr>rowser/grass-addons/grass7</a><br></div></div>