Premise:
We need some randomly selected areas for performing a vegetation survey. Two possible approaches are given: random selection of grid cells from a 7x7 grid superimposed over the region of interest, and random generation of 100x100 meter blocks which meet certain criteria on how close they can be from each other and the edges of the region. The region and grid files are attached at the bottom of this page.
Generate Region Data
Compute Random Grid Cells
Generate Randomly Placed Blocks
Additional Example: Compute 3 blocks per "half" of the watershed.
Conversion of Sample Plot Boundaries to Points
Example
Input File Format (see attached CSV file)
start stop species transect block transect.length notes
0 27 open t01 b1 344
68 93 open t01 b1 344
137 148 open t01 b1 344
160 177 open t01 b1 344
209 219 open t01 b1 344
237 318 open t01 b1 344
332 344 open t01 b1 344
27 68 blue oak t01 b1 344
93 137 blue oak t01 b1 344
148 160 blue oak t01 b1 344
177 209 blue oak t01 b1 344
219 237 blue oak t01 b1 344
318 332 blue oak t01 b1 344
[...]
Setup
Example visualization (see attached PDF)
Convert to matrix representation
Matrix representation and canopy overlap simplification
*
[,1] [,2] [,3] [,4] [,5]
[1,] 0 0 8 0 8
[2,] 0 0 8 0 8
[3,] 0 0 8 0 8
[4,] 2 0 8 0 10
[5,] 2 0 8 0 10
[6,] 2 0 8 0 10
[7,] 2 0 8 0 10
[8,] 2 0 8 0 10
[9,] 2 0 8 0 10
[10,] 2 0 8 0 10
[11,] 0 0 8 0 8
[12,] 0 0 8 0 8
[13,] 0 0 8 0 8
[14,] 0 0 8 0 8
[15,] 0 0 8 0 8
[16,] 0 0 8 0 8
[17,] 0 0 0 16 16
[18,] 0 0 0 16 16
[19,] 0 0 0 16 16
[20,] 0 0 0 16 16
[21,] 0 0 0 16 16
Convert codes
Re-attach transect and block id
Compute percent cover by transect
Compute percent cover by block
Compute percent cover across all data