Skip to contents

Accessing public data

These functions interact with Washington’s public data warehouse, data.wa.gov, which serves as a read-only interface to the internal PostgreSQL database.

fetch_fishery_names()
List all available 'fishery name' values
search_fishery_name()
Find fishery names from a partial names
fetch_dwg()
Download creel datasets from data.wa.gov
query_creel_website()
Query the creel website for specific combinations of data
get_fishery_data()
Obtain and format interview, catch, and effort data for sets of fishery-years

Accessing internal data

These functions interact directly with the WDFW PostgreSQL creel database, which requires proper credentials and permissions.

establish_db_con()
Establish database connection
fetch_db_table()
Query database tables

Exporting creel estimates to database

This group of functions works with CreelEstimates to standardize and transform model output formatting, save analysis metadata, and write catch and effort model estimates to the creel database.

process_estimates_bss()
Title
process_estimates_pe()
Title
map_data_grade()
Map datagrade ??
transform_estimates()
Transform individual model outputs into a single object
prep_export()
Prep export
json_conversion()
Convert model estimate metadata objects to json format
export_estimates()
Export creel model estimates
write_lut()
Write look-up table
write_stratum()
Write stratum
write_total()
Write Total
confirm_db_upload()
Confirm database upload

Stan tools

Tools for working with a ‘stanfit’ class object created from the rstan R package.

get_bss_settings()
Summarize priors, sampler settings, and metadata from a stanfit object
get_bss_runtime()
Summarize BSS model runtime