[GRASS-user] Type of data to be used in i.maxlik

Markus Metz markus.metz.giswork at googlemail.com
Thu Oct 21 07:09:09 EDT 2010


Kim Besson wrote:
>>
>>>
>>> The input can be double but will be read as integer (CELL) since the
>>> function
>>> G_open_cell_old() is used [1].
>>>
>>
>
> This means what? That pixels with values >255 are all the same?

I think the representable range of CELL is -2,147,483,647 to
2,147,483,647. Anything beyond the range of CELL will be transformed
(by the system, not by GRASS) to fall within the range.

> or pixels like 1,034 and 2,043 are rounded?

Truncated, not rounded, e.g.
1.034 -> 1
1.9 -> 1
2.1 -> 2
-1.9 -> -1

Markus M


More information about the grass-user mailing list