tmdl_export_attains: Export protection plan info to ATTAINS upload files

View source: R/tmdl_export_attains.R

tmdl_export_attainsR Documentation

Export protection plan info to ATTAINS upload files

Description

Exports all or a subset of the Oregon TMDL assessment unit data table (tmdl_au) as csv files formatted for batch upload into ATTAINS. The actions and parameters csv files are produced. The format is based on EPA's Non-TMDL action template version 1.4, released on 7/18/2022.

Exports all or a subset of the Oregon TMDL database action table (tmdl_actions), assessment unit table (tmdl_au), and NPDES permittee WLA table (tmdl_wla) as csv files formatted for batch upload into ATTAINS. The actions, parameters, permits, and pollutants csv files are produced. The format is based on EPA's TMDL action template version 1.4, released on 2022-07-18.

Usage

tmdl_export_attains(
  out_dir,
  df_tmdl_actions = NULL,
  df_tmdl_au = NULL,
  df_tmdl_wla = NULL,
  AU_IDs = NULL,
  status_attains = NULL,
  action_ids = NULL,
  TMDL_param = NULL,
  TMDL_pollu = NULL
)

tmdl_export_attains(
  out_dir,
  df_tmdl_actions = NULL,
  df_tmdl_au = NULL,
  df_tmdl_wla = NULL,
  AU_IDs = NULL,
  status_attains = NULL,
  action_ids = NULL,
  TMDL_param = NULL,
  TMDL_pollu = NULL
)

Arguments

out_dir:

The directory to save the output csv files.

df_tmdl_actions:

Data frame formatted the same as tmdl_actions, Default is NULL and the tmdl_actions data table will be used.

df_tmdl_au:

Data frame formatted the same as tmdl_au. Default is NULL and the tmdl_au data table will be used.

df_tmdl_wla:

Data frame formatted the same as tmdl_wla. Default is NULL and the tmdl_wla data table will be used.

AU_IDs:

Vector of assessment units used to filter 'tmdl_au'. Default is NULL and all AU IDs are included.

status_attains:

Vector of the attains status used to filter 'tmdl_au'. Default is NULL and all statuses are included.

action_ids:

Vector of action IDs used to filter 'tmdl_au'. Default is NULL and all action IDs are included.

TMDL_param:

Vector of water quality parameter names used to filter 'tmdl_au'. The output will include TMDLs that addressed that water quality parameter. Default is NULL and all parameters are included.

TMDL_pollu:

Vector of TMDL pollutant parameter names used to filter the TMDLs. The output will include TMDLs that addressed that pollutant parameter. Default is NULL and all pollutants are included.


DEQcdonald/odeqtmdl documentation built on Feb. 9, 2025, 10:13 a.m.