Skip to main content

Differential calibrator of the vertical ocean turbulence closures.

Project description

Python PyPi Documentation Status Tests License: CC-BY-NC

Description

This package provides a framework for calibrating the parameters of vertical physics schemes of ocean circulation models using variational optimization. The parameters are calibrated through the minimization of an 'objective function' which compares model predictions with 'Large Eddy Simulations' (LES). Tunax is written in JAX in order to use automatic differentiation for computing the gradient of the objective function with respect to model parameters.

Repository organisation

Sources

The source code of tunax is in the folder tunax/. The two main modules are tunax/model.py which contains the implementation of the forward Single Column Model and tunax/fitter.py which contains the implementation of the calibration part. The various physical closures equations that Tunax can calibrate are implemented in the folder tunax/closures/. The other modules implement the object used by the model and the callibrator and they are described in the documentation.

Notebooks

The folder notebooks/ contains some notebooks of demonstration of tunax.

Installation

Tunax is installed by default with JAX on CPU.

Stable version

Tunax is pip installable the following command will install the lastest stable release :

pip install tunax

Development release

The most recent additions to Tunax since the last release are implemented in the main branch of this repository. To benefit from them one can clone or fork this repository and install Tunax with the package manager poetry :

poetry install --no-dev

Notebook use

To use the notebooks with the specific packages that they use, one can clone or fork the branch main or another of this repository and install Tunax with the package manager poetry :

poetry install

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

tunax-0.2.6.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

tunax-0.2.6-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file tunax-0.2.6.tar.gz.

File metadata

  • Download URL: tunax-0.2.6.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.2 Darwin/23.4.0

File hashes

Hashes for tunax-0.2.6.tar.gz
Algorithm Hash digest
SHA256 acd0a520ec84c3b3ea642ce803db401fdcbf338bc0ee280e9b891b5a5573564d
MD5 b65a033b83d4136498ecf116b21d8920
BLAKE2b-256 52b5d0e0b7a2d203a9f877347dd5d209bcea9ed6c8ed96a3e8a532e58243b2c0

See more details on using hashes here.

File details

Details for the file tunax-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: tunax-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.2 Darwin/23.4.0

File hashes

Hashes for tunax-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 237e1316aa97c3a823ff3d2f0403908d1752316c526beb2255a58fd06ffbee84
MD5 ccdac575f8c50a892d8ae093f1e74150
BLAKE2b-256 08f75499258cdf48eaad66b53f1b05f343b253600cecccfc76505913a9e3dddd

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