[GRASS-user] Reclassification RASTER

Daniel Lee lee at isi-solutions.org
Thu Jan 10 07:34:39 PST 2013


Hi Brian,

Try using. r.reclass, it's made specifically for reclassifying maps.

Best,
Daniel


2013/1/10 Brian Sanjeewa Rupasinghe <jinkabs at gmail.com>

> Hi,
>
> I create each viewshed raster map for every observer location with flag
> (b) which denotes 0-non-visible and 1-visible values.
> Then i add all viewshed rasters to get integrated raster. So my integrated
> raster contains values >=1. In the raster, all values
> > 1 represents visible area. Therefore, i need to reclassify the image by
> setting all values > 1 to 1. If i use the following Python
> code to have output Name: MASK, is it ok?  (out = integraed_raster)
>
> grass.mapcalc("MASK=if(($ReclassiName > 1),1,1)",
>                      ReclassiName = out)
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130110/178ac6ad/attachment-0001.html>


More information about the grass-user mailing list