Skip to contents

Analyze data

Functions for analyzing data.

anlz_ad()
Calculate AD loads and summarize
anlz_dps()
Calculate DPS reuse and end of pipe loads and summarize
anlz_dps_facility()
Calculate DPS reuse and end of pipe loads from raw facility data
anlz_ips()
Calculate IPS loads and summarize
anlz_ips_facility()
Calculate IPS loads from raw facility data
anlz_ml()
Calculate material loss (ML) loads and summarize
anlz_ml_facility()
Calculate material loss (ML) loads from raw facility data
anlz_nps()
Calculate non-point source (NPS) loads for Tampa Bay
anlz_nps_gaged()
Calculate non-point source (NPS) loads for gaged basins
anlz_nps_ungaged()
Estimated non-point source (NPS) ungaged loads

Internal datasets

Supporting datasets used by the other functions.

ad_distance
Data frame of distances of segment locations to National Weather Service (NWS) sites
clucsid
Lookup table for FLUCCSCODE conversion to CLUCSID and IMPROVED
dbasing
Basin information for coastal subbasin codes
emc
Event Mean Concentration (EMC) data for CLUCSID in Tampa Bay
facilities
Domestic and industrial point source facilities, including industrial with material losses
nps_distance
Data frame of distances of drainage basin locations to National Weather Service (NWS) sites
rain
Data frame of daily rainfall data from NOAA NCDC National Weather Service (NWS) sites from 2017 to 2023
rain_historic
Data frame of historical daily rainfall datas
rcclucsid
Lookup table for CLUCSID runoff coefficients
tbbase
Combined spatial data required for non-point source (NPS) ungaged estimate
tbdbasin
Simple feature polygons major drainage basins in the Tampa Bay Estuary Program boundary
tbfullshed
Simple features polygon for the Tampa Bay Estuary Program boundary
tbjuris
Simple feature polygons of jurisdictional boundaries in the Tampa Bay Estuary Program boundary
tblu2020
Simple feature polygons of 2020 land use in the Tampa Bay Estuary Program boundary
tblu2023
Simple feature polygons of 2023 land use in the Tampa Bay Estuary Program boundary
tbsoil
Simple feature polygons of soil data in the Tampa Bay Estuary Program boundary
tbsubshed
Simple feature polygons of sub-watersheds in the Tampa Bay Estuary Program boundary

Utility functions

Utility functions used by other functions.

util_getrain()
Get rainfall data at NOAA NCDC sites for atmospheric deposition and non-point source ungaged calculations
util_nps_fillmiswq()
Fill in missing water quality values for non-point source (NPS) data
util_nps_getextflow()
Get external flow data not from USGS for NPS calculations
util_nps_getflow()
Get flow data from for NPS calculations at gaged sites
util_nps_getswfwmd()
Retrieve non-point source (NPS) supporting data from SWFWMD web services
util_nps_getusgsflow()
Get flow data from USGS for NPS calculations
util_nps_getwq()
Get water quality data for NPS gaged flows
util_nps_landsoil()
Utility function for non-point source (NPS) ungaged workflow to create land use and soil data
util_nps_landsoilrc()
Utility function to create non-point source (NPS) ungaged land use and soil runoff coefficients
util_nps_preplog()
Utility function for non-point source (NPS) ungaged workflow to prepare land use and soil data for logistic regression
util_nps_preprain()
Prep rain data for non-point source (NPS) ungaged load estimates
util_nps_tbbase()
Create unioned base layer for non-point source (NPS) ungaged load estimation in the Tampa Bay watershed
util_nps_union()
Fast Spatial Intersection and Union Using GDAL
util_nps_unionchunk()
Helper function for union operation
util_nps_unionnochunk()
Helper function for union operation
util_prepverna()
Prep Verna Wellfield data for use in AD and NPS calculations
util_ps_addcol()
Add column names for point source data from raw entity data
util_ps_checkfls()
Create a data frame of formatting issues with point source input files
util_ps_checkuni()
Check units for point source from raw entity data
util_ps_facinfo()
Get point source entity information from file name
util_ps_fillmis()
Fill missing point source data with annual average
util_ps_fixoutfall()
Light edits to the outfall ID column for point source data
util_ps_summ()
Summarize point source load estimates