Skip to main content

Python package to compute finite-amplitude local wave activity diagnostics (Huang and Nakamura 2016, JAS)

Project description

Python Library: falwa (v2.3.2)

Python packagecodecov.ioDocumentation StatusDOI

Important: this python package has been renamed from hn2016_falwa to falwa since version v1.0.0.

hn2016_falwa_diagram

Compute from gridded climate data the Finite-amplitude Local Wave Activity (FALWA) and flux terms presented in:

Citing this package

We would be grateful if you mention falwa and cite our software package paper published in the Geoscience Data Journal upon usage:

Huang, C. S. Y., Polster, C., & Nakamura, N. (2025). Falwa: Python Package to Implement Finite‐Amplitude Local Wave Activity Diagnostics on Climate Data. Geoscience Data Journal, 12(2), e70006.

@article{huang_polster_nakamura_2025,
  title={Falwa: Python Package to Implement Finite-Amplitude Local Wave Activity Diagnostics on Climate Data},
  author={Huang, Clare S Y and Polster, Christopher and Nakamura, Noboru},
  journal={Geoscience Data Journal},
  volume={12},
  number={2},
  pages={e70006},
  year={2025},
  doi = {10.1002/GDJ3.70006},
  publisher={Wiley Online Library}}

Package Installation

Attention: substantial changes took place in release v2.0.0. Installation in develop mode is no longer available.

Since release v2.0.0, the F2PY modules in falwa is compiled with meson (See Issue #95 for details) to cope with the deprecation of numpy.disutils in python 3.12.

First-time installation

  1. To build the package from source, you need a fortran compiler (e.g., gfortran) to implement the installation.
  2. Clone the package repo by git clone https://github.com/csyhuang/hn2016_falwa.git .
  3. Navigate into the repository and set up a python environment satisfying the installation requirement by conda env create -f environment.yml. The environment name in the file is set to be falwa_env (which users can change).
  4. Install the package with the command python -m pip install .. The compile modules will be saved to python site-packages directory.
  5. If the installation is successful, you should be able to run through all unit tests in the folder tests/ by executing pytest tests/.

Get updated code from new releases

  1. To incorporate updates, first, pull the new version of the code from GitHub by git pull.
  2. Uninstall existing version of falwa: pip uninstall falwa
  3. If there is change in environment.yml, remove the existing environment by conda remove --name falwa_env --all and create the environment again from the updated YML file: conda env create -f environment.yml.
  4. Reinstall the updated version by python -m pip install ..
  5. Run through all unit tests in the folder tests/ by executing pytest tests/ to make sure the package has been properly installed.

Quick start

There are some readily run python scripts (in scripts/) and jupyter notebooks (in notebooks/) which you can start with. The netCDF files needed can be found in Clare's Dropbox folder.

Depending on what you want to do, the methods to be use may be different.

  1. If you solely want to compute equivalent latitude and local wave activity from a 2D field, you can refer to notebooks/simple/Example_barotropic.ipynb. This is useful for users who want to use LWA to quantify field anomalies.

  2. If you want to compute zonal wind reference states and wave activity fluxes in QG Formalism, look at notebooks/nh2018_science/demo_script_for_nh2018.ipynb for the usage of QGField. This notebook demonstrates how to compute wave activity and reference states presented in Nakamura and Huang (2018). To make sure the package is properly installed in your environment, run through the notebook after installation to see if there is error.

Inquiries / Issues reporting

  • If you are interested in getting email message related to update of this package, please leave your contact here such that I can keep you updated of any changes made.
  • If you encounter coding issues/bugs when using the package, please create an Issue ticket.
  • If you have scientific questions, please create a thread in the Discussion Board with the category "General" or "Q&A" according to the circumstance.

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

falwa-2.3.2.tar.gz (60.2 kB view details)

Uploaded Source

Built Distributions

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

falwa-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

falwa-2.3.2-cp312-cp312-macosx_14_0_arm64.whl (943.3 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

falwa-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

falwa-2.3.2-cp311-cp311-macosx_14_0_arm64.whl (941.7 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

falwa-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

falwa-2.3.2-cp310-cp310-macosx_14_0_arm64.whl (939.3 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file falwa-2.3.2.tar.gz.

File metadata

  • Download URL: falwa-2.3.2.tar.gz
  • Upload date:
  • Size: 60.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for falwa-2.3.2.tar.gz
Algorithm Hash digest
SHA256 928856f317faac61593303449b78cc4a7c1dddf8ac615334d336a5ce25ca7e87
MD5 0f9900feda78aa656e8b5604b276d45a
BLAKE2b-256 3f77b81192e987c1312e841dc55e97d2b7d5e23be35ba0f9349fafb012a2f74b

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2.tar.gz:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4c6e1e3ea0dcad86b5e47f9602c551c1b0b791ed3cb7747a9ebd030ebb5f736
MD5 f6984fb80b72611b0cbcd00da6af8d9a
BLAKE2b-256 0299303ce5a23c3153f19239a541a5830e2bb773cf1f7f3da9ffb4e39cb8963f

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dfb5fcb7b887031686cbbfb1e81621b9262a1ff6a73b71398899c3b1488514b6
MD5 c697301da91e6f107242af2351a26c1b
BLAKE2b-256 7d0ff7641fc54fbf1d1cccdfdd734fbe0000a4afe58bc6db41807ed6f782a0a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2158d63374afe09328f175c4da42077b3913e579dfa2358ecee773e266a9715
MD5 bcab399bddf4e4599bebfb8dfdde344e
BLAKE2b-256 60a54f597cea55be91890b62ea29adb87c4f81565c0a2de962c7a372e5a70751

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d308e76aedf72427ecd4dd2702733ef8b59ef5785d2d8d85a73147c7c773e231
MD5 da04e1960c887c3366d891620eee4793
BLAKE2b-256 543f1d4c2da116869e282f17124d74b76bc0f2a996c6f93f06cd5c0efa959ce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f99a174c8a4c844df6f2062cced85e9b0d032b448e7714b4ef24d67331f6034
MD5 c670a7562af7551a3c23464a112d8a79
BLAKE2b-256 0a36c4d62e25c1a637fed66b5a7127183345e5e942bb7a0ec5b2781d75b4fc3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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

File details

Details for the file falwa-2.3.2-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for falwa-2.3.2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 01c24b2e4b1262cf22f3f2e2b3de1b0dc96b825469ca87c2fda228d949c288fc
MD5 61bb77b935372e99cc6e28a85025ef27
BLAKE2b-256 5408682cb0ed65779ebfb431c076f0969ee5e31b3e3d7e1d7a53841f36c56a6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for falwa-2.3.2-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: publish_to_pypi.yml on csyhuang/hn2016_falwa

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