Reputation
1,051
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
3 6
Newest
 Yearling
Impact
~23k people reached

Jul
20
awarded  Yearling
Jun
29
answered R - How to “smooth” a raster map
Jun
25
revised Creating a new raster layer based on mean of other raster layers, ignoring NA values in R
added 1 character in body
Jun
25
answered Creating a new raster layer based on mean of other raster layers, ignoring NA values in R
Jun
25
comment Cross validation in thiessen polygons interpolation
(perhaps better known as 'nearest neighbor' interpolation)
Jun
24
comment in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?
I should add that there is no reason for you to create the plots you show. You do not have raster data. I only made them to create example data. You should start at bg <- intersect(buf, gom)
Jun
24
comment in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?
I do not have your data, so you need to try to work back from my example to your data. Your plots look fine (but not very useful, in my example the data set is much smaller, to explain the principle). The way you create your buffers is bizarre. Try x <- spsample(buffer_etude[1,], 20, type='random') and then x <- SpatialPointsDataFrame(x, data.frame(ID=1:20))
Jun
24
revised in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?
I put the R code in a code block...
Jun
24
suggested approved edit on in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?
Jun
22
answered How to produce a finer resolution spatial grid from coarser grid in R?
Jun
22
answered in R : get a SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute?
Jun
21
comment Processing large amounts of Rasters in R
avoid the inner loop. out <- sum(stack(thisWinterRasterNames)). Also see this:gis.stackexchange.com/questions/151424/…
Jun
20
comment Raster data for maximum temperature
monthly weather data by year can be downloaded from prism.oregonstate.edu
Jun
20
comment How to choose a shapefile interactively in R
or use s <- shapefile( file.choose() ) (from the raster package)
Jun
19
answered I need to create a function in R that processes rasters in esri grid format
Jun
18
answered Compare two rasters in R with the cell value from one replacing the cell value from another
Jun
14
comment Why does @data@values slot for RasterLayer only contain logical(0) and not the actual values?
the logical(0) is in fact the value for any Raster* object created from a file. Either way, as @mdsumner says, do not directly read these values, and certainly do not set them! (although your NDVI1@data@values <- getValues(NDVI19east) won't affect anything, these values are ignored). It is probably further down your script where you do not understand how to effectively use these objects. You can use getValues, but even that is rarely necessary. Provide a simple, self-contained, example of what you are trying to achieve.
Jun
11
comment Mosaic rasterstacks based on minimum of certain layer?
I have answered the question here: stackoverflow.com/questions/30750750/…
May
30
comment How to center continuous raster layer by subtracting mean and dividing by standard deviation using QGIS raster calculator?
In R it can actually be simpler than that: centered_raster <- scale(my_raster)
May
28
comment Extracting point data for each lat and long from raster file into a dataframe
Sorry, fixed that. That's what happens when examples do not have embedded data.