Dear all,
I'm new to this forum.
I'm desperately looking for help, as I'm stuck with a problem and I can't find any solution.
I'd like to open a raster map (for example with rgdal it is read as a
SpatialGridDataFrame) and then save it as a gif image with a specific
color palette.
I can't find the way to specify the color, so I can only create greyscale images.
It sounds simple but nothing seems to work.
I've been trying with:
Kp1P<- readGDAL(mymap)
writeGDAL(Kp1P,"myGIFmap.gif",drivername="gif",col=colmed)
but col is not an option in writeGDAL command
I need to specify this colors:
colmed<-c(rep(rgb(255/255, 204/255, 204/255),10),rep(rgb(255/255,
184/255, 176/255),10),rep(rgb(255/255, 164/255,
176/255),10),rep(rgb(255/255, 144/255, 125/255),10),
rep(rgb(250/255, 125/255, 102/255),10),rep(rgb(247/255, 104/255,
79/255),10),rep(rgb(242/255, 85/255, 61/255),10),rep(rgb(235/255,
65/255, 42/255),10),
rep(rgb(227/255, 40/255, 23/255),10),rep(rgb(219/255, 0/255, 0/255),10))
HELP!
Lorenzo
[[alternative HTML version deleted]]