Reclassifies echoes based on bat classification.
Usage
reclassToBats(
echoData = NULL,
batClassProbabilitiesAndMtrFactors = NULL,
reclassToBatCutoff = -1
)
See also
Other manipulation functions:
addDayNightInfoPerEcho()
,
computeDensity()
,
computeMTR()
,
convertTimeZone()
,
createVPTS()
,
filterSpeedFeature37()
,
mergeVisibilityAndManualBlindTimes()
,
twilight()
Examples
if (FALSE) { # \dontrun{
# 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
)
} # }