Harvard Forest Soils Analysis (NEON)
The National Ecological Observatory Network has invested in high-resolution airborne imaging of their field sites. Elevation models generated from LiDAR can be used to map the topography and vegetation structure at the sites.
Check to see if there is a data
directory in your workspace with HARV
subdirectory in it.
If not, Download the data and extract it into your working directory.
The HARV
directory contains spatial data for Harvard Forest including raster data for a digital terrain model (HARV_dtmFull.tif
) and a digital surface model (HARV_dsmFull.tif
), and polygon data for the site boundary (harv_boundary.shp
) and the soil types (harv_soils.shp
).
- Make a map of the
harv_soils
data with the polygons colored based onDRAINAGE_C
column. Use the viridis color ramp. - Make a map of the
harv_soils
data with one facet (i.e., subplot) for each category in theDRAINAGE_C
column. - Using the
HARV_dtmFull.tif
data extract the maximum elevation (i.e., the DTM value) within each soils polygon. To get the maximum elevation instead of the mean value use themax
function instead ofmean
. Display a vector of the resulting elevations. - Add the vector of elevations from (3) to the original
sf
object and display the resulting data frame. - Make a map of the soil polygons colored based on their maximum elevation. Use the viridis color ramp.
- Make a map that is the same as (5), but preserves the UTM coordinates on the axes.