Skip to main content

resonate data analysis package

Project description

resonate

resonATe is the Ocean Tracking Network's acoustic telemetry analysis toolkit. It can be used to filter, compress, visualize and analyze acoustic detection extracts from OTN.

Abacus Plot

The abacus plot is a way to plot annimal along time. The function uses Plotly to place your points on a scatter plot. ycolumn is used as the y axis and datecollected is used as the x axis. color_column is used to group detections together and assign them a color.

Bubble Plot

The bubble plot function returns a Plotly scatter plot layered ontop of a map. The color of the markers will indicate the number of detections at each location. Alternatively, you can indicate the number of individuals seen at each location by using type = 'individual'.

Cohort

The tool takes a file of compressed detections and a time parameter in minutes. It identifies groups of animals traveling together. Each station an animal visits is checked for other animals detected there within the specified time period.

Compressing Detections

Compressing detections is done by looking at the detection times and locations of an animal. Any detections that occur successively in time, in the same location are combined into a single detection with a start and end time. The result is a compressed detections Pandas DataFrame.

Compression is the first step of the Mihoff Interval Data Tool. Compressed detection DataFrames are needed for the tools, such as interval and cohort.

Filtering

(White, E., Mihoff, M., Jones, B., Bajona, L., Halfyard, E. 2014. White-Mihoff False Filtering Tool)

OTN has developed a tool which will assist with filtering false detections. The first level of filtering involves identifying isolated detections. The original concept came from work done by Easton White. He was kind enough to share his research database with OTN. We did some preliminary research and developed a proposal for a filtering tool based on what Easton had done. This proof of concept was presented to Steve Kessel and Eddie Halfyard in December 2013 and a decision was made to develop a tool for general use.

This is a very simple tool. It will take an input file of detections and based on an input parameter will identify suspect detections. The suspect detections will be put into a dataframe which the user can examine. There will be enough information for each suspect detection for the user to understand why it was flagged. There is also enough information to be able to reference the detection in the original file if the user wants to see what was happening at the same time.

The input parameter is a time in minutes. We used 3600 seconds as the default as this is what was used in Easton's code. This value can be changed by the user. The output contains a record for each detection for which there has been more than xx minutes since the previous detection (of that tag/animal) and more than the same amount of time until the next detection. It ignores which receiver the detection occurred at. That is all it does, nothing more and nothing less.

Distance Matrix

This takes a DataFrame created by the White-Mihoff False Filtering tool. The file contains rows of station pairs with the straight line distance between them calculated in metres. A station pair will only be in the file if an animal traveled between the stations. If an animal goes from stn1 to stn2 and then to stn3, pairs stn1-stn2 and stn2-stn3 will be in the file. If no animal goes between stn1 and stn3, that pair will not be in the file. The tool also takes a file that the researcher provides of ‘real distances’. The output will be a file which looks like the first file with the ‘real distance’ column updated.

Interval Data

(Mihoff, M., Jones, B., Bajona, L., Halfyard, E. 2014. Mihoff Interval Data Tool)

This tool will take a DataFrame of compressed detections and a distance matrix and output an interval DataFrame. The Interval DataFrame will contain records of the animal id, the arrival time at stn1, the departure time at stn1, the detection count at stn1, the arrival time at stn2, time between detections at the two stations, the interval in seconds, the distance between stations, and the velocity of the animal in m/s.

Residence Index

This residence index tool will take a compressed or uncompressed detection file and caculate the residency index for each station/receiver in the detections. A CSV file will be written to the data directory for future use. A Pandas DataFrame is returned from the function, which can be used to plot the information. The information passed to the function is what is used to calculate the residence index, make sure you are only passing the data you want taken into consideration for the residence index (i.e. species, stations, tags, etc.).

Unique Id

This tool will add a column to any file. The unique id will be sequential integers. No validation is done on the input file.

Visual Timeline

This tool takes a detections extract file, compresses it, and generates an HTML and JSON file to an html folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resonATe-1.0.7.tar.gz (24.3 kB view details)

Uploaded Source

Built Distributions

resonATe-1.0.7-py3.7.egg (50.2 kB view details)

Uploaded Source

resonATe-1.0.7-py3.6.egg (43.8 kB view details)

Uploaded Source

resonATe-1.0.7-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file resonATe-1.0.7.tar.gz.

File metadata

  • Download URL: resonATe-1.0.7.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for resonATe-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3bb4be98aa24b95e70b09a06746507329716d7e09655673aba019f442c519b3b
MD5 752c584c576a96342d8412ba732affd9
BLAKE2b-256 912ea1a3675b23d18c42a06ef39a6a1e2e80dbf3b8448d75f354957a622db484

See more details on using hashes here.

File details

Details for the file resonATe-1.0.7-py3.7.egg.

File metadata

  • Download URL: resonATe-1.0.7-py3.7.egg
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for resonATe-1.0.7-py3.7.egg
Algorithm Hash digest
SHA256 5c17bdcff545317b41457cb4496307eda34ebd769a1381445e33ce6879dea9e7
MD5 606b5c6d603882491ea20a37daa03065
BLAKE2b-256 2d9ff0b79296716c35fa6b1318378ae48aea517614723fe9fa9a696038bb7a4b

See more details on using hashes here.

File details

Details for the file resonATe-1.0.7-py3.6.egg.

File metadata

  • Download URL: resonATe-1.0.7-py3.6.egg
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for resonATe-1.0.7-py3.6.egg
Algorithm Hash digest
SHA256 62a6117981290cecd9d94c0cece98080d7d8a6fe7a3e848caaeed6d43a5894e2
MD5 4901e6e48d974f5936c69240552989dd
BLAKE2b-256 d636566d238a69b9f772046bbed66514c11f287db5fca19ce38372e7717c7223

See more details on using hashes here.

File details

Details for the file resonATe-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: resonATe-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for resonATe-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf3350470bb6ebe893145b6736d3c200138014dd4479ff411efa4eb54a84d023
MD5 a0c4b30a4b59bcf45ef7d4e47489c3b1
BLAKE2b-256 1a8cce77d2e74a90e3eb1a2bad77ecd337ed882434dcbfd6cc5a527d86561ef8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page