[GRASS-user] Re: Convert FCELL to CELL

Pedro Venâncio pedrongvenancio at yahoo.com
Wed Jun 30 06:35:00 EDT 2010


That's it!

Thank you very much Maning!


Pedro Venâncio




---
 On Wed, 6/30/10, maning sambale <emmanuel.sambale at gmail.com> 
wrote:


r.mapcalc
 new_map="round(original_map)"

On 6/30/10, Pedro Venâncio <pedrongvenancio at yahoo.com> wrote:
> Hello 
Micha and Eloi,
>
> This
> procedure only extracts the
 integer part of the number, it is not rounded.
> For example, 3.8
> 
 becomes 3 instead of 4.
>
> Is there any way
>  to 
"force" the rounding?
>
> Thanks!
>
> Pedro
 Venâncio
>
>
>
>
>
>      > 
Wouldn't:
>
>> r.mapcalc new_map="int(original_map)"
>>
 do that?
>
>   Hi,
>
>
>
> How can I
 convert a raster type FCELL into a raster type CELL?
>
>
>
>
>
>
>
>
>


--
 
cheers,
maning
------------------------------------------------------
"Freedom
 is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog:
 http://epsg4253.wordpress.com/
------------------------------------------------------




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100630/4573ba15/attachment.html


More information about the grass-user mailing list