importing raster with embedded colors
?? GDAL's R API is complete, and does provide access to image metadata including color table mapping of pixel values in TIFF format rasters. The pixel value is used to index the color mapping table. See http://gdal.org/gdal_datamodel.html and search for "color table" -- it's at the far end of the page. You may still have to find more info on use of this color table by the map's designer. Alex Brown (a.brown at ieee.org)
On Mon, Aug 29, 2016 at 11:23 PM, Pascal Title <ptitle at umich.edu> wrote:
Hi all, I've downloaded a shaded relief map from www.naturalearthdata.com (link to specific raster: http://www.naturalearthdata.com/downloads/50m-cross-blend- hypso/50m-cross-blended-hypso-with-shaded-relief-and-water/ ). This website provides rasters with built-in color schemes that look really good. But I don't see how to import these colors into R with the raster. If I read in the raster and plot, I get the default terrain color scheme. If I load this .tif in QGIS, the color scheme is automatically loaded along with it. Is it possible to use the color scheme in R? thanks! -Pascal -- Pascal Title PhD candidate | Rabosky Lab <http://www.raboskylab.org/> Dept of Ecology and Evolutionary Biology University of Michigan ptitle at umich.edu pascaltitle.weebly.com [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo