Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Add uvabits_metadata_movebank function #17

@peterdesmet

Description

@peterdesmet

Add function to get deployment metadata in the Movebank standard reference data format. Goal is that the output (csv) can be uploaded as is to Movebank to import/update reference data there (i.e. it contains all the columns Movebank expects).

All the required mapping for this function is already written in this SQL file. The remaining work is validating input arguments, connecting to the DB and running the SQL with glue().

Input

Input parameters (see this code).

parameter type required default comment
project string yes - e.g. MH_WATERLAND
animal_life_stage string no NA https://www.movebank.org/node/2381#animal_life_stage
attachment_type string no "harness" https://www.movebank.org/node/2381#attachment_type
manipulation_type string no "none" https://www.movebank.org/node/2381#manipulation_type
bird_remarks_is_nickname boolean no FALSE
path

Notes:

  • All parameters are expected by glue() SQL template, but defaults should be used if not provided by user.
  • project is the literal project key. It's existence should be looked up in UvA-BiTS DB
  • Most other parameters are controlled values: an error should be returned for wrong values.

Output

csv or dataframe: not sure what best approach is. Most often, you'll want this data as a csv file that you can upload to Movebank, but it might be nice if you can just get it as a dataframe too. If we offer csv file option, then path parameter should be included.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions