https://issues.qgis.org/https://issues.qgis.org/favicon.ico2015-04-07T07:42:23ZQGIS Issue TrackingQGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=603382015-04-07T07:42:23ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>See possible explanations here: <a class="external" href="http://sourceforge.net/p/saga-gis/wiki/Compatibility%202.1.3/">http://sourceforge.net/p/saga-gis/wiki/Compatibility%202.1.3/</a></p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=603712015-04-09T02:21:18ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Resolution</strong> set to <i>up/downstream</i></li></ul><p>There is nothing wrong in Processing with this module. In SAGA 2.1.4 there are only a few new parameters and this is the new description file</p>
<p>Statistics for Grids<br />statistics_grid<br />ParameterMultipleInput|GRIDS|Grids|3|False<br />ParameterNumber|PCTL_VAL|Percentile|0.0|100.0|50.0<br />OutputRaster|MEAN|Arithmetic Mean<br />OutputRaster|MIN|Minimum<br />OutputRaster|MAX|Maximum<br />OutputRaster|VAR|Variance<br />OutputRaster|SUM|Sum<br />OutputRaster|RANGE|Range<br />OutputRaster|PCTL|Percentile<br />OutputRaster|STDDEV|Standard Deviation<br />OutputRaster|STDDEVLO|Mean less Standard Deviation<br />OutputRaster|STDDEVHI|Mean plus Standard Deviation</p>
<p>the problem is that this module SAGA does not creates any output.</p>
<p>This:</p>
<p><code>saga_cmd io_gdal -TRANSFORM -INTERPOL 0 -GRIDS "mdt.sgrd" -FILES "mdt.tif"</code></p>
<p>imports correctly the raster in the SAGA data model, but then</p>
<p><code>saga_cmd statistics_grid "Statistics for Grids" -GRIDS "mdt.sgrd" -PCTL_VAL 50 -MEAN "MEAN.tif.sgrd"</code></p>
<p>do not create any output and do not give any error.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=603742015-04-09T03:15:25ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>The description has been updated, now is a SAGA issue.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=603902015-04-09T20:58:43ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li></ul><p>Could you please open a ticket upstream? Thanks.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604282015-04-10T07:46:04ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Paolo Cavallini wrote:</p>
<blockquote>
<p>Could you please open a ticket upstream? Thanks.</p>
</blockquote>
<p>for some reason I'm unable to login on sourceforge and file a ticket there.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604302015-04-10T07:51:38ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p><a class="external" href="https://sourceforge.net/p/saga-gis/bugs/203/">https://sourceforge.net/p/saga-gis/bugs/203/</a></p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604632015-04-13T06:00:27ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Resolution</strong> deleted (<del><i>up/downstream</i></del>)</li><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>with the command above you should see an error: "no grids in selection". The reason is that the tool requires at least two input grids in order to calculate cell statistics. For a test you can simply provide the input grid two times:</p>
<p>saga_cmd statistics_grid "Statistics for Grids" -GRIDS "mdt.sgrd;mdt.sgrd" -MEAN "MEAN.tif.sgrd"</p>
<p>see link above</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604802015-04-14T02:17:45ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>invalid</i></li></ul><p>Paolo Cavallini wrote:</p>
<blockquote>
<p>with the command above you should see an error: "no grids in selection".</p>
</blockquote>
<p>no such error message in the saga command line output</p>
<blockquote>
<p>The reason is that the tool requires at least two input grids in order to calculate cell statistics. For a test you can simply provide the input grid two times:</p>
<p>saga_cmd statistics_grid "Statistics for Grids" -GRIDS "mdt.sgrd;mdt.sgrd" -MEAN "MEAN.tif.sgrd"</p>
<p>see link above</p>
</blockquote>
<p>so there is nothing to fix: the processing module already allows choose multiple raster inputs (and is you do it works). There is no way (as far as I know) to force two, or at least two, but this is another issue.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604812015-04-14T03:17:35ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Resolution</strong> deleted (<del><i>invalid</i></del>)</li><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>The command is still not working properly, as the user should be forced to send the correct input. Please do not close it.</p> QGIS Application - Bug report #12517: Raster layer statistics SAGA module not working on Processinghttps://issues.qgis.org/issues/12517?journal_id=604962015-04-15T02:26:52ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Paolo Cavallini wrote:</p>
<blockquote>
<p>The command is still not working properly, as the user should be forced to send the correct input.</p>
</blockquote>
<p>see <a class="issue tracker-2 status-5 priority-4 priority- closed" href="https://issues.qgis.org/issues/12580" title="processing: allow define the mimum number of inputs in "ParameterMultipleInput" (Closed)">#12580</a></p>
<blockquote>
<p>Please do not close it.</p>
</blockquote>
<p>the module works if you choose at least two raster inputs, as you suggests. The issue is the missing check for the minimum number of inputs, but this does not mean that this module is not working because of a wrong definition. An additional (mandatory) raster input cannot be used as workaround because this SAGA module do not allow it, the only possible input option is a single grid list</p>
<p>Usage: saga_cmd statistics_grid 4 -GRIDS <str> [-MEAN <str>] [-MIN <str>] [-MAX <str>] [-RANGE <str>] [-SUM <str>] [-VAR <str>] [-STDDEV <str>] [-STDDEVLO <str>] [-STDDEVHI <str>] [-PCTL <str>] [-PCTL_VAL <str>]<br /> -GRIDS:<str> Grids<br /> Grid list (input)<br /> -MEAN:<str> Arithmetic Mean<br /> Grid (optional output)<br /> -MIN:<str> Minimum<br /> Grid (optional output)<br /> -MAX:<str> Maximum<br /> Grid (optional output)<br /> -RANGE:<str> Range<br /> Grid (optional output)<br /> -SUM:<str> Sum<br /> Grid (optional output)<br /> -VAR:<str> Variance<br /> Grid (optional output)<br /> -STDDEV:<str> Standard Deviation<br /> Grid (optional output)<br /> -STDDEVLO:<str> Mean less Standard Deviation<br /> Grid (optional output)<br /> -STDDEVHI:<str> Mean plus Standard Deviation<br /> Grid (optional output)<br /> -PCTL:<str> Percentile<br /> Grid (optional output)<br /> -PCTL_VAL:<str> Percentile<br /> Floating point<br /> Minimum: 0.000000<br /> Maximum: 100.000000<br /> Default: 50.000000</p>