downloads, restructures & formats metadata, appends dive/CTD start and end datetimes (for QC), & fills in missing required metadata - eg. release_datetime, release_longitude/latitude's with data from the GPS (if present) or Argos location file.

get_metadata(
  source = "smru",
  tag_mfr = "smru",
  tag_data = NULL,
  cids = NULL,
  dropIDs = NULL,
  file = NULL,
  enc = "UTF-8"
)

Arguments

source

the source of the metadata, current options are imos, smru, atn.

tag_mfr

the tag manufacturer, current options are smru or wc cids SMRU campaign ids

tag_data

a list of either smru data tables or wc files as output by pull_data.

cids

SMRU campaign id(s) must be provided when the tag_mfr is smru

dropIDs

SMRU refs or WC ids to be dropped

file

path to metadata .csv file, if provided then metadata will be read from the provided source

enc

set locale encoding to handle special characters; default is "UTF-8"