Transforms data from a Camera Trap Data Package to Darwin Core.
The resulting CSV files can be uploaded to an IPT for publication to GBIF.
A meta.xml file is included as well.
See write_eml() to create an eml.xml file.
Arguments
- package
A Camtrap DP, as read by
read_camtrap_dp().- directory
Path to local directory to write file(s) to. If
NULL, then a list of data frames is returned instead, which can be useful for extending/adapting the Darwin Core mapping before writing withreadr::write_csv().
Transformation details
Data are transformed into an Occurrence core and Audubon Media Description extension. This follows recommendations discussed and created by Peter Desmet, John Wieczorek, Lien Reyserhove, Ben Norton and others.
The following terms are set from the package metadata:
datasetName: Title as provided in
package$title.datasetID: Identifier as provided in
package$id. Can be a DOI.rightsHolder: Rights holder as provided in
package$rightsHolder.collectionCode: Platform name as provided in
package$platform$title.license: License with scope
dataas provided inpackage$licenses.rights for media files: License with scope
mediaas provided inpackage$licenses.dwc:dataGeneralizations: "coordinates rounded to
package$coordinatePrecisiondegree".coordinatePrecision:
package$coordinatePrecision(e.g.0.001).
Key features of the Darwin Core transformation:
Deployments (of camera traps) are parent events, with observations (machine observations) as child events. No information about the parent event is provided other than its ID, meaning that data can be expressed in an Occurrence Core with one row per observation and
parentEventIDshared by all occurrences in a deployment.Sequence-based observations share an
eventIDper sequence, image-based observations share aneventIDper image.The image(s) an observation is based on are provided in the Audubon Media Description extension, with a foreign key to the observation.
Excluded are records that document blank or unclassified media, vehicles and observations of humans.
See also
Other publication functions:
round_coordinates(),
write_eml()
