Greetings all<div><br></div><div>><span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px; ">you made sure to put it
before the exec, right?</span></div><div><font class="Apple-style-span" face="Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black">Yes. Now grass64 file is like this:</span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black">trap "echo 'User
break!' ; exit" 2 3 9 15<br># Set the GISBASE
variable<br>GISBASE=/usr/local/grass-6.4.0svn<br>export GISBASE<br>export
GRASS_ADDON_PATH=/usr/local/myproj<br>exec
"$GISBASE/etc/Init.sh" "$@" </span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span lang="PT" style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black;mso-ansi-language:PT"> </span></p><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span lang="PT" style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black;mso-ansi-language:PT">I get an error window
stating:<br>Execution failed:
'i.ndvi'<br>Details:<br>Error:</span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"> An at command output I
get:<br><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">ERROR: Required parameter
<bandnir> not set:<br>(raster input map (Near Infrared)).<br>ERROR: Required
parameter <bandred> not set:<br>(raster input map (Red)).<br>ERROR: Required
parameter <ndvi> not set:<br>(raster output NDVI map).</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Description:<br>NDVI Calculation<br>Keywords:<br>raster,
imagery, vegetation<br><br>Usage:<br> i.ndvi
bandnir=string bandred=string ndvi=string [--overwrite] [--verbose]
[--quiet]</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Flags:<br> --o Allow
output files to overwrite existing files<br> --v Verbose
module output<br> --q Quiet
module output</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Parameters:<br>bandnir
raster input map (Near Infrared)<br>bandred
raster input map (Red)<br>ndvi
raster output NDVI map</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">ERROR: Required
parameter <bandnir> not set: (raster input map (Near Infrared)).<br>ERROR: Required
parameter <bandred> not set: (raster input map (Red)).<br>ERROR: Required
parameter <ndvi> not set: (raster output NDVI map).</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Description:<br>NDVI Calculation</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Keywords:<br>raster, imagery,
vegetation</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Usage:<br>i.ndvi
bandnir=string bandred=string ndvi=string [--overwrite] [--verbose]
[--quiet]</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Flags:<br> --o Allow
output files to overwrite existing files<br> --v Verbose
module output<br> --q Quiet
module output</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><span class="Apple-style-span" style="background-color: rgb(153, 153, 153);">Parameters:<br> bandnir
raster input map (Near Infrared)<br> bandred
raster input map (Red)<br> ndvi
raster output NDVI map</span></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"> </span></p><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black">But If I put this
function at grasssvn6.4.0/scripts folder it works just fine, I mean it opens
the form to enter input/ouput/options information. So it works as expected but if I put back in my addon_path folder I get these error</span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black">Any idea of what is
going wrong?</span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"><br>
Thank you</span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"> Kim</span></p>
<p class="MsoNormal"> </p></span></font></div><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif";
mso-fareast-font-family:"Times New Roman";color:black"></span></p>