{"id":16272845,"url":"https://github.com/robitalec/prepare-locs","last_synced_at":"2026-02-10T03:04:02.478Z","repository":{"id":109036216,"uuid":"402117734","full_name":"robitalec/prepare-locs","owner":"robitalec","description":":hammer_and_wrench:   A targets workflow for processing animal relocation data for the WEEL.","archived":false,"fork":false,"pushed_at":"2024-09-24T14:30:23.000Z","size":546,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T01:37:51.327Z","etag":null,"topics":["animal","animal-movement","gps","r","targets"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robitalec.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-01T15:50:47.000Z","updated_at":"2022-08-02T11:27:18.000Z","dependencies_parsed_at":"2024-01-25T22:46:22.892Z","dependency_job_id":"f0a21d79-734c-4a1d-8e09-c4feb29a0c57","html_url":"https://github.com/robitalec/prepare-locs","commit_stats":{"total_commits":366,"total_committers":1,"mean_commits":366.0,"dds":0.0,"last_synced_commit":"1daa988e54b361a52368d408529485dfaf8df768"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/robitalec/prepare-locs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Fprepare-locs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Fprepare-locs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Fprepare-locs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Fprepare-locs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robitalec","download_url":"https://codeload.github.com/robitalec/prepare-locs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Fprepare-locs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29289899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T02:32:08.756Z","status":"ssl_error","status_checked_at":"2026-02-10T02:30:31.937Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animal","animal-movement","gps","r","targets"],"created_at":"2024-10-10T18:19:37.518Z","updated_at":"2026-02-10T03:04:02.461Z","avatar_url":"https://github.com/robitalec.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: prepare-locs\noutput: \n  github_document:\n    toc: true\n---\n\n---\n\nA `targets` workflow for processing animal relocation data for the WEEL. \n\n```{r}\nlibrary(targets)\n```\n\n```{r, include = FALSE}\nlibrary(printr)\nlibrary(data.table)\n```\n\n\n# Input\nNote: this workflow only processes files if it finds them at the specified path in metadata. This means you can add a row describing your own input data to `metadata()`\nand use the workflow, without needing all other datasets present on your computer. \n\n```{r}\ntar_read(meta)\n```\n\n\n\n# Output\nAll outputs can be directly read with `data.table::fread` and the \ndatetime column will be automatically converted to POSIXct in UTC timezone. \n\n\n## Files\n```{r}\ntar_read(exports)\n```\n\n\n## Column names\n\n| Column name | Description | \n| ----------- | ----------- | \n| id          | unique animal identifier | \n| datetime    | date time in UTC | \n| doy         | day of year, integer. see `data.table::yday()` | \n| mnth        | month, integer. see `data.table::month()` | \n| yr          | year, integer. see `data.table::year()` | \n| x_long      | longitude, EPSG code provided in `metadata()`. see `R/metadata.R` | \n| y_lat       | latitude, EPSG code provided in `metadata()`. see `R/metadata.R` |\n| x_proj      | projected x coordinate, output EPSG code in `metadata()`. see `R/metadata.R` |  \n| y_proj      | projected y coordinate, output EPSG code in `metadata()`. see `R/metadata.R` |  \n| epsg_proj   | output EPSG of 'x_proj' and 'y_proj' as set in `metadata()`. |\n| [extracols] | Extras specified in `metadata()`. Eg. HERD. On output, column names are transformed to snake_case (eg. from 'HERD' to 'herd' or 'COLLAR ID' to 'collar_id')\n\nIn target \"checkflags\", the column named \"flag\" is a semi-colon separated list of flags indicating why locs are dropped and set to NaN. After target \"filters\", locs with NaN are dropped. \n\n\n## Flag counts\n```{r,  1}\ntar_read(checkflags)[order(name, -N)]\n```\n\n# TODO\n\n* 6030 not recognized by PROJ because it's not a complete CRS.. \n\n\n# Etc\nScreening GPS fixes:\n\n* https://ropensci.github.io/CoordinateCleaner/articles/Comparison_other_software.html\n\t+ missing coordinates\n\t+ lat == 0\n\t+ long == 0\n\t+ lat == long\n\t+ ...\n\n* *Effects of habitat on GPS collar performance: using data screening to reduce location error*. Lewis et al. 2007\n\t+ drop 2D fixes\n\t+ threshold PDOP\n\t\n* *Screening GPS telemetry data for locations having unacceptable error*. Laver et al. \n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobitalec%2Fprepare-locs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobitalec%2Fprepare-locs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobitalec%2Fprepare-locs/lists"}