This project uses community science observations of birds to investigate the relationship between tree equity scores (TES) and avian species richness in the semi-arid city of Tucson, Arizona, USA. Tree equity data was sourced from the City of Tucson open data portal, while avian occurrence data was acquired from the Global Biodiversity Information Facility (GBIF). Avian species richness was calculated by aggregating and summarizing all GBIF observations for each neighborhood and determining the total number of unique species observed. A Poisson regression within a generalized linear modeling framework was employed, using the log of neighborhood area as an offset term to account for variations in neighborhood size.
data: raw data and coordinate boundsoutput: modified data, output plotsscripts: (descriptions below)
query_gbif.R: Function to download records from GBIF for a set of coordinates and list of taxadownload_data.R: Download GBIF observation datadownload_large_data.R: Processing of two large manually downloaded datasetsextract_gbif_data.R: Extract individual neighborhood data files downloaded from GBIFassemble_data.R: Assemble GBIF files, add neighborhood ID, create rows if a neighborhood has no obs.neighborhood_richness.R: Summary of GBIF data and calculate neighborhood species richnessspatial_join_model.py: Model parameters used in ArcGIS Pro for spatial join between GBIF and TES datasetsurbanforest_dataset.R: Combined neighborhood avian species richness and tree equity valuesregression_analyses.R: Generalized Linear Model
tidyverse: Data wrangling and visualizationdplyr: Data wrangling (included within tidyverse, but sometimes best to load separately)ggplot2: Data visualization (included within tidyverse, but sometimes best to load separately)sf: Point filteringraster: Work with raster datargbif: Search and retrieve data from GBIF