Process for generation and optionally extraction of the FDI table A (catch).

fdi_tablea_catch_summary(
  balbaya_con,
  observe_bycatch_path,
  period,
  gear,
  flag,
  fao_area_file_path,
  eez_area_file_path,
  cwp_grid_file_path,
  template_checking = FALSE,
  template_year = NULL,
  table_export_path = NULL
)

Arguments

balbaya_con

list expected. Output of the function postgresql_dbconnection for a connection to the balbaya database.

observe_bycatch_path

character expected. Directory path of the bycatch data extractions. Check this input with Philippe Sabarros (philippe.sabarros@ird.fr).

period

integer expected. Year period for data extractions.

gear

integer. Gear(s) selection for data extractions.

flag

integer expected. Flag(s) selection for data extractions.

fao_area_file_path

character expected. File path of the FAO area grid. The file format has to be .Rdata or .RData extension.

eez_area_file_path

character expected. File path of the EEZ area grid. The file format has to be .Rdata or .RData extension.

cwp_grid_file_path

character expected. File path of the CWP area grid. The file format has to be .Rdata or .RData extension.

template_checking

logical expected. By default FALSE Checking FDI table generated regarding the official FDI template.

template_year

integer expected. By default NULL. Template year.

table_export_path

character expected. By default NULL. Directory path associated for the export.

Value

The process returns a double list with the FDI table A in the first one and in the second one two accessory outputs useful for the other FDI table generation processes ("landing_rectangle" and "bycatch_retained").