Displaying 10 results from an estimated 10 matches for "rasterbricks".
Did you mean:
rasterbrick
2018 Jun 01
1
rasterize SpatialPolygon object using a RasterBrick object
I am trying to rasterize a SpatialPolygon object by a RasterBrick object.
The documentation of the raster::rasterize function explicitly says this is
allowed. Here's what I am doing
# load the raster package
library("raster")
# create a raster brick object using the example from the brick
function documentation
b <- brick(system.file("external/rlogo.grd",
2013 Jul 17
2
Using RasterBricks
Dear listers,
I am trying to create a RasterLayer of the values of a rasterbrick object.
The rasterbrick object has, for example, 100cells
library(raster)
r <- raster(ncol=10, nrow=10)
r[]=1:ncell(r)
s <- brick(r,r,r)
s <- s * 1:3
Each cell of the rasterfinal will have the AREA UNDER CURVE formed by the
values in each cell of the three original rasters.
For example:
s[4] has the
2013 Sep 09
1
usando RasterBricks
Necesitaría ayuda con una cuestión. Pongamos por ejemplo estos valores
aleatorios para generar un RasterBrick s de 3 capas.
library(raster)
r <- raster(ncol=10, nrow=10)
r[]=1:ncell(r)
s <- brick(r,r,r)
s <- s * 1:3
Habría alguna forma sin hacer un bucle for, que me devolviese un vector con
los valores medios de cada una de las 3 capas.
mean_s<-NULL
for (i in 1:3)
{
2013 Jul 17
0
Using RasterBricks
Hola Jorge,
> My idea was to use 'stackApply':
Para esto que necesitas es más sencillo usar calc. Si quieres usar
stackApply, debes indicar rep(1, 3) como índices en lugar de sólo 1.
Así, la función será (los ... son necesarios en stackApply):
myFUN <- function(y, ...) {
x <- seq_along(y)
trapz(x, y)
}
Y aplicada con calc:
FINAL <- calc(s, myFUN)
o con
2018 May 24
2
Problem with adding a raster and a brick
Hi,
I seem to be having a problem adding the following two raster objects
together - one is a rasterLayer, the other is a rasterBrick. The extent,
resolution, and origin are the same, so according to my understand it
should work. The objects look like so:
> obs.clim
class : RasterLayer
dimensions : 60, 200, 12000 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -70,
2018 May 24
0
Problem with adding a raster and a brick
On Thu, 24 May 2018 at 18:41 Mark R Payne <markpayneatwork at gmail.com> wrote:
Hi,
I seem to be having a problem adding the following two raster objects
together - one is a rasterLayer, the other is a rasterBrick. The extent,
resolution, and origin are the same, so according to my understand it
should work. The objects look like so:
> obs.clim
class : RasterLayer
dimensions : 60, 200,
2018 Jun 01
0
Problem with adding a raster and a brick
This is now fixed in development on RForge, you can try it out by
installing from there, or from the Github mirror with
devtools::install_github("rforge/raster/pkg/raster").
(To get fixes into raster email the maintainer directly - you might not get
a response but it'll be addressed).
Cheers, Mike.
On Thu, 24 May 2018 at 20:08 Michael Sumner <mdsumner at gmail.com> wrote:
2013 Apr 26
1
[newbie] how to find and combine geographic maps with particular features?
SUMMARY:
Specific problem: I'm regridding biomass-burning emissions from a
global/unprojected inventory to a regional projection (LCC over North
America). I need to have boundaries for Canada, Mexico, and US
(including US states), but also Caribbean and Atlantic nations
(notably the Bahamas). I would also like to add Canadian provinces and
Mexican states. How to put these together?
General
2012 Jun 06
0
randomForest Species Distribution Modelling
Hi,
I appologise if this is a rudimentary question and long winded but I just
wanted to let ye know where I'm comming from. I'm new to R and I'm trying to
use the 'randomForest' package to classify and predict. The Error message
that is troubling me is:
> pr<-predict(predictors,rf1, ext=ext)
Error in x[...] <- m : NAs are not allowed in subscripted assignments
In
2013 Jul 19
0
Resumen de R-help-es, Vol 53, Envío 26
...lo aquellas partes del mensaje a las que está
respondiendo.
Asuntos del día:
1. copiar directorio en r (Javier Villacampa González)
2. Re: copiar directorio en r
(miguel.angel.rodriguez.muinos en sergas.es)
3. Re: copiar directorio en r (Javier Villacampa González)
4. Re: Using RasterBricks (Oscar Perpiñán Lamigueiro)
5. consulta xml para ubuntu 32bits (Ana Marina Srur)
6. Re: consulta xml para ubuntu 32bits (Freddy Omar López Quintero)
7. Re: consulta xml para ubuntu 32bits (Jose Luis Cañadas)
8. Re: consulta xml para ubuntu 32bits (Freddy Omar López Quintero)
---------...