Displaying 20 results from an estimated 4000 matches similar to: "readGDAL or raster for reading bit map files"
2007 Sep 20
2
Superimposing vector polygons over raster grid in a plot
Hello:
I would like to superimpose vector polygons (state outlines) from a
Shape file on top of a satellite image,
imported into a SpatialGridDataFrame from GEOTIFF via gdal_translate and
readGDAL.
When I plot polygon and point shape files in R, into
SpatialPointDataFrame and SpatialPolygonDataFrame,
the two feature sets line up geographically, so it seems logical that a
SpatialGridDataFrame
2012 May 10
2
converting raster image
Dear R users,
I was wondering how I can convert a raster image (that made R through interpolation) into an ascii or csv format?
this is the last line of my command
p <- interpolate(r, tpsfit)
So p is my raster file which I want to convert into ascii or csv
Many thanks
Regards
Mintewab
2011 May 05
1
R - problem with my loops which operate on raster data
library(rgdal)
my_asc=dir("~/Pulpit/dods/karol/TVDI
113_121",pattern=".asc",recursive=T,full.names=T)
for (i in 1:length(my_asc))
{
r <- readGDAL(my_asc[i])
z <- as.matrix(r)
vectordata[i] <- mean(z)
vectordatamax[i] <- max(z)
vectordatamin[i] <- min(z)
vectordev[i] <- sd(z,na.rm=True)
hist(z)
2011 Nov 23
1
REad bitmap files
Dear all,
I am looking for a function that can read a simple bmp file and return me a matrix with their corresponding values.
I have already looked in the packages
require(ReadImages)
require(pixmap)
and also did apropos("image")
but I could not find something that can do something like that.
I have also tried the read.ftable but it also failed.
B.R
Alex
[[alternative HTML
2010 Sep 24
2
Reading in .aux (ESRI raster files) into R
Dear All,
I'v tried to read in data in numerous ways including:-
Spain10km<-data.frame(readAsciiGrid("F://RMap//sp10kpointid1.aux"))
Error in readAsciiGrid("F://RMap//sp10kpointid1.aux") :
object 'cellsize' not found
In addition: Warning message:
In readLines(t, n = 6) :
incomplete final line found on 'F://RMap//sp10kpointid1.aux'
2009 Jul 15
1
Read PNG file and display with more than 256 colors RGDAL
Hello list
I am trying to use a Googlemaps tile (png file, 640 X 640 px tile) as a background to a plot and have been using the rgdal library to read in the PNG file (modified from code in the RGoogleMaps package). This works OK. My problem is is that the SGDF2PCT function in rgdal seems to be limited to 256 colors and this is introducing (I think) some degradation to the image which appears on
2012 May 08
2
PPM to BMP converter
Dear all,
Several days ago, I posted How to write a bmp file pixel by pixel. Instead of bmp, I succeeded in writing a PPM file by using the pixmap package. Thanks for the hint generously provided by Uwe Ligges.
Now I have a new question. How to convert a PPM file to BMP file in R? I know I can do this in photoshop or by some other softwares, but I think if I Can do this in R, that
2010 Oct 19
2
Tif image to 8bit colour matrix.
Dear listers,
I have a collection of tif images that I would like to convert, in R, to a
matrix containing the values of the 8bit colour. Ideally, I would like a matrix
for each of the colour channels (red, blue and green). I have 'googled' and
searched the help list but have yet to find a solution and hope that someone can
point me in the right direction.
I currently use
2013 Oct 24
1
Plot.raster hides the axis layer
Hi all,
I am trying to plot a raster object (I can explain why but the point is that it would be a raster objeƧt)..
I have selected a small code to show you exactly the problem
require(raster)
test<-matrix(data=runif(10000),nrow=100)
m<-raster(test)
plot(m,axes="FALSE")
axis(1,at=c(0,1),labels=c("a","b")) # THIS DOES NOT CHANGE THE INVISIBLE AXIS WHILE
2010 Oct 01
1
colored rasterImage()
Hello,
I have been exploring the possibility to transition some code that
currently uses image() to use the new rasterImage(). To date, I
haven't been able to specify a color look-up strategy that works. For
example...
nx <- 100
ny <- 100
m <- matrix(data = rep(seq(0,1, length = nx), ny), ncol = nx, nrow =
ny, byrow = TRUE)
plot(1:nx, 1:ny, type = "n")
my.color
2008 Dec 10
2
exporting rast from R to GRASS
Hi, everybody!
i created a imagem by kriging using geoR package. I imported points
from GRASS("zn", after converted to geodata "zn_geo"), the border
"zn_border" and a raster mask. Then i interpolated the points by
kriging and created a raster image. Now, i need export this image back
to GRASS to use it in the module r.mapcalc. I can't do it. I tried use
2010 Jul 20
2
data from SpatialGridDataFrame
Dear All,
I have a raster map of the class 'SpatialPointsDataFrame' and coordinates
of the class 'SpatialPoints'. I would like to retrieve the values that are
contained in the raster map at the specific locations given by the
coordinates.
Can anyone help me out?
Kind regards,
Katrin Fleischer
2010 Mar 17
0
In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
Dear Ruser,
I am trying to use the map library. But I have been problem the follow
message.
Warning message:
*In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
*
library(rgdal)
library(RgoogleMaps)
> GetMap(markers =
'40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc',
destfile = "MyTile1.png");
Read 1 item
[1]
2010 Jul 28
2
Beginner stucked with raster + geoR package.
Hello everyone.
I am trying to build up understanding in R by trying to develop just some simple
scenarios.
I would like to explain you what I am trying to do and what I did so far.
I would like to put inside a RasterLayer (raster package) a Gaussian field (for
given covariance) using grf function (geoR package)
1. First I created a Raster Layer object
r <- raster() # Default values are
2012 Sep 05
1
analysis of bitmaps
I'm interested in using R to perform some statistical analysis of bitmaps. When I search, I see a lot of information about outputting bitmaps, but I'm not finding much about loading a bitmap into a data frame so that it can be analyzed. Would someone have a quick pointer to help me out?
[[alternative HTML version deleted]]
2010 Mar 19
1
error in map library
Dear Ruser,
>
>
> I am trying to use the map library. But unfortunately I am facing the
> warning message above:
> Warning message:
> *In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
> *
I want to use that library because I intend to plot some station in a
Brazilian map.
I really appreciate any help.
>
>
===here what I was testing========
2007 Mar 03
1
R software to place points on Yahoo maps
Is there any R software that create an image from Yahoo maps together
with points of known UTM coordinates (or lat/long marked? Note that
my region of interest is not covered in sufficient detail by Google maps.
It actually does not have to be Yahoo maps as long as it has sufficient
coverage of my region but that's the one I have found with coverage of
my region. The scale I am interested in
2012 Mar 21
2
To overlay my raster and its boundary
Hi
I want to overlay my raster and its boundary which is a shapefile.
When I used thise code separately, all is ok:
# Open raster
>Image<-read.table("C:\\Users\\Documents\\Nouveau\\Frequence.txt",sep="",dec=",",header=TRUE)
>testo<-rasterFromXYZ(Image)
>plot(testo)
>testo2 <- aggregate(testo,fact=10, fun=mean)
>plot(testo2)
# open
2013 Jan 14
4
How to open grib file in R?
I have this https://echange-fichiers.inra.fr/get?k=6TdTdezNeZwAqJtpwVm
grib file which is a regular lat-lon 0.25x0.25 degrees and contains 4 fields
.
I tried to open it using :
grib <-
readGDAL("C:\\Users\\aalyaari\\Desktop\\Vol_025_H14_2010060700.grib")
but I got this error:
C:\Users\aalyaari\Desktop\Vol_025_H14_2010060700.grib has GDAL driver GRIB
and has 721 rows and
2010 Oct 25
2
plot does not work
Hello everyone
The following two commands
plot.default(seq(1,5),seq(2,6))
plot(seq(1,5),seq(2,6))
plot nothing. One day ago this would create a simple plot diagram but
unfortunately right now no plot appears.
?plot returns
Help on topic 'plot' was found in the following packages:
Plot a Raster* object
(in package raster in library