Python interface to R package diveMove
Project description
scikit-diveMove is a Python interface to R package diveMove for scientific data analysis, with a focus on diving behaviour analysis. It has utilities to represent, visualize, filter, analyse, and summarize time-depth recorder (TDR) data. Miscellaneous functions for handling position and 3D kinematics data are also provided. scikit-diveMove communicates with a single R instance for access to low-level tools of package diveMove.
The table below shows which features of diveMove are accessible from scikit-diveMove:
diveMove |
scikit-diveMove |
Notes |
|
---|---|---|---|
Functionality |
Functions/Methods |
||
Movement |
austFilter rmsDistFilter grpSpeedFilter distSpeed readLocs |
Under consideration. |
|
Bout analysis |
boutfreqs boutinit bouts2.nlsFUN bouts2.nls bouts3.nlsFUN bouts3.nls bouts2.mleFUN bouts2.ll bouts2.LL bouts.mle labelBouts plotBouts plotBouts2.cdf bec2 bec3 |
BoutsNLS BoutsMLE |
Fully implemented in Python. |
Dive analysis |
readTDR createTDR |
TDR.__init__ TDRSource.__init__ |
Fully implemented. Single TDR class for data with or without speed measurements. |
calibrateDepth |
TDR.calibrate TDR.zoc TDR.detect_wet TDR.detect_dives TDR.detect_dive_phases |
Fully implemented |
|
calibrateSpeed rqPlot |
TDR.calibrate_speed |
New implementation of the algorithm entirely in Python. The procedure generates the plot concurrently. |
|
diveStats stampDive timeBudget |
TDR.dive_stats TDR.time_budget TDR.stamp_dives |
Fully implemented |
|
plotTDR plotDiveModel plotZOC |
TDR.plot TDR.plot_zoc_filters TDR.plot_phases TDR.plot_dive_model |
Fully implemented. Interactivity is the default, as standard matplotlib. |
|
getTDR getDepth getSpeed getTime getCCData getDtime getFileName |
TDR.tdr TDR.get_depth TDR.get_speed TDR.tdr.index TDR.src_file TDR.dtime |
Fully implemented. getCCData deemed redundant, as the columns can be accessed directly from the TDR.tdr attribute. |
|
getDAct getDPhaseLab getDiveDeriv getDiveModel getGAct |
TDR.get_wet_activity TDR.get_dives_details TDR.get_dive_deriv |
Fully implemented |
|
extractDive |
Fully implemented |
scikit-diveMove also provides useful tools for processing signals from tri-axial Inertial Measurement Units (IMU), such as thermal calibration, corrections for shifts in coordinate frames, as well as computation of orientation using a variety of current methods. Analyses are fully tractable by encouraging the use of xarray data structures that can be read from and written to NetCDF file format. Using these data structures, meta-data attributes can be easily appended at all layers as analyses progress.
Installation
Type the following at a terminal command line:
pip install scikit-diveMove
Or install from source tree by typing the following at the command line:
python setup.py install
The documentation can also be installed as described in Documentation.
Once installed, skdiveMove can be easily imported as:
import skdiveMove as skdive
Dependencies
skdiveMove depends primarily on R package diveMove, which must be installed and available to the user running Python. If needed, install diveMove at the R prompt:
install.packages("diveMove")
Documentation
Available at: https://spluque.github.io/scikit-diveMove
Alternatively, installing the package as follows:
pip install -e .["dev"]
allows the documentation to be built locally (choosing the desired target {“html”, “pdf”, etc.}):
make -C docs/ html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scikit_divemove-0.4.0.tar.gz
.
File metadata
- Download URL: scikit_divemove-0.4.0.tar.gz
- Upload date:
- Size: 34.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58dd5a2afa804df76f43c6ab785448cd7ff61a47142dd5771f63dc16d29add45 |
|
MD5 | 812ca32e9f7f0a7a8b1c51a1fb9c7725 |
|
BLAKE2b-256 | 0766716105e53960de0dc52170561160728a9cd471ea560d76b7503a60f9905c |
File details
Details for the file scikit_diveMove-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: scikit_diveMove-0.4.0-py3-none-any.whl
- Upload date:
- Size: 34.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4578e5f6ad1bbcf6ee21b3fc86115a00852a08a341c61965629fa4fdb91134 |
|
MD5 | d41ce2b1a6dedc27e2c6ec3acb178be2 |
|
BLAKE2b-256 | fa2aa87108fa6131572e67e73679455ce8592c2c9e590cb7738161bb4dc3cdce |