Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Converting BirdNet results to a SQLite database

NotificationsYou must be signed in to change notification settings

NINAnor/birdnet2sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use it

Install the poetry environment

poetry install

Runbirdnet2sqlite.sh

A wrapper can be found inexample_script.sh. You just need to change the arguments in the script and run it using:

./run.sh

With:

  • BASE_FOLDER: The folder containing all the birdnet output files.
  • DB_NAME: The name you want to give to the database.Note that it has to end with.sqlite (e.g.my_database.sqplite).
  • IS_PREFIX: Is the filename formatted such asPREFIX_YYYmmdd_HHMMSS? EitherTrue orFalse.
  • INDEX_LOCATION_FOLDER: The position of the folder name that will be used as alocation column in the database (e.g.INDEX_LOCATION_FOLDER would be set to-2 forpath/to/data/LOCATION/file.txt).

Use the database in R

To open the created databse in R you can use the script below:

library(RSQLite)library(DBI)setwd("path/to/working/directory")sqlite <- dbDriver("SQLite")conn <- dbConnect(sqlite, "my_database.sqlite")# For the full datasetdata <- dbReadTable(conn, "birdnet")# For a subset of the datasetres <- dbSendQuery(con, "SELECT * FROM birdnet WHERE location = X")

About

Converting BirdNet results to a SQLite database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp