<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#333333">
<p>Hi Stephan,</p>
<p>Thank you for the ticket. One thing seems to me important. Some
(of my) scripts can generate numerous rasters and one or two
cumulative raster. I don't want to add base rasters but only the
few cumulative. If the script GUI have a check box, how to make
the choice between these I want to display and those I don't want
?</p>
<p>For my point of view, the use of d.rast inside the script, as we
do for all other grass command, should be possible, in order to
display what we want to display.</p>
<p>Cheers,</p>
<p>Frank<br>
</p>
<div class="moz-cite-prefix">Le 24/10/2018 à 09:23, Stefan
Blumentrath a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:DB7PR02MB4585EBD38DB0BDAC53CC5C779EF60@DB7PR02MB4585.eurprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">Hei Nikos, Frank,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">I opened an enhancement ticket, and asked to
activate the "Add created map(s) into layer tree" also for
addons:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><a
href="https://trac.osgeo.org/grass/ticket/3686"
moz-do-not-send="true">https://trac.osgeo.org/grass/ticket/3686</a>.
No idea what changes this would require…<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">Would that cover your needs, Frank, or do you
have a more interactive use in a python script in mind?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">You can start a wx monitor (d.mon wx0) and add
a map there, but I have not found a way to address the
currently active Map Display …<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">This would probably require additional
function(s) in the Python libraries…?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">Maybe this question is better asked at the
developer list (thus I put grass-dev in CC).<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext"
lang="EN-US">From:</span></b><span
style="color:windowtext" lang="EN-US"> Frank David
<a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a>
<br>
<b>Sent:</b> onsdag 24. oktober 2018 08:26<br>
<b>To:</b> Nikos Alexandris
<a class="moz-txt-link-rfc2396E" href="mailto:nik@nikosalexandris.net"><nik@nikosalexandris.net></a><br>
<b>Cc:</b> Stefan Blumentrath
<a class="moz-txt-link-rfc2396E" href="mailto:Stefan.Blumentrath@nina.no"><Stefan.Blumentrath@nina.no></a>; Laurent C.
<a class="moz-txt-link-rfc2396E" href="mailto:lrntct@gmail.com"><lrntct@gmail.com></a>; GRASS user list
<a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><grass-user@lists.osgeo.org></a><br>
<b>Subject:</b> Re: [GRASS-user] d.rast in python script<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Le 23/10/2018 à 23:26, Nikos Alexandris a
écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">* Frank David <a
href="mailto:frank.david@geophom.fr"
moz-do-not-send="true"><frank.david@geophom.fr></a>
[2018-10-23 22:06:01 +0200]:
<br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Thank you everybody for your help. Do
you know why a run_command("d.rast"... in a python script
is not enough to display a raster ? I don't understand why
this command is so different.
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><br>
Display a raster map where? <br>
<br>
Nikos <o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span
style="color:windowtext;mso-fareast-language:EN-US"
lang="EN-GB">In the active map display (and respective Layer
manager) as d.rast do it with gui...<br>
</span><br>
Frank<o:p></o:p></p>
</div>
</blockquote>
</body>
</html>