downloadDatabaseToFiles: Download and parse NMD data for the BioticExplorer database

View source: R/downloadDatabaseToFiles.R

downloadDatabaseToFilesR Documentation

Download and parse NMD data for the BioticExplorer database

Description

Downloads annual NMD data from the API and writes them as MonetDB database

Usage

downloadDatabaseToFiles(
  years,
  dest,
  method = "compare",
  save = c("xml", "rds"),
  icesAreas = icesAreas,
  cruiseSeries = cruiseSeries,
  gearCodes = gearCodes
)

Arguments

years

Vector of integers specifying the years to be downloaded. The database reaches 1914:year(Sys.Date())

dest

Character string specifying the file path where the database should be downloaded to.

method, save

Switches that do not make much sense at the moment. Leave them as they are.

icesAreas

ICES area shape st_polygon abject. Used for calculating the ICES area for a specific fishstation.

cruiseSeries

a data.table object of NMD cruise series list. Used to identify cruise series of a specific mission. See prepareCruiseSeriesList.

gearCodes

a data.table object of NMD gear code list. Used to make gearname and gearcategory columns. See prepareGearList.

Details

This function is scarily powerful. Do not run a large number of years unless you think you know what you are doing

Author(s)

Ibrahim Umar, Mikko Vihtakari (Institute of Marine Research)


MikkoVihtakari/BioticExplorerServer documentation built on Feb. 28, 2025, 11:23 p.m.