Skip to contents

Read Geolocator Data Package

A very cool feature of using zenodo is that you can load the data directly from Zenodo without downloading the files!

pkg <- read_gldp("https://zenodo.org/records/13829930/files/datapackage.json")

It’s also possible to load the file from a local directory,

pkg <- read_gldp(file.path("~/", "woodlandkingfisher", "datapackage.json"))

Write to GeoPressureTemplate

You can create a GeoPressureTemplate folder from the data package using

project_dir <- write_geopressuretemplate(pkg, destdir = "~/Desktop/", overwrite = TRUE)
#> Warning: 'Description'
#>     * must not be empty
#>     * must contain one or more complete sentences
#>     * must start with a capital letter
#> ✔ Setting active project to "/Users/rafnuss/Desktop/woodlandkingfisher".
#> ✔ Writing 'LICENSE.md'.
#> Warning: One or more parsing issues, call `problems()` on your data frame for details,
#> e.g.:
#>   dat <- vroom(...)
#>   problems(dat)

Read data with GeoPressureR

Analysis of the tag data is best performed with GeoPressureR

id <- "16LN"
withr::with_dir(project_dir, {
  tag <- tag_create(id, assert_pressure = FALSE)
})
#> ✔ Read './data/raw-tag/16LN/pressure.csv'
#> ✔ Read './data/raw-tag/16LN/light.csv'
#> ✔ Read './data/raw-tag/16LN/acceleration.csv'