Supplement 1. Code developed to measure riparian buffer width, vegetation height and canopy cover along stream reaches.

Abstract

<h2>File List</h2><div> <p><b>All files at once:</b> <a href="Code.zip">Code.zip</a></p> <p><a href="funCalcStreamLength.m">funCalcStreamLength.m</a></p> <p><a href="funCalcTransectBufferWidth2.m">funCalcTransectBufferWidth2.m</a></p> <p><a href="funCalculateMEI.m">funCalculateMEI.m</a></p> <p><a href="funCalculateNewXY.m">funCalculateNewXY.m</a></p> <p><a href="funCalculatePointsAlongLine.m">funCalculatePointsAlongLine.m</a></p> <p><a href="funCalculatePointsAlongLine_Reverse.m">funCalculatePointsAlongLine_Reverse.m</a></p> <p><a href="funCalculatepointsAlongLine_Reverse_TransectCenter.m">funCalculatepointsAlongLine_Reverse_TransectCenter.m</a></p> <p><a href="funCalculateRectangleVertices.m">funCalculateRectangleVertices.m</a></p> <p><a href="funFindStreamGrdLidarExtent.m">funFindStreamGrdLidarExtent.m</a></p> <p><a href="funFindStreamVeglidarExtent.m">funFindStreamVeglidarExtent.m</a></p> <p><a href="funPrctile.m">funPrctile.m</a></p> <p><a href="funSampleLidar.m">funSampleLidar.m</a></p> <p><a href="funSampleLidar_forestClass.m">funSampleLidar_forestClass.m</a></p> <p><a href="funSplitStreams.m">funSplitStreams.m</a></p> <p><a href="ProduceFinalTransectData_ForAnalysis.m">ProduceFinalTransectData_ForAnalysis.m</a></p> <p><a href="SampleStreambufferWidth_Mar31_2012_Oct2014_Publish.m">SampleStreambufferWidth_Mar31_2012_Oct2014_Publish.m</a></p> <p><a href="Slidefun.m">Slidefun.m</a></p> </div><h2>Description</h2><div> <p>The ProduceFinalTransectData_ForAnalysis.m and SampleStreambufferWidth_Mar31_2012_Oct2014_Publish.m files are the core code used to process all of the LiDAR data presented in this manuscript. All other code included in this supplement are functions that are called within the two main scripts. Please be sure to save all code files in the same directory. The inputs to both scripts are detailed in the top matter of the scripts.</p> <p>First, run SampleStreambufferWidth_Mar31_2012_Oct2014_Publish.m. The inputs for this script include ground and non-ground lidar point clouds saved in the  "lidarData" directory and a streams data saved in x,y,z format. Please see the code for documentation and examples of all inputs. Other input variables can be defined in the top matter of the code or you may choose to use the default values. All final output will be saved in the "finalResults" folder – included as an empty directory in this supplement. This script will do several things. First it will segment out your stream data into 1,000.01m long reaches. Analyzing smaller segments of stream reduces the file processing sizes and time. Next, the code will use the stream segments to calculate transects within which the lidar data will be analyzed. The final output will be data for each transect that includes its width, and vegetation structure within moving windows as defined in the algorithm. The second script, ProduceFinalTransectData_ForAnalysis.m, takes all of the output from the first script and generate a final matrix that can be used to perform final statistical analysis. This code uses the results in the finalResults folder.</p> </div

    Similar works

    Full text

    thumbnail-image

    Available Versions