motusDeployTag: register a tag deployment with motus

Description Usage Arguments Note Author(s)

View source: R/motusDeployTag.R

Description

register a tag deployment with motus

Usage

1
2
3
4
5
motusDeployTag(tagID, projectID, status = c("pending", "deploy", "terminate"),
  tsStart = NULL, tsEnd = NULL, deferTime = 0, speciesID = NULL,
  markerType = NULL, markerNumber = NULL, lat = NULL, lon = NULL,
  elev = NULL, comments = NULL, properties = NULL,
  ts = as.numeric(Sys.time()))

Arguments

tagID

Unique numeric ID assigned to the tag, provided at the time of tag registration.

projectID

numeric ID of motus project for which this tag is being deployed.

status

Status from one of the possible following values: pending, deploy, terminate. "pending" indicates that the deployment record isn<e2><80><99>t ready to be finalized for deployment yet. "deploy" indicates that the deployment can be activated. "terminate" will attempt to finalize a deployment by providing an end date. Note that deployments can only be activated or terminated if all required information has been provided. Attempts to deploy or terminate an incomplete deployment will return an error. At the moment, several of the parameters can no longer be modified once a deployment is activated, and the status cannot be changed back to an earlier status (permitted sequence is pending -> deploy -> terminate, but levels can be omitted).

tsStart

[optional] Timestamp for start of deployment. If the tag has a deferred time lag (deferTime), this is the time at which the tag is activated, so that the time when the tag is expected to be active is given by tsStart + deferTime.

tsEnd

[optional] Timestamp for end of deployment. Required for status=terminate.

deferTime

[optional] Defer time (in seconds from tsStart). Some tags are capable of deferred activation - they don't start transmitting until some (possibly large) number of seconds after activation.

speciesID

[optional] Numeric ID (integer) of the species on which the tag is being deployed. You can obtain this value by using motusListSpecies() to search by name or code. Alternatively, this can be a character scalar giving the species 4-lettercode; e.g. "SESA"

markerType

[optional] Type of marker (e.g. "metal band<e2><80><9d>, "color band<e2><80><9d>)

markerNumber

[optional] Marker number or descriptor (e.g. "1234-56789<e2><80><9d> or "L:Red/Blue,R:Metal 1234-56789<e2><80><9d>)

lat

[optional] Latitude (decimal degrees) of the deployment site. E.g. 45.123.

lon

[optional] Longitude (decimal degrees) of the deployment site. E.g. -60.325.

elev

[optional] Elevation above sea level (meters) of the deployment site. E.g. 23.

comments

[optional] deployment-related comment

properties

[optional] list or vector; additional properties of the deployment or the organism on which the tag is deployed. This will be formatted as a JSON string then inserted into the properties field of the database. FIXME: for now, it goes into the comments field.

ts

[optional] Time at which deployment information was generated. Defaults to time at which function is called.

Note

All timestamps must be in the form returned by Sys.time() and by the ymd(), ymd_hms(),.. functions from the lubridate package. i.e. they are numbers representing seconds elapsed since the start of 1 Jan. 1970, GMT.

For timestamps in the future, this function uses the tsAnticipatedStart parameter to the motus /tags/deploy API. For timestamps in the past, it uses tsStart.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.