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,
cid = NULL,
dropIDs = NULL,
file = NULL,
meta.args,
subset.ids = NULL,
wc.meta = NULL
)
the source of the metadata, current options are imos
, smru
,
atn
.
the tag manufacturer, current options are smru
or wc
cid SMRU campaign ids
a list of either smru
data tables or wc
files as output by
pull_data
.
SMRU campaign id must be provided when the tag_mfr is smru
SMRU refs or WC ids to be dropped
path to metadata .csv file, if provided then metadata will be
read from the provided source
optional metadata fields to be passed from config file when downloading tag metadata from SMRU server.
a character vector of comma-separated (no spaces) WC UUID's
to be included in the QC. Ignored if tag_mfr != "wc"
.
an R data.frame of Wildlife Computers tag deployment metadata
obtained via download_data()
.