[GRASS-user] composite raster maps

Markus Metz markus.metz.giswork at gmail.com
Mon Nov 25 03:10:45 PST 2013

On Mon, Nov 25, 2013 at 7:22 AM, Vincent Bain <bain at toraval.fr> wrote:
> Hello there,
> I just realize I've used r.composite for ages without wondering how I
> could perform the reverse task. The thing is I ran r.composite on a 3
> band geotiff orthoimage, dropped the initial .red, .green and .blue
> rasters, and I would need them now in order to run r.out.vtk with the
> rgbmaps argument. Dummy...

You can use the # operator of r.mapcalc:

r.mapcalc "map.red = r#map"
r.mapcalc "map.green = g#map"
r.mapcalc "map.blue = b#map"

Markus M

> A quick glance at the composite raster color table makes me think it
> might be quite easy to do. Is there a command for this opération or
> should I try to write a script to do the job ?
> Thank you,
> Vincent
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

More information about the grass-user mailing list