Reading Rasters, Attributes, Raster Subsetting, Vectorizing, Cropping
Today’s agenda includes:
We will use sf
, stars
, and units
packages.
Spatial entries in GIS can be represented as a vector or as a raster
In the previous lecture, we examine vectors and geometric operations with vectors.
Rasters are matrices or an array representing a rectangular area on the surface of the earth.
They contain elements such as :
.tif
).img
).hdf
, .he5
).nc
)There is one important package that we will work with: stars
terra
is also another important package developed by the same authors
Both contain classes, and extensive functions for working with rasters in R
We will mostly work with stars
stars
packageUnlike terra
and raster
, stars
is very well integrated with sf
sf
is the package that we have used for vector analysis.
A typical example of raster is satellite luminosity
Within economics, researchers use satellite luminosity as a proxy for economic activity
You can download satellite luminosity by going to https://www.ncei.noaa.gov/products/dmsp-operational-linescan-system
The next step is to scroll down to products