Top "Raster" questions

A rectangular array of pixels.

Legend of a raster map with categorical data

I would like to plot a raster containing 4 different values (1) with a categorical text legend describing the categories such as 2 …

r map legend raster categorical-data
How do I extract raster values from polygon data then join into spatial data frame?

I would like to merge polygon data and raster data into one dataframe for purposes of then using randomForests package …

r extract raster spatial-data-frame
R Crop no-data of a raster

I would like to crop the no-data part of some rasters (example of the image in 1 where no-data is in …

r crop raster no-data
How can I create raster mosaic using list of rasters?

I need to create several raster mosaics. I'm using Package raster version 2.0-31 on a 64bits windows computer. I believe …

r raster mosaic
Bring rasters to same extent by filling with NA - in R

I have several cropped rasters with different geometry/outlines. Specifically spatial yield maps from several years of the same field, …

r stack spatial raster calc
How do I use rasterio/python to mask a raster using a shapefile, to set the raster pixels inside the polygons to zero?

I am trying to create a land mask to apply to satellite imagery, that will set the pixels in a …

python mask raster clip rasterio
Pairwise correlation between raster layers in R

I need accomplish a pairwise Pearson correlation between 19 raster layers for Africa Continent extracted from WordClim database. I want to …

r correlation raster
R crop raster data and set axis limits

With your help in another thread I have managed to plot some global maps. First I convert meteorological GRIB2 data …

r dictionary 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
R raster package split image into multiples

I have an image as below. It is 2579*2388 pixels. Lets assume that it's bottom left corner is at 0,0. From that …

r image image-processing split raster