This project contains code related to the paper titled: 3D habitat structure drives avian functional and trait diversity across North America
GENERAL INFORMATION Name of files in order of their use:
- 2017_NEON_LiDARDownload_UnifiedCode.R
- LiDAR_DataProcessing_chapter1.R
- 2017_DataCreation_LiDAR_SpRich.R (Out of date)
- 3DFragmentationMetrics_DataLoad_chapter1.R (Out of date)
- 3DMetrics_Chp1_REDO_4Bins_resolution.R (current)
- 2017_Abundance_TraitDataPrep.R
- DataPrep_MultiSpeciesDistanceModels.R
- DistSampling_Full_2017NEON_supercomputer.R
- ProcessDistanceSamplingOutputs.R
- Export_SpRange_SubsetNEONDomainsByspRanges.R
- FilterPointsByNEONAndSpRangeOverlap_20000DistSampleOutput.R
- DistSamp_SpRichCalculations.R
- PrepSpAbundanceDataWithTraits.R
- SuperComp_gawdis_test.R
- PD_DataPrep_MetricCalculation.R
- NullModel_DataPrep_and_Calculations.R
- Chp1_FinalDataPrep_updated.R
- PCoA_Redo_July2023.R
- Chapter1_FinalModels.R
- Density_plots_PaperFigures.R
DATA Data assoiciated with this project came from the following datasets:
- National Ecological Observatory Network (NEON) shapefiles: https://www.neonscience.org/data-samples/data/spatial-data-maps
- LiDAR Data: NEON data product: DP1.30003.001
- Breeding landbird point counts/Elevation/latitude: NEON data product DP1.10003.001
- Trait data: AVONET (Tobias et al. 2022) and EltonTraits 1.0 databases (Wilman et al. 2014).
- Temperature Range: Daymet (Thornton et al. 2022)
- Species range maps: BirdLife International (BirdLife International 2022)
- Phylogenetic Trees: Bird Tree (Jetz et al. 2012) - Ericson backbone
We used data from 385 avian plots from 38 NEON terrestrial sites across 17 of the 20 NEON Domains. 260 species were included across all avian plots. Data came from 2017. Plots were 250m in radius
Final data file: Chp1_FinalData_AllIndicies_UpdatedVoxel_4bins_repair_ShannonReplacementTry1_TotHorFrag_NEW_PCoA.csv Column names of final data file:
- plotID: NEON plotID
- plotNum: plot number (unique to this project only)
- domainID: NEON domain ID
- siteID: NEON site ID
- decimalLatitude: latitutude of plot centroid
- decimalLongitude: longitude of plot centroid
- Original_SpRich: Uncorrected SpRichness 8: rangefilt_95_SpRich: species richness after distance sampling, filtered by species range, and only containing species with >95% prob of occurance (as estimated by distance sampling model)
- FEve: funcitonal evenness value
- FDiv: funcitonal divergance value
- original_FRic: funcitonal richness, not corrected for species richness
- SES.FRic: standard effect size of functional richness using 100 random communities (corrected for species richness)
- FRic.p: p-value of SES.FRic calculation
- original_PD: Faith's Phylogenetic Diversity, not corrected for species richness
- SES.PD: standard effect size of Faith's Phylogenetic Diversity using 100 random communities (corrected for species richness) 16: PD.p: p-value of SES.PD calculation
- original_MPD: Mean Pairwise Distance, not corrected for species richness
- SES.MPD: standard effect size of Mean Pairwise Distance using 100 random communities (corrected for species richness)
- MPD.p: p-value of MPD.p calculation
- nlcdClass: NLCD landcover classification of avian plot centroid (as reported by NEON)
- elevation: elevation of avian plot centroid (as reported by NEON)
- temp.range_CHELSA: temperature range (i.e., min-max) of the NEON avian survey period (May-June) during 2017 (NOT USED)
- temp.ave_CHELSA: average temperature of the NEON avian survey period (May-June) during 2017 (NOT USED)
- precip.annual_CHELSA: total annual precipitation during 2017 (NOT USED)
- temp.range_daymet: temperature range (i.e., min-max) of the NEON avian survey period (May-June) during 2017
- temp.ave_daymet: average temperature of the NEON avian survey period (May-June) during 2017 (NOT USED)
- precip.total_daymet: total annual precipitation during 2017 (NOT USED)
- Vert.Variance: OUT OF DATE METRIC (Kept for posterity)
- Vert.Shannon: OUT OF DATE METRIC (Kept for posterity)
- Vert.Simpson: OUT OF DATE METRIC (Kept for posterity)
- Vert.Mean: OUT OF DATE METRIC (Kept for posterity)
- volume_und: volume of understory (0-5m)
- volume_mid: volume of midstory (5-15m)
- volume_subcan: volume of subcan (15-25m)
- volume_can: volume of canopy (>25m)
- clumpy_und: clumpiness of understory horizontal raster (not used)
- clumpy_mid: clumpiness of midstory horizontal raster (not used)
- clumpy_subcan: clumpiness of subcanopy horizontal raster (not used)
- clumpy_can: clumpiness of canopy horizontal raster (not used)
- te_und: total edge of understory horizontal raster (not used)
- te_mid: total edge of understory horizontal raster (not used)
- te_subcan: total edge of subcanopy horizontal raster (not used)
- te_can: total edge of canopy horizontal raster (not used)
- np_und: number of patches of understory horizontal raster
- np_mid: number of patches of midstory horizontal raster
- np_subcan: number of patches of subcanopy horizontal raster
- np_can: number of patches of canopy horizontal raster
- Total_veg_amt_NEW: sum of all vegetation amount across all 4 vertical strata
- shannon_plot: vertical heterogeneity metric (not used)
- simpson_plot: vertical heterogeneity metric (not used)
- variance_plot: vertical heterogeneity metric (CURRENT)
- range_abs: custom vertical heterogeneity metric (not used)
- dist_traveled: custom vertical heterogeneity metric (not used)
- clumpy_TotVol: clumpiness of total volume raster (not used)
- np_TotVol: number of patches of total volume raster (2D configuration)
- te_TotVol: total edge of total volume raster (not used)
- PC1: principle component axes 1 value
- PC2: principle component axes 2 value
- PC3: principle component axes 3 value
- PC4: principle component axes 4 value
- VegRating: vegitation rating of each plot (understory, midstory, subcanopy, canopy), used for plotting