[GRASS-dev] CELL/FCELL/DCELL [was: Re: r.mapcal rand() strangeness]

Glynn Clements glynn at gclements.plus.com
Thu Feb 28 17:41:53 EST 2008


Maciej Sieczka wrote:

> I was going to add this information, but I'm not sure if I understand 
> correctly that GRID3D is always floating point. Raster intro seems to 
> suggest so, but r3.mapcalc suggests the opposite, eg.: "Note: If you 
> calculate with integer numbers, the resulting map will be integer". 
> Please tell me.

I suspect that's probably an artifact of verbatim copying from the
r.mapcalc documentation.

I'm fairly sure that G3D only supports FP. Looking at the r3.mapcalc
code, the only way that you can get CELL values from a 3D grid is if
you use the various # operators to perform colour lookups.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list