Add a new event to an existing Pamguard database in the "OfflineEvents"
table. If the specified eventType
does not exist in the database, it will
be added to the "Lookup" table.
addPgEvent(
db,
UIDs,
binary,
eventType,
comment = NA,
tableName = NULL,
type = c("click", "dg")
)
Adds to the database db
, invisibly returns TRUE
if successful
database file to add an event to
vector of the UIDs of the individual detections to add to the event
binary file containing the detections from UIDs
the name of the event type to add. If this is not already present in the database, it will be added to the "Lookup" table
(optional) a comment for the event
(optional) specify the name of the Click Detector that generated the event table you want to add to. This only needs to be specified if you have more than one click detector, it defaults to the first "NAME_OfflineEvents" table in the database.
type of event data to add, either 'click'
to add event data using
the Click Detector module, or 'dg'
to add event data using the Detection
Grouper module
Taiki Sakai taiki.sakai@noaa.gov
if (FALSE) {
myDb <- 'PamguardDatabase.sqlite3'
myBinaries <- c('./Binaries/Bin1.pgdf', './Binaries/Bin2.pgdf')
addUIDs <- c(10000001, 10000002, 20000007, 20000008)
addPgEvent(db = myDb, UIDs = addUIDs, binary = myBinaries, eventType = 'MyNewEvent')
}
Run the code above in your browser using DataLab