Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create write_camtrapdp() function #74

Closed
4 of 6 tasks
peterdesmet opened this issue Jul 15, 2023 · 1 comment
Closed
4 of 6 tasks

Create write_camtrapdp() function #74

peterdesmet opened this issue Jul 15, 2023 · 1 comment
Assignees
Labels
function:write_camtrapdp Function write_camtrapdp()
Milestone

Comments

@peterdesmet
Copy link
Member

peterdesmet commented Jul 15, 2023

Suggested in camtraptor July 2023 coding sprint

It is a fair expectation that camtraptor also support writing Camtrap DP, to e.g. share cleaned datasets or publish it on the IPT.

Use cases

All these start from a package object. It will therefore be harder to create a Camtrap DP entirely from scratch, but it could be possible with:

p <- frictionless::create_package()
# user add necessary metadata as elements to list
deployments(p) <- df
media(p) <- df
observations(p) <- df
write_camtrap_dp(p, "directory")

Functionality

  • Make best attempt at creating a valid Camtrap DP. E.g. by running validate() Create validate_camtrapdp() and helper functions to validate integrity of a Camtrap DP #58 (and refusing to write if there are errors?)
  • read_camtrap_dp() %>% write_camtrap_dp() should create the exact same package (except for created date)
  • All existing metadata elements should be retained
  • If required metadata elements are not present, user should be warned (especially important if package was created from scratch)
  • taxonomy, spatial and temporal should be recreated based on the (filtered) data
  • A package that is the result of a merge() Create merge() to merge datasets #75 should combine its metadata (not sure how)
@peterdesmet peterdesmet transferred this issue from inbo/camtraptor May 31, 2024
@peterdesmet peterdesmet added the function:write_camtrapdp Function write_camtrapdp() label May 31, 2024
@peterdesmet peterdesmet added this to the Version 0.x.0 milestone May 31, 2024
@peterdesmet peterdesmet changed the title Create write_camtrap_dp() function Create write_camtrapdp() function May 31, 2024
@sannegovaert sannegovaert self-assigned this Oct 17, 2024
@peterdesmet
Copy link
Member Author

This was implemented in #137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
function:write_camtrapdp Function write_camtrapdp()
Projects
None yet
Development

No branches or pull requests

2 participants