Satellite tracking data, in a zipfile, are downloaded from a user-specified URL (for accessing zipfiles on GoogleDrive or Dropbox), accessed from the SMRU data server, or accessed from the Wildlife Computers Portal API via the source argument.

download_data(
  path = NULL,
  dest = NULL,
  source = "smru",
  unzip = FALSE,
  cid = NULL,
  user = NULL,
  pwd = NULL,
  wc.akey = "VVeerW+G6YUe7olzlrOr6q5o2Nkjx5PTEwuwElcPyKc=",
  wc.skey = "7k9MupziDacYNur/3IPMDjn7wum6oQk5eV2LRj86iDw=",
  owner.id = NULL,
  subset.ids = NULL,
  download = TRUE,
  ...
)

Arguments

path

a url or local filepath pointing to a zipfile of tag datafiles

dest

destination path to save download

source

source type of data to be downloaded. Can be one of:

  • smru - SMRU Data Server;

  • wc - Wildlife Computers Data Portal API;

  • googledrive - a url link to a zipfile shared on a GoogleDrive;

  • dropbox - a url link to a zipfile shared on Dropbox;

  • local - a local filepath to a zipfile containing SMRU or WC tag datafiles.

unzip

(logical) should the downloaded zipfile be unzipped.

cid

SMRU tag deployment campaign id(s) to download, eg. "ct180"

user

SMRU data server username as a quoted string

pwd

SMRU data server password as a quoted string

wc.akey

an Access Key issued by Wildlife Computers for their API

wc.skey

a Secret Key issued by Wildlife Computers for their API

owner.id

the Wildlife Computers uuid associated with the data owner

subset.ids

a single column .CSV file of WC UUID's to be included in the QC, with uuid as the variable name.

download

(logical) indicating if the data is to be downloaded from the tag manufacturer's server. If the source is wc and download = FALSE then only the Wildlife Computers tag deployment metadata is downloaded.

...

additional arguments passed to smru_get_mdb or wc_get_files()