movebank / movebank-api-doc

Description of download interface to build calls to the Movebank database using HTTP/CSV or JSON/JavaScript requests
142 stars 19 forks source link

HTTP/CSV download for undeployed locations #7

Open coverton-usgs opened 3 years ago

coverton-usgs commented 3 years ago

I have a unique case where I would like to review the undeployed location data for my project (pre deployment and post recovery). Is this possible via the api?

sarahcd commented 3 years ago

Sorry for the late reply. This should work, if you query data for the study or tags of interest (and not animals).

benscarlson commented 3 years ago

Hello,

If you are interested, I have an R package that allows you to easily download data via the api: https://github.com/benscarlson/mosey_get

Be careful with API data because it is raw data, so you have to do a lot of filtering. In addition to underplayed locations, there are also sometimes data from other projects, data from human testers, and pseudo-duplicates (where one record is a more complete version of another record). Pseudo-duplicates might not even have the same timestamp, at millisecond precision.

I have a script that automates all of this cleaning, if you want to have some idea of how you need to process api data: https://github.com/benscarlson/mosey_db/blob/master/db/clean_study.r

Feel free to contact me directly if you want any more information!

Ben