reclassToBats {birdscanR} | R Documentation |
integrate bat classification
Description
reclassifies echoes based on bat classification
Usage
reclassToBats(
echoData = NULL,
batClassProbabilitiesAndMtrFactors = NULL,
reclassToBatCutoff = -1
)
Arguments
echoData |
echodata dataframe, output from extractDbData |
batClassProbabilitiesAndMtrFactors |
probabilities of bat classification, output from extractDbData' |
reclassToBatCutoff |
Threshold (0..1), classification of echoes with bat probability higher than reclassToBatCutoff will be set to 'bat' |
Value
echoData dataframe
Author(s)
Fabian Hertner, fabian.hertner@swiss-birdradar.com
Examples
## Not run:
# Set server, database, and other input settings
# ===========================================================================
dbServer = "MACHINE\\SERVERNAME" # Set the name of your SQL server
dbName = "db_Name" # Set the name of your database
dbDriverChar = "SQL Server" # Set either "SQL Server" or "PostgreSQL"
mainOutputDir = file.path(".", "results")
radarTimeZone = "Etc/GMT0"
targetTimeZone = "Etc/GMT0"
listOfRfFeaturesToExtract = c(167, 168)
siteLocation = c(47.494427, 8.716432)
sunOrCivil = "civil"
# Get data
# ===========================================================================
dbData = extractDbData(dbDriverChar = dbDriverChar,
dbServer = dbServer,
dbName = dbName,
saveDbToFile = TRUE,
dbDataDir = mainOutputDir,
radarTimeZone = radarTimeZone,
targetTimeZone = targetTimeZone,
listOfRfFeaturesToExtract = listOfRfFeaturesToExtract,
siteLocation = siteLocation,
sunOrCivil = sunOrCivil,
crepuscule = "nauticalSolar")
#'
# Reclass To Bats
# ===========================================================================
dbData$echoData = reclassToBats(echoData = dbData$echoData,
batClassProbabilitiesAndMtrFactors =
dbData$batClassProbabilitiesAndMtrFactors,
reclassToBatCutoff = 0.5)
## End(Not run)
[Package birdscanR version 0.3.0 Index]