<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#333333">
<br>
<div class="moz-cite-prefix">Le 24/10/2018 à 15:14, Nikos Alexandris
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:20181024131455.34hz7ecs7ohicskc@imap.dreamhost.com">*
Frank David <a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a> [2018-10-24 12:04:43
+0200]:
<br>
<br>
<blockquote type="cite">
<br>
Le 24/10/2018 à 11:58, Nikos Alexandris a écrit :
<br>
<blockquote type="cite">* Frank David
<a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a> [2018-10-24 11:35:07 +0200]:
<br>
<br>
<blockquote type="cite">Stephan,
<br>
<br>
The G_OPT_OUTPUT option generate well the check box "add
tree layer" in my script GUI.
<br>
<br>
My problem, now is how to add the raster output while I want
to set his name by the script ? I succeed with g.copy
my_raster_name to output_raster_name. The copy is well
displayed but this creates a copy what is not very
convenient...
<br>
</blockquote>
<br>
g.rename
<br>
<br>
?
<br>
</blockquote>
<br>
Nikos,
<br>
<br>
g.rename works too. But it's not more convenient because I need
to keep my raster in his original name.
<br>
<br>
Cheers,
<br>
<br>
Frank
<br>
<br>
</blockquote>
<br>
Frank,
<br>
<br>
apologies, but I think I missed the point of what you need to do.
Is the
<br>
"copy" not convenient because of "wasting" space? If yes, here
another
<br>
suggestion then:
<br>
<br>
<a class="moz-txt-link-freetext" href="https://grasswiki.osgeo.org/wiki/LANDSAT#Hint:_Minimal_disk_space_copies">https://grasswiki.osgeo.org/wiki/LANDSAT#Hint:_Minimal_disk_space_copies</a>
<br>
<br>
In Python, something like:
<br>
<br>
r.reclass(
<br>
input=input_raster,
<br>
output=output_raster,
<br>
rules='-',
<br>
stdin='*=*',
<br>
verbose=False,
<br>
quiet=True)
<br>
<br>
Nikos
<br>
<br>
</blockquote>
<p>Thanks Nikos, but it's not the point. I just need to add to the
display tree rasters I calculate with python script without
G_OPT_OUTPUT because I want to name it by script (the name comes
from different attributes of vector maps). But, it looks that only
G_OPT_OUTPUT adds the check box "add tree layer" on the script
GUI.<br>
</p>
<p>Frank<br>
</p>
</body>
</html>