Transforms a GeoLocator Data Package (GLDP)
to a Darwin Core Archive.
The resulting CSV files can be uploaded to an IPT
for publication to GBIF. A meta.xml file is included as well.
See gldp_to_eml() to create an eml.xml file.
Arguments
- pkg
A GeoLocator Data Package object.
- directory
Path to local directory to write file(s) to. If
NULL, then a data frame 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. This transformation combines data from three resources:
tags: metadata about the device and deploymentstaps: stationary periods with temporal informationpaths: spatial positions estimated for each stationary period
The following terms are set from normalized package metadata (sourced from top-level package fields):
datasetName: Package title.datasetID: Package identifier (DOI/ID).rightsHolder: Rights holder as provided in contributors (contributor with"rightsHolder"role). If no rightsHolder role is found, this field will beNA.license: License name.
Key features of the Darwin Core transformation:
Stationary periods (
staps) are treated as events, with each position as an occurrence representing the bird's location during that period.Each occurrence represents one stationary period from the
most_likelypath reconstruction.The
eventDateis expressed as an ISO 8601 interval (start/end) representing the duration of the stationary period.basisOfRecordis set to"MachineObservation"as data are derived from automated geolocator sensors.samplingProtocolis set to"geolocator".geodeticDatumis"EPSG:4326"(WGS84).scientificNameis taken fromtags$scientific_name.organismIDis set toring_numberto track individual birds across multiple observations and deployments.organismNameis set toring_numberas the available label for the tracked individual.occurrenceIDis a unique identifier combiningtag_idandstap_id.occurrenceStatusis set to"present".sex,lifeStage, andeventRemarksare included from matching observations when available.minimumElevationInMetersandmaximumElevationInMetersare estimated frompressurepaths$altitudewhen available.coordinateUncertaintyInMetersis calculated as the 50th percentile of the distance between simulation paths and themost_likelyposition for each stationary period.
See also
gldp_to_eml() to create the matching eml.xml metadata file.
