Skip to main content

Routines to calculate time lags and time averaging in oceanographic shipboard underway surface seawater lines.

Project description

swlag: Calculate lag time constants in shipboard seawater lines

Tests License: GPL v3 Code style: black

Introduction

swlag is numerical package designed to calculate the travel time of water from the inlet of a research vessel's underwater seawater line to the lab. Originally implemented for use with data collected from "The Loop" aboard the Canadian Coast Guard Vessel John P. Tully, this code can be used for any underway seawater line that has temperature sensors at both the inlet and outlet (laboratory) ends of the line.

Knowledge of these parameters can be used to accurately place measurements from the Loop in both geographic and temperature-salinity space.

Installation

With pip

Install from the Python Package Index:

pip install swlag

Update an existing installation:

pip install swlag --upgrade --no-cache-dir

With conda/mamba

Install from the conda-forge channel:

conda install swlag -c conda-forge

Documentation

Gaps in data. Time lag calculations rely on data with a monotonically increasing time coordinate. There is no functionality built in to the package to adapt to data that aren't monotically increasing. This will need to be taken care of by the user. Strategies could include interpolation of the temperature data in cases of short gaps, or splitting the time-series into segments that are continuous in cases of long gaps.

Basic use

About

swlag is maintained by Dr. Paul Covert at Fisheries and Oceans Canada's Institute of Ocean Sciences.

License

swlag is licensed under the GNU General Public License version 3 (GPLv3).

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

swlag-25.2.1a1.tar.gz (400.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swlag-25.2.1a1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file swlag-25.2.1a1.tar.gz.

File metadata

  • Download URL: swlag-25.2.1a1.tar.gz
  • Upload date:
  • Size: 400.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for swlag-25.2.1a1.tar.gz
Algorithm Hash digest
SHA256 1136930bef28802ad6d9f405ef73c16299e146f5d9c91a56279d86587c0f8784
MD5 91f527073ecfd02e0cda8a1403e4ce4b
BLAKE2b-256 ac93df44be2899dafaa61e2076486b3fdad27a813565fa0038d29b820cf4f9c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for swlag-25.2.1a1.tar.gz:

Publisher: python-publish.yml on paul-covert/swlag

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swlag-25.2.1a1-py3-none-any.whl.

File metadata

  • Download URL: swlag-25.2.1a1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for swlag-25.2.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a72e6f6fa755add9c0c8b5b9d6052ffcb57d136a859b5deb249f56f80866804
MD5 a875986943f973fc0cbd6967b4c2febb
BLAKE2b-256 712972a613e612b8db1873ce7b95208d5f0b481c0fbcf78663fd7f28a16163c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for swlag-25.2.1a1-py3-none-any.whl:

Publisher: python-publish.yml on paul-covert/swlag

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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