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

Processing Camtrap DP "3 pilot studies" #1070

Open
peterdesmet opened this issue May 31, 2024 · 2 comments
Open

Processing Camtrap DP "3 pilot studies" #1070

peterdesmet opened this issue May 31, 2024 · 2 comments

Comments

@peterdesmet
Copy link
Member

peterdesmet commented May 31, 2024

https://zenodo.org/records/10671148 (described in https://doi.org/10.1016/j.dib.2024.110544) is a Zenodo deposit published by the University of Amsterdam. It contains 3 Camtrap DP datasets (pilot1.zip, pilot2.zip, pilot3.zip). This issue is to discuss technical details of the datasets, to inform/guide processing by GBIF.

Validation errors

I have tested pilot2.zip with frictionless-py (frictionless validate datapackage.json) and found the following issues:

  1. events resource is defined 3 times in datapackage.json. Solution: remove the duplicates. See also note on events further.
  2. events resource is defined as a tabular data package, but lacking a schema (required for tabular data package). Solution: remove "profile": "tabular-data-resource"
  3. Timestamps in dep.deploymentStart, dep.deploymentEnd, media.timestamp, obs.eventStart, obs.eventEnd use a space rather than T to separate date and time. The standards expects T, which is what Agouti exports, so this might be the result of further processing. Solution: use T.
  4. obs.individualCount contains doubles (1.0) rather than integers (1), which is what Agouti exports, so this might be the result of further processing. Solution: remove .0
  5. Not a validation error, but filePath is expected to contain the full path to the media file, not just the directory that contains it, i.e. it is not intended to be concatenated with fileName, which is just a convenience term for sorting or the provide original file names if they were changed (i.e. what Agouti does). In addition, backslashes should be avoided. So filePath:
# don't do this
media\AWD_1_13082021_pilot 46576a8c-019a-4dd8-852e-86380e0973fc
# do this
media/AWD_1_13082021_pilot 46576a8c-019a-4dd8-852e-86380e0973fc/10b0e4da-ca2d-4026-8574-bff8d15a3dcb.JPG

Note: while it can be useful to define a separate CSV with the events as a convenience file, it 1) will typically be ignored by software reading Camtrap DP and 2) can typically be derived automatically. So you may want to opt to not providing it:


If pilot1 and pilot3 went through the same processing, then they likely have the same issues.

@jevansbio
Copy link

jevansbio commented Jun 3, 2024

The dataset has been tweaked, now passing all frictionless tests. The updated version is live on zenodo. https://zenodo.org/records/11440456

I still prefer to include the events file for convenience, as I feel it makes the data a little more 'off the shelf' if a user is not using the R package.

@peterdesmet
Copy link
Member Author

Looks good! Here's how pilot2 looks when processed by https://inbo.github.io/camtrapdp/reference/write_dwc.html:
dwc.zip

@MattBlissett the accessURI is now of the form:

pilot2/media/AWD_1_13082021_pilot 2c79df2e-87bb-4416-bf3f-50e4fbf28a88/4f13384c-2970-4b69-bf6f-1261b1507566.JPG

I'm not entirely sure what extra info is needed to support reading of that file from gbif.org?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants