Preparing Data

resonATe requires your acoustic telemetry data to have specific column headers. The column headers are the same ones used by the Ocean Tracking Network for their detection extracts.

The columns you need are as follows:

  • catalognumber - A unique identifier assigned to an animal.
  • station - A unique identifier for the station or mooring where the receiver was located. This column is used in resonATe for grouping detections which should be considered to have occurred in the same place.
  • datecollected - Date and time of release or detection, all of which have the same timezone (example format: 2018-02-02 04:09:45).
  • longitude - The receiver location at time of detection in decimal degrees.
  • latitude -  The receiver location at time of detection in decimal degrees.
  • scientificname - The taxonmoic name for the animal detected.
  • fieldnumber - The unique number for the tag/device attached to the animal.
  • unqdetecid - A unique value assigned to each record in the data. resonATe includes a function to generate this column if needed. Details in Unique Detections ID.

The Receiver Efficiency Index also needs a deployment history for stations. The columns for deployments are as follows:

  • station_name - A unique identifier for the station or mooring where the receiver was located. This column is used in resonATe for grouping detections which should be considered to have occurred in the same place.
  • deploy_date - A date of when the receiver was placed in a water or is active (example format: 2018-02-02).
  • recovery_date - A date of when the receiver was removed from the water or became inactive (example format: 2018-02-02).
  • last_download - A date of the last time data was retrieved from the receiver (example format: 2018-02-02).

All other columns are not required and will not affect the functions; however, they may be used in some functions. For example, receiver_group can be used color code data in the Abacus Plot.

Warning

Detection records from mobile receivers, i.e. from receivers attached to gliders or animals, as well as satellite transmitter detections, will not necessarily be appropriate or compatible for use with all of these tools.

Renaming Columns

Pandas provides a rename() function that can be implemented as follows:

import pandas as pd

df = pd.read_csv('/path/to/detections.csv')

df.rename(index=str, columns={
  'your_animal_id_column':'catalognumber',
  'your_station_column':'station',
  'your_date_time_column':'datecollected',
  'your_longitude_column':'longitude',
  'your_latitude_column':'latitude',
  'your_unique_id_column':'unqdetecid'
}, inplace=True)

Example Dataset

catalognumber scientificname commonname receiver_group station datecollected timezone longitude latitude unqdetecid
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:10 UTC -63.50002 42.89487 HFX-A69-9001-26655-170932
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:12 UTC -63.50002 42.89487 HFX-A69-9001-26655-170933
NSBS-Sophie Prionace glauca blue shark HFX HFX249 2014-06-08 20:12 UTC -63.50002 42.88764 HFX-A69-9001-26655-170934
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:14 UTC -63.50002 42.89487 HFX-A69-9001-26655-170935
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:16 UTC -63.50002 42.89487 HFX-A69-9001-26655-170936
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:17 UTC -63.50002 42.89487 HFX-A69-9001-26655-170937
NSBS-Sophie Prionace glauca blue shark HFX HFX248 2014-06-08 20:27 UTC -63.50002 42.89487 HFX-A69-9001-26655-170938
NSBS-Sophie Prionace glauca blue shark HFX HFX247 2014-06-08 20:28 UTC -63.49995 42.90203 HFX-A69-9001-26655-170939
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:36 UTC -63.3331 43.79986 HFX-A69-9001-26667-173924
NSBS-Lola Prionace glauca blue shark HFX HFX118 2014-06-20 11:37 UTC -63.32552 43.8043 HFX-A69-9001-26667-171528
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:38 UTC -63.3331 43.79986 HFX-A69-9001-26667-173925
NSBS-Lola Prionace glauca blue shark HFX HFX118 2014-06-20 11:38 UTC -63.32552 43.8043 HFX-A69-9001-26667-171529
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:40 UTC -63.3331 43.79986 HFX-A69-9001-26667-173926
NSBS-Lola Prionace glauca blue shark HFX HFX118 2014-06-20 11:41 UTC -63.32552 43.8043 HFX-A69-9001-26667-171530
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:42 UTC -63.3331 43.79986 HFX-A69-9001-26667-173927
NSBS-Lola Prionace glauca blue shark HFX HFX118 2014-06-20 11:43 UTC -63.32552 43.8043 HFX-A69-9001-26667-171531
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:44 UTC -63.3331 43.79986 HFX-A69-9001-26667-173928
NSBS-Lola Prionace glauca blue shark HFX HFX119 2014-06-20 11:46 UTC -63.3331 43.79986 HFX-A69-9001-26667-173929
NSBS-Ophelia Prionace glauca blue shark HFX HFX182 2014-06-21 3:21 UTC -63.50012 43.36992 HFX-A69-9001-26669-173703
NSBS-Ophelia Prionace glauca blue shark HFX HFX183 2014-06-21 3:22 UTC -63.50003 43.3631 HFX-A69-9001-26669-174594
NSBS-Ophelia Prionace glauca blue shark HFX HFX183 2014-06-21 3:24 UTC -63.50003 43.3631 HFX-A69-9001-26669-174595
NSBS-Ophelia Prionace glauca blue shark HFX HFX183 2014-06-21 3:26 UTC -63.50003 43.3631 HFX-A69-9001-26669-174596
NSBS-Ophelia Prionace glauca blue shark HFX HFX183 2014-06-21 3:28 UTC -63.50003 43.3631 HFX-A69-9001-26669-174597
NSBS-Ophelia Prionace glauca blue shark HFX HFX182 2014-06-21 3:29 UTC -63.50012 43.36992 HFX-A69-9001-26669-173704
NSBS-Ophelia Prionace glauca blue shark HFX HFX183 2014-06-21 3:30 UTC -63.50003 43.3631 HFX-A69-9001-26669-174598
NSBS-Ophelia Prionace glauca blue shark HFX HFX182 2014-06-21 3:30 UTC -63.50012 43.36992 HFX-A69-9001-26669-173705
NSBS-Ophelia Prionace glauca blue shark HFX HFX182 2014-06-21 3:38 UTC -63.50012 43.36992 HFX-A69-9001-26669-173706
NSBS-Ophelia Prionace glauca blue shark HFX HFX182 2014-06-21 3:43 UTC -63.50012 43.36992 HFX-A69-9001-26669-173707