dive_cycle_summary.Rd
Summarize SMRT (and/or Lander2) tag data from .nc files for each foraging dive cycle. There are data at two, nested time-scales: the dive cycle (a foraging dive and all the dives that follow it) and, within that, time-periods of set length in which other metrics are averaged. This function does coarse scale only. The data are intended for use in a state-switching model.
Character string or vector with tag IDs (without "-cal.nc"). Default: all SMRT ziphius tags.
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: download_drive_nc
. Default: current working directory. Note: use "/" and not "\" to avoid headaches.
Directory (quoted string) where text files with info about acoustic events are stored. If needed, you can use download_drive_acoustic_events
to get these. Default is the current working directory.
A directory path to the folder containing all bathymetry data. Use download_bathy
if you don't have this data already. If not provided, the bathymetry data will not be included in the output dataset.
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.
name (with path, if needed) of locally-stored .csv file with raw RL data. If not provided, the default is to use download_drive_rls
to obtain it from the FB Google Drive.
name (with path, if needed) of locally-stored .csv file with raw RL data. If not provided, the default is to use download_drive_rls
to obtain it from the FB Google Drive.
directory where files with results of RL modeling (for non-acoustic tags) are stored locally
name (with path, if needed) of locally-stored .csv file with information on machine-learning classification of dives as foraging or not. This should match perfectly with presence/absence of clicking from acoustic recordings, but is mainly for tags/dives without acoutics.
optional - if you have already run dive_acoustic_summary
and have saved results as a csv, you can use that file to get results faster. Otherwise, this function will call dive_acoustic_summary
and re-do the dive-level processing.
Email address (required for FB Google Drive authentication; optional if rl_file
is provided). You may also be asked to sign in or verify your Google identity as this function runs.
Logical; whether or not to save a csv file with the results. Default: TRUE (and will overwrite any existing file)
Logical; whether or not to save csv file with geo-referenced pseudotrack (in meters northing/easting relative to initial location)
Directory to store tracks in (if save_tracks is TRUE). Defaults to working directory.
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