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

Add uvabits_metadata_movebank function #17

Open
peterdesmet opened this issue Oct 25, 2018 · 2 comments
Open

Add uvabits_metadata_movebank function #17

peterdesmet opened this issue Oct 25, 2018 · 2 comments
Assignees

Comments

@peterdesmet
Copy link
Member

peterdesmet commented Oct 25, 2018

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.

@peterdesmet peterdesmet changed the title Add uvabits_metadata_movebank function Add uvabits_metadata_movebank function Oct 25, 2018
@stijnvanhoey
Copy link
Contributor

stijnvanhoey commented Nov 16, 2018

work in progress in branch movebank-metadata, https://github.com/inbo/uvabits/tree/movebank-metadata

@peterdesmet
Copy link
Member Author

Specifically in https://github.com/inbo/gulltracking/blob/fd4f08c36f0149fdb0bb24c7a8e65fb359dd31e0/R/uvabits_metadata_movebank.R. This work can be picked up later at some point, borrowing from the work in the https://github.com/inbo/bird-tracking repository

@peterdesmet peterdesmet changed the title Add uvabits_metadata_movebank function Add uvabits_metadata_movebank function Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants