<div class="gmail_quote">2011/11/21 daniel mcinerney <span dir="ltr">&lt;<a href="mailto:daniel.o.mcinerney@gmail.com" target="_blank">daniel.o.mcinerney@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>According to the documentation of [1] and previous discussions [2], <br>v.rast.stats2 should be a lot faster.<br></div></blockquote><div>Awesome! Only... I&#39;ve got a problem here... Sorry to be so nooby, but here&#39;s what&#39;s going on:</div>



<div><br></div><div><div>GRASS 6.4.2RC1 (ETRS89_ll):~ &gt; g.extension extension=r.univar.zonal</div><div>WARNING: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/</div><div>Fetching &lt;r.univar.zonal&gt; from GRASS-Addons SVN (be patient)...</div>



<div>A    r.univar.zonal/stats.c</div><div>A    r.univar.zonal/sort.c</div><div>A    r.univar.zonal/globals.h</div><div>A    r.univar.zonal/r.univar.zonal.html</div><div>A    r.univar.zonal/r.univar_main.c</div><div>A    r.univar.zonal/r3.univar.zonal.html</div>



<div>A    r.univar.zonal/r3.univar_main.c</div><div>A    r.univar.zonal/Makefile</div><div> U   r.univar.zonal</div><div>Checked out revision 49316.</div><div>Compiling &lt;r.univar.zonal&gt;...</div><div>Makefile:10: /opt/grass/include/Make/Multi.make: No such file or directory</div>



<div>make: *** No rule to make target `/opt/grass/include/Make/Multi.make&#39;.  Stop.</div><div>ERROR: Compilation failed, sorry. Please check above error messages.</div></div><div><br></div><div>I can&#39;t find any Multi.make either, except for in my GRASS 7 sources. I&#39;m actually wanting to work in GRASS 6, but even if I try the same command in GRASS 7, another problem happens. Although I did swap the repository for it, that might be causing the problem (?)? Here it is:</div>



<div><br></div><div><div>GRASS 7.0.svn (ETRS89_ll@Niedersachsen_Test):~ &gt; g.extension extension=r.univar.zonal svnurl=<a href="https://svn.osgeo.org/grass/grass-addons/" target="_blank">https://svn.osgeo.org/grass/grass-addons/</a></div>



<div>Fetching &#39;r.univar.zonal&#39; from GRASS-Addons SVN (be patient)...</div><div>A    r.univar.zonal/stats.c</div><div>A    r.univar.zonal/sort.c</div><div>A    r.univar.zonal/globals.h</div><div>A    r.univar.zonal/r.univar.zonal.html</div>



<div>A    r.univar.zonal/r.univar_main.c</div><div>A    r.univar.zonal/r3.univar.zonal.html</div><div>A    r.univar.zonal/r3.univar_main.c</div><div>A    r.univar.zonal/Makefile</div><div> U   r.univar.zonal</div><div>Checked out revision 49316.</div>



<div>Compiling &#39;r.univar.zonal&#39;...</div><div>mkdir -p /home/lee/Documents/GRASS_Data/ETRS89_ll/Niedersachsen_Test/.tmp/pc19453/6059.0/r.univar.zonal/etc/r.univar.zonal</div><div>test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu</div>



<div>gcc  -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused   -I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\&quot;&quot;grassmods&quot;\&quot;   -I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include -o OBJ.x86_64-unknown-linux-gnu/r.univar_main.o -c r.univar_main.c</div>



<div>In file included from r.univar_main.c:21:0:</div><div>globals.h:22:23: fatal error: grass/G3d.h: No such file or directory</div><div>compilation terminated.</div><div>make: *** [OBJ.x86_64-unknown-linux-gnu/r.univar_main.o] Error 1</div>



<div>ERROR: Compilation failed, sorry. Please check above error messages.</div></div><div><br></div><div>I tried hardwiring my top include folder (/usr/local/grass-7.0.svn/) where the makefile seemed to be looking for Multi.make into the makefile, but that didn&#39;t help either. Any ideas?</div>



<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>You should be able to change the BASECOLS variable in the script<br>to only output the sums, which might speed things up for you.</div></blockquote></div>Do you mean just taking the line in v.rast.stats2 with <div><pre style="word-wrap:break-word;white-space:pre-wrap">

BASECOLS=&quot;n min max range mean stddev variance cf_var sum&quot;
</pre></div><div>and removing everything except for sum? Unfortunately, my knowledge of bash scripting limits me here, I&#39;d just try it out, but since I can&#39;t get the extension installed yet anyway I figured I&#39;d ask.</div>



<div><br></div><div>Thanks a lot!</div><div>Daniel</div>