Hi there,
I have some questions regarding r.mapcalc questions:
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from within QGIS.
2 - My r.mapcalc outputs int32 rasters (I want float32). Is there a way to choose the output type?
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from
within QGIS.
can't answer this one
My r.mapcalc outputs int32 rasters (I want float32). Is there a way to
choose the output type?
from the manual [1]
------------------------
[...]
Functions
The functions currently supported are listed in the table below. The type of
the result is indicated in the last column. F means that the functions
always results in a floating point value, I means that the function gives an
integer result, and * indicates that the result is float if any of the
arguments to the function are floating point values and integer if all
arguments are integer.
[...]
Floating point values in the expression
Floating point values in the expression are handled in a special way. With
arithmetic and logical operators, if either operand is float, the other is
converted to float and the result of the operation is float. This means, in
particular that division of integers results in a (truncated) integer, while
division of floats results in an accurate floating point value. With
functions of type * (see table above), the result is float if any argument
is float, integer otherwise.
Note: If you calculate with integer numbers, the resulting map will be
integer. If you want to get a float result, add the decimal point to integer
number(s).
If you want floating point division, at least one of the arguments has to be
a floating point value. Multiplying one of them by 1.0 will produce a
floating-point result, as will using float():
On Mon, Feb 20, 2017 at 4:22 PM, Luiz Andrade <lcoandrade@gmail.com> wrote:
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it
from within QGIS.
Nobody really asked for that as far as I know. The porting should be quite
simple if you are interested in that. But that was not the issue. See
discussion here:
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from within QGIS.
Nobody really asked for that as far as I know. The porting should be quite simple if you are interested in that. But that was not the issue. See discussion here:
Thanks!
Can you help me with another thing?
My images have 15m pixels, after processing in r.mapcalc and exporting they have 62m pixels. How can I solve this?
Thanks again
Regards,
Luiz Claudio
Em 20 de fev de 2017, à(s) 18:42, Helmut Kudrnovsky <hellik@web.de> escreveu:
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from
within QGIS.
can’t answer this one
My r.mapcalc outputs int32 rasters (I want float32). Is there a way to
choose the output type?
from the manual [1]
[…]
Functions
The functions currently supported are listed in the table below. The type of
the result is indicated in the last column. F means that the functions
always results in a floating point value, I means that the function gives an
integer result, and * indicates that the result is float if any of the
arguments to the function are floating point values and integer if all
arguments are integer.
[…]
Floating point values in the expression
Floating point values in the expression are handled in a special way. With
arithmetic and logical operators, if either operand is float, the other is
converted to float and the result of the operation is float. This means, in
particular that division of integers results in a (truncated) integer, while
division of floats results in an accurate floating point value. With
functions of type * (see table above), the result is float if any argument
is float, integer otherwise.
Note: If you calculate with integer numbers, the resulting map will be
integer. If you want to get a float result, add the decimal point to integer
number(s).
If you want floating point division, at least one of the arguments has to be
a floating point value. Multiplying one of them by 1.0 will produce a
floating-point result, as will using float():
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from within QGIS.
Nobody really asked for that as far as I know. The porting should be quite simple if you are interested in that. But that was not the issue. See discussion here:
It does not do the computation, it only lists the inputs and outputs. The was point to make writing the wrappers easier and more robust. See details here:
1 - Why wasn’t r.mapcalculator ported to grass7? It is great to use it from within QGIS.
Nobody really asked for that as far as I know. The porting should be quite simple if you are interested in that. But that was not the issue. See discussion here:
Thanks!
Can you help me with another thing?
My images have 15m pixels, after processing in r.mapcalc and exporting they have 62m pixels. How can I solve this?
In terms of best practices, if I work with several images with different resolutions, should I always set the region resolution before executing some raster calculation?
Or is it better to have different locations according to my images resolutions?
Thanks!
Can you help me with another thing?
My images have 15m pixels, after processing in r.mapcalc and exporting they have 62m pixels. How can I solve this?