Top "R-raster" questions

raster is an R package for geographic data analysis and modeling.

Calculating number of pixel(count) raster files in R

I have a huge number of raster files and a polygon that is within the extent of the raster files. …

r raster r-raster spatial-data
Changing the raster spatial extent in R

I have two rasters and I want to make the spatial extent of one to another. Then save it as …

r r-raster extent
Sum nlayers of a rasterStack in R

I am working with daily observation of climate data organized in .nc files. I read them using the stack command …

r r-raster
How to extract data from a RasterBrick?

I have a RasterBrick consisting of monthly rainfall data over 7 years, so it has 7 layers with 12 slots each: rainfall <…

r spatial raster r-raster
Convert raster into matrix with R

I'm currently convert original matrix into a raster to use the focal function, then I would like to convert back …

r raster r-raster