updateUID: Update Detection UIDs

Description Usage Arguments Value Author(s) Examples

View source: R/updateUID.R

Description

Update the UIDs of detections in a Pamguard database. UIDs can become mismatched when re-running data, this will attempt to re-associate the new UIDs in binary files with detections in the database

Usage

1
updateUID(db, binaries, verbose = TRUE, progress = TRUE)

Arguments

db

database file to update UIDs

binaries

folder of binary files to use for updating

verbose

logical flag to show summary messages

progress

logical flag to show progress bars

Value

Same database as db, but with an additional column "newUID" added to each detection table with updated UIDs if found. "newUID" will be -1 for any detections where no match was found

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples

1
2
3
4
5
6
7
## Not run: 
# not run because sample data does not exist
db <- 'MismatchedUid.sqlite3'
bin <- './BinaryFolder'
updateUID(db, bin)

## End(Not run)

PAMmisc documentation built on Oct. 8, 2021, 9:08 a.m.