View source: R/dive_acoustic_summary.R
dive_acoustic_summary | R Documentation |
Summarize SMRT (and/or Lander2) tag data from .nc files for each foraging dive cycle. Note: Currently for only SMRT tags; function and help will be updated to allow inclusion of Lander2 data as well when possible.
dive_acoustic_summary(
tag_id = zc_smrt_tag_list,
nc_path = getwd(),
ae_path = getwd(),
bathy_path,
ETOP01_bathy = FALSE,
rl_file = c("RLs_3obank.csv", "RLs_3obank_2022.csv"),
ping_log_file = c("qPing_log_corr_times_master",
"Zica-20220112-195994_Individual_MFA_Pings.csv",
"Zica-20211113-195993_Individual_MFA_Pings.csv",
"Zica-20211112-94819_Individual_MFA_Pings.csv"),
email,
save_csv = TRUE,
csv_name = "dive_acoustic_summary.csv"
)
tag_id |
Character string or vector with tag IDs (without "-cal.nc"). Default: all SMRT ziphius tags. |
nc_path |
Directory (quoted string) where .nc files are stored. Can be one string, or a list the same length as tag_ids. Note: to download latest versions from Google drive, try function: |
ae_path |
Directory (quoted string) where text files with info about acoustic events are stored. If needed, you can use |
bathy_path |
A directory path to the folder containing all bathymetry data. Use |
ETOP01_bathy |
whether to try to fill-in bathymetry info for locations outside NEPAC dataset bounds using NOAA online ETOP01 database. Default is FALSE. This is slow and no animals have gone out-of-bounds yet as of July 2021. |
rl_file |
name(s) (with path, if needed) of locally-stored .csv file(s) with raw RL data. If not provided, the default is to use |
ping_log_file |
name(s) (with path, if needed) of locally-stored .csv file(s) with ping log (acoustic audit) data. If not provided, the default is to use |
email |
Email address (required for FB Google Drive authentication; optional if |
save_csv |
Logical; whether or not to save a csv file with the results. Default: TRUE (and will overwrite any existing file) |
csv_name |
File name (with path, if desired) in which to save results in csv format. Default is dive_acoustic_summary.csv. |
A data.frame() with one row per dive, per whale
# Examples will go here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.