<div dir="ltr"><div><div><div><div><div>Hi Johan. <br><br></div>I've re-added the QGIS-User list to this, as I'm primarily on Windows. Just upgraded to QGIS 2.8.1 no a virtual machine with ubuntu 14.04, and also didn't get SAGA or GRASS installed immediately, and don't have time right now to figure it out.  (I imagine others on the list can help you with the saga/grass install issues)<br><br>As a quick work-around, you should be able to just install SAGA via the tarball here: <a href="http://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.1/SAGA%202.1.4/">http://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.1/SAGA%202.1.4/</a> [or just sudo apt-get install saga seems to work too].  At least on windows, you can just drag files into SAGA and work with them there, and then work with the respective modules, so hopefully that is the same on Ubuntu.<br><br></div>An alternative is working with R, using the 'extract' function in the 'raster' package (see the documentation here: <a href="http://cran.r-project.org/web/packages/raster/index.html">http://cran.r-project.org/web/packages/raster/index.html</a>; and a good intro to spatial data with R is available here: <a href="http://science.nature.nps.gov/im/datamgmt/statistics/r/advanced/spatial.cfm">http://science.nature.nps.gov/im/datamgmt/statistics/r/advanced/spatial.cfm</a>)<br><br></div>Sorry I can't be more help - good luck.<br></div>Cheers,<br></div>Mike<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 9:12 AM, Johan Nilsson <span dir="ltr"><<a href="mailto:joni8135@gmail.com" target="_blank">joni8135@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Can't find Saga or Grass tools on Ubuntu 14.04 with <a href="http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu" target="_blank">http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu</a><br><br></div>Maybe down grade to stable? For a couple of years ago unstable was stable, but now with Grass 7.0 and i don't know how it is with SAGA, but I can not find it. Maybe It is why Processing --> Zonal Statistics do not work because it depend on Grass 6.4 or Saga? When i run processing --> zonal statistics noting happens but say I shoukld check the log, but the log-window does not show anything.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-04-20 2:23 GMT+02:00 Michael Treglia <span dir="ltr"><<a href="mailto:mtreglia@gmail.com" target="_blank">mtreglia@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also, theres a utility in SAGA, implemented within the Processing toolbox. See SAGA -> Shapes - Grid -> Grid statistics for polygons<br><div class="gmail_extra"><br></div><div class="gmail_extra">Lets you calculate:<br></div><div class="gmail_extra">* Number of Cells<br></div><div class="gmail_extra">* Minimum<br></div><div class="gmail_extra">* Maximum<br></div><div class="gmail_extra">* Range<br></div><div class="gmail_extra">* Sum<br></div><div class="gmail_extra">* Mean<br></div><div class="gmail_extra">* Variance<br></div><div class="gmail_extra">* Standard Deviation<br></div><div class="gmail_extra">* Specified Quartiles<br><br></div><div class="gmail_extra">Hope that helps,<br></div><div class="gmail_extra">mike<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 19, 2015 at 11:54 AM, Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
    
  
  <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000"><span>
    <br>
    <br>
    <div>On 04/19/2015 12:34 PM, Johan Nilsson
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>Zonal statistics work well to extract, numers of
            cells(counts) , sum of the value (sum)  and also average
            (mean) But I want the minimum AND max-value and also
            standard error, if possible. Is there another plugin or a
            tutorial how it may bee done in another way.<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote></span>
    The GRASS module v.rast.stats does what you want. But it's not in
    the Processing toolbox. You can import your raster into a GRASS
    mapset then do the analysis directly within GRASS.<br>
    <blockquote type="cite"><span>
      <div dir="ltr">
        <div>The code to Zonal statistics are here, but I'm total lost
          in how it work.<br>
          <br>
          <a href="https://github.com/qgis/QGIS/blob/a2f51260db5357917e86b78f1bb2915379d670dd/src/analysis/vector/qgszonalstatistics.cpp" target="_blank">https://github.com/qgis/QGIS/blob/a2f51260db5357917e86b78f1bb2915379d670dd/src/analysis/vector/qgszonalstatistics.cpp</a><br>
          <br>
        </div>
        /Cheers<br>
      </div>
      <br></span>
      This mail was received via Mail-SeCure System.<br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre><span>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></span>
This mail was received via Mail-SeCure System.


</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>