<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks!<div class="">Can you help me with another thing?</div><div class="">My images have 15m pixels, after processing in r.mapcalc and exporting they have 62m pixels. How can I solve this?</div><div class=""><br class=""></div><div class="">Thanks again</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><div style="orphans: 2; widows: 2;" class="">Regards,</div><div style="orphans: 2; widows: 2;" class="">Luiz Claudio</div></div><div class=""><br class=""></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Em 20 de fev de 2017, à(s) 18:42, Helmut Kudrnovsky <<a href="mailto:hellik@web.de" class="">hellik@web.de</a>> escreveu:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from<br class=""></blockquote>within QGIS.<br class=""><br class="">can't answer this one<br class=""><br class=""><blockquote type="cite" class="">My r.mapcalc outputs int32 rasters (I want float32). Is there a way to<br class=""></blockquote>choose the output type?<br class=""><br class="">from the manual [1]<br class=""><br class="">------------------------<br class="">[...]<br class="">Functions<br class="">The functions currently supported are listed in the table below. The type of<br class="">the result is indicated in the last column. F means that the functions<br class="">always results in a floating point value, I means that the function gives an<br class="">integer result, and * indicates that the result is float if any of the<br class="">arguments to the function are floating point values and integer if all<br class="">arguments are integer. <br class=""><br class="">[...]<br class="">Floating point values in the expression<br class="">Floating point values in the expression are handled in a special way. With<br class="">arithmetic and logical operators, if either operand is float, the other is<br class="">converted to float and the result of the operation is float. This means, in<br class="">particular that division of integers results in a (truncated) integer, while<br class="">division of floats results in an accurate floating point value. With<br class="">functions of type * (see table above), the result is float if any argument<br class="">is float, integer otherwise.<br class=""><br class="">Note: If you calculate with integer numbers, the resulting map will be<br class="">integer. If you want to get a float result, add the decimal point to integer<br class="">number(s).<br class=""><br class="">If you want floating point division, at least one of the arguments has to be<br class="">a floating point value. Multiplying one of them by 1.0 will produce a<br class="">floating-point result, as will using float():<br class=""><br class=""> r.mapcalc "ndvi = float(lsat.4 - lsat.3) / (lsat.4 + lsat.3)"<br class="">[...]<br class="">------------------------<br class=""><br class="">HTH<br class=""><br class="">[1] <a href="https://grass.osgeo.org/grass73/manuals/r.mapcalc.html" class="">https://grass.osgeo.org/grass73/manuals/r.mapcalc.html</a><br class=""><br class=""><br class=""><br class="">-----<br class="">best regards<br class="">Helmut<br class="">--<br class="">View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/r-mapcalculator-and-r-mapcalc-tp5308738p5308742.html" class="">http://osgeo-org.1560.x6.nabble.com/r-mapcalculator-and-r-mapcalc-tp5308738p5308742.html</a><br class="">Sent from the Grass - Users mailing list archive at <a href="http://Nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">grass-user mailing list<br class=""><a href="mailto:grass-user@lists.osgeo.org" class="">grass-user@lists.osgeo.org</a><br class="">https://lists.osgeo.org/mailman/listinfo/grass-user</div></div></blockquote></div><br class=""></div></body></html>