[GRASS-user] forcing raster accept only integer >0

Jarosław Jasiewicz jarekj at amu.edu.pl
Fri Jan 22 02:42:05 EST 2010


Milton Cezar Ribeiro pisze:
> 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 
> <mailto: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 <http://r.info/>, or "r.info <http://r.info/> -t" if you
>     only want the type.
>
>     --
>     Glynn Clements <glynn at gclements.plus.com
>     <mailto:glynn at gclements.plus.com>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>   
CELL=integer
FCELL=float
DCELL= double precison

J.


More information about the grass-user mailing list