All Questions
4 questions
2
votes
1
answer
1k
views
Unable to writeRaster for signature "rasterPCA", "character"
I am currently trying to obtain two rasters that are the Principal component axes 1 and 2 for a list of bioclimatic variables that I am using. I am using the rasterPCA() function that exists in the ...
10
votes
1
answer
8k
views
Importing multiple stacked raster images in R?
I would like to import all multiple mosaic rasters (each mosaic is composed by 7 layers) from indicated folder into my R. Then access them as single multilayers rasters.
So I did:
# read all mosaics ...
10
votes
3
answers
6k
views
Remove clumps of pixels in R
I would like to remove isolated pixels (or clumps of pixels <9) from my raster image.
library(raster)
# create some raster data
r <- raster(ncols=12, nrows=12)
set.seed(0)
r[] <- round(runif(...
7
votes
2
answers
11k
views
How to write every raster from a list of rasters?
I have created a list of rasters - "norm" and run a several loops. Now I would like to write every created raster from "norm" (containing 1 layer) into one raster, having its specific name.
# I can ...