Transforms a GeoLocator Data Package
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
- package
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().- path_type
The type of path to use for the occurrence data. One of
"most_likely","mean_simulation","median_simulation", or"geopressureviz". For simulation types, the mean or median position (lat/lon) is calculated for eachtag_id-stap_idcombination across all simulated paths. Defaults to"most_likely". See paths for more details.
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 the package metadata:
datasetName: Title as provided inpackage$title.datasetID: Identifier as provided inpackage$id.rightsHolder: Rights holder as provided inpackage$contributors(contributor with"rightsHolder"role). If no rightsHolder role is found, this field will beNA.license: License name as provided inpackage$licenses.
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 path data, filtered by
path_type.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.occurrenceIDis a unique identifier combiningtag_idandstap_id.individualCountis set to1.occurrenceStatusis set to"present".sexandlifeStageare included if available in thetagsresource.coordinateUncertaintyInMetersis calculated for simulation path types ("mean_simulation"or"median_simulation") as the 95th percentile of the distance between each simulation and the aggregated center.
