/wytham-canopy-model

Code to ingest DEFRA LiDAR data and calculate a Canopy Height Model

Primary LanguageRMIT LicenseMIT

Extract a Canopy Height Model from LiDAR data

14 February, 2022


Wytham Woods, Oxford


Code to extract and load DSM and DTM data from the UK's National LIDAR Programme


Project Organization

├── LICENSE
├── README.md          <- The top-level README.
├── data
│   └── raw            <- The original .asc files. Data are program. extracted to
│                         the relevant subfolders (DTM and DSM)  
│
├── notebooks          <- .Rmd notebooks or .R scripts
│   └── 0.1_data-ingest.Rmd 
│                                 
├── reports            <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures        <- Generated graphics and figures.
│
├── renv.lock          <- The 'requirements' file for reproducing the environment,
│                         generated with renv::snapshot()
│
├── .Rprofile          <- Used to activate renv for new R sessions launched in the project.
│
├── 01_gtit_maps.Rproj <- Shortcut to opening the project if using RStudio
│
├── renv         
│   └── activate.R     <- The activation script run by the project Rprofile.
│
├── src                <- Source code for this project (called as modules from the notebook(s))
│   └── read.R 
│

To use this repository:

  1. Navigate to the folder where you want to install the repository. Then type git clone https://github.com/nilomr/wytham-canopy-model.git

  2. Open the canopy-model.Rproj file. The renv package, used for dependency management, will be automatically installed if it isn't already.

  3. In your R console, type renv::restore(lockfile = "renv.lock"). This will install the project's R dependencies
    — you might still need to manually fix some unresolved system dependencies.

  4. Open and run the 0.1_data-ingest.Rmd notebook


To do

  • Add renv.lock
  • Add contour and nestboxes
  • test vegetation model (see here)

2022 | Nilo Merino Recalde | based on the cookiecutter data science project template.