[GRASS-user] forcing raster accept only integer >0
Glynn Clements
glynn at gclements.plus.com
Fri Jan 22 00:17:22 EST 2010
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>
More information about the grass-user
mailing list