<div dir="ltr"><div><div><div><div><div><div><div>Hi Paolo and Victor,<br><br></div>The expression needs to be in the form:<br><br></div>output_name = input_name [operation] [constant or another input_name]<br><br></div>So, in your case:<br><br>dtm2 = dtm*2<br><br></div>But it still has problems, specially in Windows: <a href="https://hub.qgis.org/issues/6894">https://hub.qgis.org/issues/6894</a> <br><br></div>It would be great to have r.mapcal full operational in Processing.<br><br></div>Best regards,<br></div>Pedro Venâncio<br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-22 18:11 GMT+01:00 Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">looks like the formula (dtm*2) is correctly passed to GRASS, but it<br>
complains that is wrong. Are there changes in GRASS itself??<br>
<br>
I am no GRASS expert, but i see nothing wrong in the way Processing is<br>
creating the command line calls to GRASS.<br>
<div class="HOEnZb"><div class="h5"><br>
2016-10-22 19:06 GMT+02:00 Paolo Cavallini <<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>>:<br>
> Hi all,<br>
> the interface and apparently syntax of Processing module for r.mapcalc<br>
> has been changed. I cannot figura out how to make it run. I've tried<br>
> various combinations, with no joy, see below.<br>
> Thanks for any hint.<br>
> All the best.<br>
> ===<br>
>  r.mapcalc - Raster map calculator....<br>
> g.proj -c proj4="+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=1500000<br>
> +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.<wbr>971,-2.917,0.714,-11.68<br>
> +units=m +no_defs"<br>
> r.in.gdal<br>
> input=/home/paolo/Scrivania/<wbr>analisi/QGIS_data/processing/<wbr>more_backends/dtm.tif<br>
> output=dtm --overwrite -o<br>
> g.region -a n=4924820.77 s=4678320.77 e=1771747.23103 w=1554747.23103<br>
> res=100.0<br>
> r.mapcalc expression="dtm*2" --overwrite<br>
> for r in $(g.list type=rast); do<br>
> r.out.gdal input=${r}<br>
> output=/tmp/<wbr>processinge2680df22db7465e9478<wbr>f93ec68fabac/<wbr>cc5292235bab4755a251cba20fd060<wbr>7f/${r}.tif<br>
> createopt="TFW=YES,COMPRESS=<wbr>LZW" --overwrite<br>
> done<br>
> Cleaning up temporary files...<br>
> Sto avviando GRASS GIS...<br>
> Sto eseguendo<br>
> '/home/paolo/Scrivania/<wbr>analisi/config/processing/<wbr>grass7_batch_job.sh'...<br>
> Default region was updated to the new projection, but if you have<br>
> multiple mapsets `g.region -d` should be run in each to update the<br>
> region from the default<br>
> Informazioni sulla proiezione aggiornate<br>
> ATTENZIONE: La verifica della proiezione verrà ignorata<br>
> Proceeding with import of 1 raster bands...<br>
> Importing raster map ...<br>
> 0..3..6..9..12..15..18..21..<wbr>24..27..30..33..36..39..42..<wbr>45..48..51..54..57..60..63..<wbr>66..69..72..75..78..81..84..<wbr>87..90..93..96..99..100<br>
><br>
> syntax error, unexpected '*', expecting '('<br>
> Parse error<br>
> ERRORE: parse error<br>
> Checking GDAL data type and nodata value...<br>
> 2..5..8..11..14..17..20..23..<wbr>26..29..32..35..38..41..44..<wbr>47..50..53..56..59..62..65..<wbr>68..71..74..77..80..83..86..<wbr>89..92..95..98..100<br>
><br>
> Using GDAL data type<br>
> Input raster map contains cells with NULL-value (no-data). The value<br>
> -nan will be used to represent no-data values in the input map. You can<br>
> specify a nodata value with the nodata option.<br>
> Exporting raster data to GTiff format...<br>
> ERROR 6: SetColorTable() only supported for Byte or UInt16 bands in TIFF<br>
> format.<br>
> 2..5..8..11..14..17..20..23..<wbr>26..29..32..35..38..41..44..<wbr>47..50..53..56..59..62..65..<wbr>68..71..74..77..80..83..86..<wbr>89..92..95..98..100<br>
><br>
> r.out.gdal completo. File created.<br>
> Esecuzione di<br>
> '/home/paolo/Scrivania/<wbr>analisi/config/processing/<wbr>grass7_batch_job.sh'<br>
> terminata.<br>
> Cleaning up temporary files...<br>
><br>
> --<br>
> Paolo Cavallini - <a href="http://www.faunalia.eu" rel="noreferrer" target="_blank">www.faunalia.eu</a><br>
> QGIS & PostGIS courses: <a href="http://www.faunalia.eu/training.html" rel="noreferrer" target="_blank">http://www.faunalia.eu/<wbr>training.html</a><br>
> <a href="https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis" rel="noreferrer" target="_blank">https://www.google.com/trends/<wbr>explore?date=all&geo=IT&q=<wbr>qgis,arcgis</a><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br></div>