Title: | Tools and Data for Automated Delta Reporting |
---|---|
Description: | An R package for producing automated reports on the Sacramento San Joaquin Delta. |
Authors: | Sam Bashevkin [aut, cre] |
Maintainer: | Sam Bashevkin <[email protected]> |
License: | GPL-3 |
Version: | 2.0.0 |
Built: | 2024-10-31 05:10:13 UTC |
Source: | https://github.com/sbashevkin/deltareportr |
Bivalve abundance dataset from the California Department of Water Resources Environmental Monitoring Program.
bivalves
bivalves
a tibble with 8,892 rows and 7 variables
Sample collection date.
Station where sample was collected.
Bivalve species name.
Catch per unit effort in number of clams (m-2).
Year sample was collected.
Month and year of sample collection.
Name of the source dataset.
More metadata and information on methods are available here.
DeltaBivalver
, DeltaDater
, DeltaMetadater
Outflow and X2 from the California Department of Water Resources Dayflow model.
dayflow
dayflow
a tibble with 13,149 rows and 7 variables
Date.
Delta outflow (ft3s-1).
X2 (km).
More metadata and information on methods are available here.
DeltaBivalver
, DeltaDater
, DeltaMetadater
Function to process and plot bivalve data
DeltaBivalver( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
DeltaBivalver( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
Data |
Input dataset created by |
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
Seasons |
Character vector of seasons to include. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
A list with the plot and processed data.
Imports, filters, and processes datasets and outputs a list of desired datasets
DeltaDater( Start_year = 2002, End_year = 2020, Variables = c("Bivalves", "Zooplankton", "Phytoplankton", "Water quality"), WQ_sources = c("EMP", "STN", "FMWT", "EDSM", "SKT", "20mm", "Suisun"), Shapefile = deltamapr::R_EDSM_Strata_1819P1, Region_column = "Stratum", Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Phyt_start = 2008 )
DeltaDater( Start_year = 2002, End_year = 2020, Variables = c("Bivalves", "Zooplankton", "Phytoplankton", "Water quality"), WQ_sources = c("EMP", "STN", "FMWT", "EDSM", "SKT", "20mm", "Suisun"), Shapefile = deltamapr::R_EDSM_Strata_1819P1, Region_column = "Stratum", Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Phyt_start = 2008 )
Start_year |
Earliest year you would like included in the report. Must be an integer. Defaults to |
End_year |
Latest year you would like included in the dataset. Must be an integer. Defaults to |
Variables |
Character vector of variables you would like included in the dataset.
Defaults to all possible options: |
WQ_sources |
Character vector of data sources for the water quality variables, pulled from the |
Shapefile |
Shapefile you would like used to define regions in the dataset. Must be in |
Region_column |
Quoted name of the column in the Shapefile with the region designations. |
Regions |
Character vector of regions to be included in the dataset. Must correspond with levels of the |
Phyt_start |
First year to include for phytoplankton data. Defaults to |
A list of datasets
Data <- DeltaDater(Start_year = 1900, WQ_sources = c("EMP", "STN", "FMWT", "EDSM", "SKT", "20mm", "Suisun"), Variables = "Water quality", Regions = NULL)
Data <- DeltaDater(Start_year = 1900, WQ_sources = c("EMP", "STN", "FMWT", "EDSM", "SKT", "20mm", "Suisun"), Variables = "Water quality", Regions = NULL)
Function to process and plot dayflow data
DeltaDayFlower(End_year, Start_year = 2002)
DeltaDayFlower(End_year, Start_year = 2002)
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
A list with the plot and processed data.
Function to map delta regions
DeltaMapper( Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Save = FALSE, Save_location )
DeltaMapper( Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Save = FALSE, Save_location )
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
Save |
Logical. Should plot be saved? |
Save_location |
If |
A list with the plot and processed data.
Function to process and plot metadata
DeltaMetadater( Data, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta") )
DeltaMetadater( Data, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta") )
Data |
Input dataset created by |
Start_year |
First year (integer) that should be included in the plot |
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
A list with the plot and processed data.
Function to process and plot phytoplankton data
DeltaPhyter( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
DeltaPhyter( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
Data |
Input dataset created by |
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
Seasons |
Character vector of seasons to include. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
A list with the plot and processed data.
This package contains a number of functions and datasets to generate automated reports on the Delta, as well as the reports themselves in the analysis folder.
Function to process and plot Delta Smelt data
DeltaSmelter( End_year, Start_year = 2002, EDSM_regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River") )
DeltaSmelter( End_year, Start_year = 2002, EDSM_regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River") )
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
EDSM_regions |
Character vector of regions to include in the EDSM plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
A list with the plot and processed data.
Function to process and plot water quality (temperature, Secchi depth, salinity, chlorophyll, and Microcystis) data
DeltaWQer( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Temp_seasons = c("Winter", "Spring", "Summer", "Fall"), Secchi_seasons = c("Winter", "Spring", "Summer", "Fall"), Salinity_seasons = c("Winter", "Spring", "Summer", "Fall"), Chl_seasons = c("Winter", "Spring", "Summer", "Fall"), Micro_seasons = c("Winter", "Spring", "Summer", "Fall") )
DeltaWQer( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Sac Deep Water Shipping Channel", "Cache Slough/Liberty Island", "Lower Joaquin River", "Southern Delta"), Temp_seasons = c("Winter", "Spring", "Summer", "Fall"), Secchi_seasons = c("Winter", "Spring", "Summer", "Fall"), Salinity_seasons = c("Winter", "Spring", "Summer", "Fall"), Chl_seasons = c("Winter", "Spring", "Summer", "Fall"), Micro_seasons = c("Winter", "Spring", "Summer", "Fall") )
Data |
Input dataset created by |
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
Temp_seasons |
Character vector of seasons to retain for temperature. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
Secchi_seasons |
Character vector of seasons to retain for Secchi. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
Salinity_seasons |
Character vector of seasons to retain for salinity. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
Chl_seasons |
Character vector of seasons to retain for chlorophyll. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
Micro_seasons |
Character vector of seasons to retain for Microcystis. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
A list with the plot and processed data.
Function to process and plot phytoplankton data
DeltaZooper( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
DeltaZooper( Data, End_year, Start_year = 2002, Regions = c("Suisun Bay", "Suisun Marsh", "Lower Sacramento River", "Lower Joaquin River", "Southern Delta"), Seasons = c("Winter", "Spring", "Summer", "Fall") )
Data |
Input dataset created by |
End_year |
Last year (integer) that should be included in the plot. This year will also be highlighted. |
Start_year |
First year (integer) that should be included in the plot |
Regions |
Character vector of regions to include in the plot. The data will be filtered to only include these regions and ordered in the order provided here. To include data with NA regions, set |
Seasons |
Character vector of seasons to include. One plot will be produced for each season. Should be a combination of "Summer", "Fall", "Winter", or "Spring". |
A list with the plot and processed data.
Phytoplankton abundance dataset from the California Department of Water Resources Environmental Monitoring Program.
phyto
phyto
a tibble with 202,420 rows and 7 variables
Sample collection date.
Station where sample was collected.
Phytoplankton taxa.
Catch per unit effort in number of cells, colonies, or filaments (ml-1).
Year sample was collected.
Month and year of sample collection.
Name of the source dataset.
More metadata and information on methods are available here.
DeltaPhyter
, DeltaDater
, DeltaMetadater
Estimated Delta Smelt abundance dataset from the United States Fish and Wildlife Service Enhanced Delta Smelt Monitoring Program.
smelt_edsm
smelt_edsm
a tibble with 1,370 rows and 5 variables
Region of abundance estimate.
Abundance estimate date. Abundances are estimated weekly, but these dates represent the midpoint of each week.
Estimated Delta Smelt abundance.
Variance of the abundance estimate.
Month and year of sample collection.
More metadata and information on methods are available here.
Delta Smelt abundance indices from the California Department of Fish and Wildlife surveys.
smelt_iep
smelt_iep
a tibble with 157 rows and 3 variables
Index year.
Delta Smelt index number.
Name of the source dataset.
More metadata and information on methods are available here: Fall Midwater Trawl, Spring Kodiak Trawl, 20mm Survey, and Summer Townet.
Launches a leaflet map to browse station locations.
StationBrowser( Data = deltareportr::stations, Sources = NULL, StationIDs = NULL )
StationBrowser( Data = deltareportr::stations, Sources = NULL, StationIDs = NULL )
Data |
Station location data. Defaults to |
Sources |
Which data sources would you like to include? Set |
StationIDs |
Which StationIDs to include. StationIDs take the form "Source, Station". Set |
Locations of all sampling stations.
stations
stations
a tibble with 1,266 rows and 5 variables
Name of the source dataset..
Station where sample was collected.
Latitude in decimal degrees.
Longitude in decimal degrees.
Combined source and station for a unique station ID.
Average dry mass for each meso and micro zooplankton taxa
zoop_mass_conversions
zoop_mass_conversions
a tibble with 37 rows and 2 variables
Average individual mass (g).
Taxonomic name and lifestage.
DeltaZooper
, DeltaDater
, DeltaMetadater
Mysid biomass per unit effort from the California Department of Fish and Wildlife Environmental Monitoring Program
zoop_mysid
zoop_mysid
a tibble with 22,558 rows and 2 variables
Date sample was collected.
Station where sample was collected.
Taxonomic name.
Biomass per unit effort (g m-3).
Year sample was collected.
Month and year sample was collected.
Name of the source dataset.
More metadata and information on methods are available here.
DeltaZooper
, DeltaDater
, DeltaMetadater