[GRASS-user] forcing raster accept only integer >0
Milton Cezar Ribeiro
miltinho.astronauta at gmail.com
Fri Jan 22 00:38:48 EST 2010
Hi Glynn,
Thanks for the reply. By the way, where I can have access to
the list of datatypes for a raster map? I ran on my raster map
and got datatype=CELL. I was expecting to get byte,float,integer...
bests
milton
2010/1/22 Glynn Clements <glynn at gclements.plus.com>
>
> Milton Cezar Ribeiro wrote:
>
> > I am trying to work around with a problem of map size under Vista (>2G).
> > I was wondering if I use the command below I will get a raster
> > map with values integer and >=0.
> > r.mapcalc "Dem.new=if(Dem>=0,int(Dem),null())"
>
> That will produce an integer map with no negative values.
>
> > As my original map have values positive and negative, as well as
> > it is fload, my question is if are there a way of I force my output
> > map accept only integers>=0. By the way, is there a way
> > of I know if a map is float or integer?
>
> r.info, or "r.info -t" if you only want the type.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100122/fd855139/attachment.html
More information about the grass-user
mailing list