Skip to main content

Total Exchange Flow Framework using xarray

Project description

pyTEF

pyTEF is a Python package that can be used to apply the Total Exchange Framework (TEF) to analyze the exchange flow of an estuary.

To do so TEF analyzes the exchange flow in salinity and/or temperature coordinates rather than spatial coordinates since the dynamics of most estuaries are controlled by the salt distribution. This package provides the necessary tools to use the TEF framework and is built on top of xarray.

Installing

To install use

git clone https://github.com/florianboergel/pyTEF.git and then

pip install -e pyTEF

How to use

00_tef_core.ipynb contains the TEF framework and all documentation.

01_calc.ipynb mainly contains the coordinate transformation of the transport terms and the calculation of the bulk values

Further you find different examples on how to use the TEF framework.

  • 02_example_analytical.ipynb - validation of the pyTEF package

  • 03_example_persian_gulf.ipynb - example TEF analysis applied to the Persian Gulf

Learn about TEF

The TEF analysis framework (Burchard et al., 2018; Lorenz et al., 2019; MacCready, 2011) allows a consistent calculation of the transports and salinities of an exchange flow in salinity space (or every other coordinate). The main idea of TEF is that transports of volume and salinity in and out the estuary of the same salinity partially compensate since only the net exchange changes salinity and volume of the estuary.

The reader is referenced to the follwing literature:

  • PhD thesis of Marvin Lorenz

  • Burchard, H., et al. (2018) The Knudsen theorem and the Total Exchange Flow analysis framework applied to the Baltic Sea. Progress in Oceanography, 10.1016/j.pocean.2018.04.004.

  • Lorenz, M., Klingbeil, K., and Burchard, H. (2020) Numerical Study of the Persian Gulf using an Extended Total Exchange Flow Analysis Framework, J. Geophys. Res. Oceans, 125, e2019JC015527, https://doi.org/10.1029/2019JC015527

  • Lorenz, M., Klingbeil, K., MacCready, P., and Burchard, H. (2019) Numerical issues of the Total Exchange Flow (TEF) analysis framework for quantifying estuarine circulation, Ocean Sci., 15, 601-614, https://doi.org/10.5194/os-15-601-2019

  • MacCready, P., 2011: Calculating estuarine exchange flow using isohaline coordinates. Journal of Physical Oceanography, 41 (6), 1116–1124.

What's new

v0.2 (07.06.2021)

  • first version of pyTEF ready for testing
    • example cases added
    • calculation of bulk values
    • algorithm that finds minima and maxima in a given Q profile
    • added documentation

v0.1 (25.05.2021)

  • implementation of 2D sorting

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pyTEF-0.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

pyTEF-0.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file pyTEF-0.1.tar.gz.

File metadata

  • Download URL: pyTEF-0.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for pyTEF-0.1.tar.gz
Algorithm Hash digest
SHA256 d7e1145bcf45b490b24ba55e49fe2fa04fffcf52486ced62705d923d030324e0
MD5 30b5e4fc5327561c596441c518965f6d
BLAKE2b-256 e5fd59310cc16c81c79f67527dc4298eadbd1ca99b6455c8109170a675cff1f6

See more details on using hashes here.

File details

Details for the file pyTEF-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyTEF-0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for pyTEF-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe97d815143a01e56ad8cd8b52fdeb8af8693b9159a074e84ecf22e2b0ae3b4
MD5 553f404041d641d76d9cc8f223fdf153
BLAKE2b-256 c079ebf59cdcabcc4ed8a24e0491edef91173c1cfc91ad16af59fae849906a5e

See more details on using hashes here.

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