Displaying 20 results from an estimated 30 matches for "spatialgriddataframes".
Did you mean:
spatialgriddataframe
2013 Jan 27
1
lapply and SpatialGridDataFrame error
Hi all, I have a set of 54 files that I need to convert from ASCII grid
format to .shp files to .bnd files for BayesX.
I have the following R code to operate on those files:
library(maptools)
library(Grid2Polygons)
library(BayesX)
library(BayesXsrc)
library(R2BayesX)
readfunct <- function(x)
{
u <- readAsciiGrid(x)
}
modfilesmore <- paste0("MaxFloodDepth_", 1:54,
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
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
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
2012 Dec 26
1
Change class of elements in list
Dear R users,
I have a list of objects of type "im"
> mylist$sp1
$sp2
$sp3
and I want to convert them to a list of objects of class "SpatialGridDataFrame"
This works for a single object of class "im":
a <- mylist$sp1
b <- as(a, "SpatialGridDataFrame")
Then I want to write each element in the new list as a TIFF file, with the name of the elements
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
2009 Jul 01
0
The step before interfacing to GRASS
Dear all,
A very basic terrain calculated as a matrix from Spatial Points Patterns:
#interpolate using the akima package
library(akima)
terrain=interp(ppoints$x,ppoints$y,ppoints$marks,xo=x0,yo=y0, linear=F)
> class(terrain)
[1] "list"
> class(terrain$x) #these are the x-coord i.e: [1...1000]
[1] "numeric"
> class(terrain$y)#these are the y-coord i.e: [1...1000]
[1]
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
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
2006 Oct 10
1
How to assign a rank to a range of values..
>From the following:
basin.map <- readAsciiGrid("c:/temp/area.asc", colname="area")
I have a SpatialGridDataFrame which has the x and y cordinate of a cell, and
the drainage area of that cell. There are many cells with a low drainage
area (in my case, 33000 with an area of 37.16) and one cell with the highest
drainage area (again, in my case, a drainage area of of
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
2007 Sep 05
1
geotiff or tiff files with world files
Hi,
I have a matrix of data which i can vizualize as an image - for example. I would like to save this image as a geotiff file or at a tiff file with a world file which holds the projection of my data (ultimately the data represent a map of some sort). I know i can save the data as an ESRI grid, but i am not interested in that.
I wonder if anybody knows about any code which will help me do
2009 Jun 11
1
GRASS raster data processing
...ing elevation data and the other containing an erosion index:
Kar_inc <-readRAST6("Incis_Kar", plugin=FALSE)
Kar_dem <- readRAST6("DEM_Kar", plugin=FALSE)
I just wanted to make a xy plot of erosion parameter vs elevation. How does
this work? I don't get how to handle SpatialGridDataFrames...
Thanks a lot
Maarten
--
View this message in context: http://www.nabble.com/GRASS-raster-data-processing-tp23981740p23981740.html
Sent from the R help mailing list archive at Nabble.com.
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
2013 Apr 26
1
How to export graph value in R
Dear exports,I have created a hypsometric curve (area-elevation curve) for my watershed by using simple command hypsometric(X,main="Hypsometric Curve", xlab="Relative Area above Elevation, (a/A)", ylab="Relative Elevation, (h/H)", col="blue")It plots the hypsometric curve in "RGraphics window", My question is how can I export values which is used
2007 Jul 06
0
import DTM with readRAST6()
Hello everybody,
I am a new R & Grass user.
I am interested in doing a kriging of the Temperature in a basin,
based on pixel elevation (DTM).
I use Grass 6.2.1 and R 2.5.1 and have installed the spgrass6 package.
The DTM is called "DTM_trentino_100m" and is like this:
north:5158000.0
south:5058500.0
east:1729700.0
west:1611600.0
rows:995
cols:1181
-9999.0 -9999.0 -9999.0
2009 Mar 17
0
(no subject)
# How do I make from a SpatialGridDataframe a normal data frame? If I do
this in package gstat:
library(gstat)
g.dummy <- gstat(formula = z~1, locations = ~x+y, dummy = TRUE, beta = 0,
model = vgm(1,"Exp",15), nmax = 20)
set.seed(1)
iso <- predict(g.dummy, newdata = xy, nsim = 10)
gridded(iso) = ~x+y
# spplot(iso,main="isotropic") # not essential for this question
# I
2009 Aug 18
0
kernel density estimation for univariate data using splancs
Hi,
I previously received help in extract data from a shapefile and now my question is about kernel density estimation. My objective is to have 3 kernel density plots; 2 for the each set of cases and the 3rd is the difference in kernel densities between the 2 sets of cases. Previously, I used the density function from the stats package, which worked but I wanted finer control of the bandwidth.
2011 Nov 24
1
readGDAL or raster for reading bit map files
Dear all,
I have asked yesterday of how I can read a simple bitmap file in R cran.
I was suggest to use either readGDAL or raster for loading my bitmap
a. I have done it with readGDAL like
store<-readGDAL(fname='lena256.bmp')
and it works,... but it converts my matrix-like notion of a bitmap to a large vector
b. Raster also returns a class that I can not understand.
So 1,
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]]