Displaying 8 results from an estimated 8 matches for "rasterstack".
2013 May 15
1
stack object layer names not visible
I use to be able to see the layer names of a RasterStack by just typing
its name but now I only get this
class : RasterStack
dimensions : 70, 180, 12600 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : -80, 10, 50, 85 (xmin, xmax, ymin, ymax)
coord. ref. : NA
If I do plot(s) then I can see all the layers and their names.
Why...
2018 Mar 08
0
add single points to a level plot
...h=ifelse(pts$z1 < 0.5, 2, 3), cex=2, col=1),
columns=1) +
+ layer(sp.points(xy, pch=ifelse(pts$z2 < 0.5, 2, 3), cex=2, col=1),
columns=2)
And got the error:
Error in UseMethod("levelplot") :
no applicable method for 'levelplot' applied to an object of class
"c('RasterStack', 'Raster', 'RasterStackBrick', 'BasicRaster')"
what is the problem? Thanks.
On Thu, Mar 8, 2018 at 12:07 AM, lily li <chocold12 at gmail.com> wrote:
> Hi all,
>
> I'm trying to add single points with known coordinates to a level plot,
> but...
2018 Mar 08
3
add single points to a level plot
Hi all,
I'm trying to add single points with known coordinates to a level plot, but
could not find the proper answer. I got to know that layer() function is
good for this, but I don't know which package is related to this function.
The source is here:
https://stackoverflow.com/questions/28597149/add-xy-points-to-raster-map-generated-by-levelplot
but my question is a little different as I
2018 Mar 08
1
add single points to a level plot
...col=1),
> columns=1) +
> + layer(sp.points(xy, pch=ifelse(pts$z2 < 0.5, 2, 3), cex=2, col=1),
> columns=2)
>
> And got the error:
> Error in UseMethod("levelplot") :
> no applicable method for 'levelplot' applied to an object of class
> "c('RasterStack', 'Raster', 'RasterStackBrick', 'BasicRaster')"
>
> what is the problem? Thanks.
>
> On Thu, Mar 8, 2018 at 12:07 AM, lily li <chocold12 at gmail.com> wrote:
>
> > Hi all,
> >
> > I'm trying to add single points with known...
2013 Mar 18
4
Why stacking rasters return NAs?
...Error in .overlayList(x, fun = fun, filename = filename, ...) :
cannot use this formula, probably because it is not vectorized
I then checked the data but found that all values were returnd as NA and
this may explain why i am getting the error.
saf
class : RasterStack
dimensions : 720, 1440, 1036800, 601 (nrow, ncol, ncell, nlayers)
resolution : 0.25, 0.25 (x, y)
extent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0
+no_defs
names : Vol_025_H//00_1_wg...
2012 Sep 10
0
predict pixels of raster using caret-derived models
Is it somehow possible to use the the predict method of the raster package
with a prediction model obtained using caret's train()?
/
predict(rasterStack, carettrain, filename="...", progress='text',
format="BSQ",
datatype='INT1U', type='response', overwrite=TRUE) /
Thank you
--
View this message in context: http://r.789695.n4.nabble.com/predict-pixels-of-raster-using-caret-derived-models-tp46...
2013 Mar 19
1
How to get the rolling standard deviation in rasters?
...ds <- overlay(saf ,fun=function(x) movingFun(x, fun= sd, n=3,
na.rm=TRUE))
### did not work
Error in .overlayList(x, fun = fun, filename = filename, ...) :
cannot use this formula, probably because it is not vectorized
> saf
class : RasterStack
dimensions : 720, 1440, 1036800, 12 (nrow, ncol, ncell, nlayers)
resolution : 0.25, 0.25 (x, y)
extent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84
+towgs84=0,0,0
names : SM_RE01_M//7_amen...
2012 Jun 06
0
randomForest Species Distribution Modelling
...-18 9 0 0 0 0 0 0 0 0 1
Step 2
I then uploaded the environemtal raster layers and stacked them.
>files <-list.files(("C:/Users/GIS-Modeller/Documents/10m/ASCII"), pattern=
'asc', full.names=TRUE)
>predictors <-stack(files)
> predictors
class : RasterStack
dimensions : 1745, 3909, 6821205, 10 (nrow, ncol, ncell, nlayers)
resolution : 10, 10 (x, y)
extent : 417085.1, 456175.1, 5556329, 5573779 (xmin, xmax, ymin, ymax)
coord. ref. : NA
min values : NA -2.1e+09 -2.1e+09 -2.1e+09 -2.1e+09 -2.1e+09 -2.1e+09
NA NA NA
m...