Claude.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
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.
https://github.com/cbode/ssr/wiki
- bare-earth DTM raster in TIFF format
- directory of .las point cloud files for the same spatial extent
- digital surface raster
- vegetation height raster
- LPI index raster
- 52 solar radiation rasters, one for each week of a year
The python code has dependencies on GRASS GIS and is running an outdated version of python.
Make all code changes required to be compliant with the newest python version.
Use the python library WhiteBox for GIS processing. Convert all GRASS GIS commands into WhiteBox function calls.