November 2018
Beginner to intermediate
354 pages
6h 59m
English
Using the raster() function from the raster package, we can read raster data. Now, let's read band 4 of the Landsat image in the data folder:
library(raster)band4 = raster("D:/Spatial_Analysis_1/LC08_L1TP_137044_20170610_20170616_01_T1.tar/LC08_L1TP_137044_20170610_20170616_01_T1_B1.tif")band1plot(band4)
The output will look as follows:

Read now
Unlock full access