Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.77 KB

File metadata and controls

38 lines (25 loc) · 1.77 KB

Claude.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

SSR stands for Subcanopy Solar Radiation model. This is a python based model that takes airborne LiDAR point cloud files (.LAS or .LAZ) format and an existing bare-earth digital terrain model. It creates a digital surface model of the highest points within the raster and by subtracting the two rasters creates a vegetation height raster.
The point cloud is used to determine the probability of light penetrating vegetation and reaching the ground. This is called the Light Penetration Index (LPI). It varies slightly by quarter due to solar position. The LPI is the ratio of ground points to total points within an area defined by the height of the vegetation in the area.

The final model runs two solar radiation models, one on the DTM, the other on DSM. It then combines the two using conditional logic and the LPI.

Documentation

https://github.com/cbode/ssr/wiki

Input files

  • bare-earth DTM raster in TIFF format
  • directory of .las point cloud files for the same spatial extent

Output files

  • digital surface raster
  • vegetation height raster
  • LPI index raster
  • 52 solar radiation rasters, one for each week of a year

Commands

Scan the current ssr repository.

The python code has dependencies on GRASS GIS and is running an outdated version of python.

Add a .gitignore file

Update python to current version

Make all code changes required to be compliant with the newest python version.

Replace GRASS GIS commands with WhiteBox commands

Use the python library WhiteBox for GIS processing. Convert all GRASS GIS commands into WhiteBox function calls.

All output raster files should be in TIFF format with LZW compression