On 10/25/07, Agustin Lobo <[EMAIL PROTECTED]> wrote: > Hi, > > Is image() able to display a color composite?
The displayDataset() function should use the colormap. You will need to open with GDAL.open(). THK > > I've made an 8 bit color composite (with another software), saved it as > geotif and then, in R: > > t1pcs <- readGDAL("G:/PERU/imorm2007/test1TNT/PC1_3s8.tif") > image(t1pcs) > > but the color table seems wrong. I've checked with other programs, i.e., > IrfanView, and the file is correct. So I think that the problem is that > col = heat.colors(12) is set by default, and the SpatialGridDataFrame > object created by rgdal does not keep the color table. > > I've also tried with a 24-bit composite, and in that case rgdal imports > as a 3-layer image. > > Is there any specific way I could import the color table of the > composite image? > > Thanks > -- > Dr. Agustin Lobo > Institut de Ciencies de la Terra "Jaume Almera" (CSIC) > LLuis Sole Sabaris s/n > 08028 Barcelona > Spain > Tel. 34 934095410 > Fax. 34 934110012 > email: [EMAIL PROTECTED] > http://www.ija.csic.es/gt/obster > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Timothy H. Keitt, University of Texas at Austin Contact info and schedule at http://www.keittlab.org/tkeitt/ Reprints at http://www.keittlab.org/tkeitt/papers/ ODF attachment? See http://www.openoffice.org/ _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo