Displaying 2 results from an estimated 2 matches for "4000,4000".
Did you mean:
5000,4000
2005 Aug 29
2
Non-standard characters in Ascii-Files
Dear R-list
In R 2.1.1 under Win XP on a P4 with 2GB Ram when typing
> temp<-matrix(c(1:16000000),4000,4000)
> write(file="temp.txt", temp)
> scan("temp.txt")
I receive:
Error in scan("temp.txt") : scan() expected 'a real', received '414851'
The motivation for evoquing this meassage is that I am getting the same
meassage with exported Ascii-Files...
2009 Jul 15
1
Read PNG file and display with more than 256 colors RGDAL
...find dll's that it was looking for....)
Ideally I would like to read in the png image and display in its original form as a plot background, hopefully with all its colors represented rather than being converted to a 256 color scale.
A code example is below:
png(file="file.png", 4000,4000)
par(mar=c(0,0,0,0))
myTile <- readGDAL("basemap.png",silent=TRUE); #basemap.png is a PNG file returned from googlemaps
myTile at data <- myTile at data[,1:3]
col <- SGDF2PCT(myTile,ncolors=256) ## myTile is a spatialGridDataFrame with 3 bands
myTile$ind <- col$...