- Install Julia, Jupyter Notebook, and IJulia.
- Clone this repository:
git@github.com:NSagan271/batlab-chirp-processing.git. Before doing so, you will have to add your SSH key to Github. - Run
cd batlab-chirp-processing. - Run
git submodule initandgit submodule update. This will clone theBatlabJuliaUtilslibrary into a folder of the same name. - Install the required packages (make sure you're in the
batlab-chirp-processingdirectory, AKA the root directory of this repository.- On the command line, type
julia. Then, hit the]key. - Type
add Plots, and then press Enter. - Do the same for using
Printf,MAT,Statistics,Roots,DataInterpolations,DSP, andWAV. - Run
activate ./BatlabJuliaUtils. - Press Backspace to exit package mode, and CTRL+d to exit the Julia command line.
- On the command line, type
- Go to
matlab_utilsand usetdms_to_mat.mto convert some bat audio TDMS files to MAT files. It is recommended you start off withPu166_01andGr116_01, and save the MAT files in thebatlab-chirp-processing/datadirectory. - Copy all mic position files to
data. - Make a subdirectory of
datacalledcentroidand copy all relevant centroid data files to that directory. - Go to
jupyter_notebooksand run eitherjupyter notebookorjupyter labfrom the command line. When prompted, opt to use aJuliakernel. The fileWalkthrough.ipynbcontains a tutorial for estimating bat vocalizations given the audio data.- If
jupyter labdoesn't work, then here are some alternatives that might work:python3 -m jupyterlab,python3 -m jupyter lab,python3 -m notebook.
- If
Walkthrough.ipynb: contains a tutorial for estimating bat vocalizations given the audio data. You should look at this notebook before anything else.SaveChirpsMAT.ipynb: contains code for saving various computed values (e.g., estimated vocalizations and vocalization times) to MAT files.ValidateCentroidData.ipynb: a short notebook to sanity-check whether the centroid data looks reasonable, i.e., whether the chirps reach the microphones closest to the bat first.
Documentation for the BatlabJuliaUtils library can be found online here.
Coming soon!