Re: [R-sig-Geo] writeGDAL: pseudocolor image?

2012-02-27 Thread Agustin Lobo
You are right, I've download it and gdalinfo indicates a jpeg. It's weird because the file I upload is a real tif, could it be that it gets automatically modified? Anyway, I attach the tif to another message for you. The original file is jpeg. Then I use imageJ to change it to "8 bit color" (this

Re: [R-sig-Geo] writeGDAL: pseudocolor image?

2012-02-27 Thread Barry Rowlingson
On Mon, Feb 27, 2012 at 11:49 AM, Agustin Lobo wrote: > Thanks Vikram, > > But that would be a multiband image, not a pseucolor image. I need > a single layer image including its colortable in the same file (i.e. a > temperature field > represented in color such as > https://sites.google.com/site/

Re: [R-sig-Geo] writeGDAL: pseudocolor image?

2012-02-27 Thread Agustin Lobo
Thanks Vikram, But that would be a multiband image, not a pseucolor image. I need a single layer image including its colortable in the same file (i.e. a temperature field represented in color such as https://sites.google.com/site/filestemp2/home/pseudocolorv2.tif ). Regards, Agus El día 27 de f

Re: [R-sig-Geo] writeGDAL: pseudocolor image?

2012-02-27 Thread Vikram Ranga
Hello Agus, Have you tried writeRaster() command from raster package? I have tried it and it works wonderfully. I have tried it like this octstack<-stack(croctb1,croctb2,croctb3,croctb4,croctb5,croctb7) writeRaster(octstack,"H:/../map_oct.tif", overwrite=T) you can also write *.img and a numbe

[R-sig-Geo] writeGDAL: pseudocolor image?

2012-02-26 Thread Agustin Lobo
Hi! Is it possible to write a pseudocolor image as a geotif with embedded color table using writeGDAL() or any other R command? I mean an image such as: $ gdalinfo pseudocolorv2.tif Driver: GTiff/GeoTIFF Files: pseudocolorv2.tif pseudocolorv2.tif.aux.xml Size is 217, 232 Coordinate System