Skip to main content

pylake

Project description

PyLake

This work present methods used to compute meaningful physical properties in aquatic sciences.

Multi-dimensional array (time and depth) are compatible.

Algorithms and documentation are inspired by LakeAnalyzer in R (https://github.com/GLEON/rLakeAnalyzer)

Implemented methods:

  • Thermocline
  • Mixed layer
  • Metalimnion extent (top metalimnion and bottom metalimnion)
  • Wedderburn Number
  • Schmidt stability
  • internal energy
  • Seiche periode
  • Lake Number
  • Brunt-Vaisala frequency
  • Average layer temperature

Future updates:

  • Data check and comparison with other sources
  • Xarray based algorithms for spatial data compatibility
  • Thermocline uses a smoothing algorithm (savgol filter) to correct the variability in vertical resolution. This method is temporary and need to be replaced.
  • Mixed layer interpolation need to be optimized, set as parameter for now

Installation

pip install pylake

Usage

import pylake
import numpy as np

temp = np.array([14.3,14,12.1,10,9.7,9.5])
depth = np.array([1,2,3,4,5,6])
meta_depth = pylake.meta_depths(temp, depth, thermocline_output=True)

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

pylake-0.0.4.tar.gz (12.8 kB view hashes)

Uploaded Source

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