hn2016_falwa
A Python library for computing Finite-Amplitude Local Wave Activity from climate data.
https://github.com/csyhuang/hn2016_falwa
Category: Climate Change
Sub Category: Climate Data Processing and Analysis
Keywords
climate climate-analysis climate-data climate-data-analysis climate-science hacktoberfest python science science-research
Keywords from Contributors
archiving transforms measur generic optimize observation compose conversion projection animals
Last synced: about 13 hours ago
JSON representation
Repository metadata
Python library for computing Finite-Amplitude Local Wave Activity Diagnostics from climate data.
- Host: GitHub
- URL: https://github.com/csyhuang/hn2016_falwa
- Owner: csyhuang
- License: mit
- Created: 2016-07-21T23:24:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T23:01:03.000Z (17 days ago)
- Last Synced: 2025-04-10T00:18:59.448Z (17 days ago)
- Topics: climate, climate-analysis, climate-data, climate-data-analysis, climate-science, hacktoberfest, python, science, science-research
- Language: Jupyter Notebook
- Homepage: https://hn2016-falwa.readthedocs.io/en/latest/
- Size: 252 MB
- Stars: 35
- Watchers: 3
- Forks: 17
- Open Issues: 11
- Releases: 32
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
readme.md
Python Library: falwa (v2.1.0)
Important: this python package has been renamed from hn2016_falwa
to falwa
since version v1.0.0.
Compute from gridded climate data the Finite-amplitude Local Wave Activity (FALWA) and flux terms introduced in:
- Huang and Nakamura (2016, JAS)
- Huang and Nakamura (2017, GRL).
- Nakamura and Huang (2018, Science) Atmospheric Blocking as a Traffic Jam in the Jet Stream.
- Neal et al (2022, GRL) The 2021 Pacific Northwest Heat Wave and Associated Blocking: Meteorology and the Role of an Upstream Cyclone as a Diabatic Source of Wave Activity
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
- To build the package from source, you need a fortran compiler (e.g., gfortran) to implement the installation.
- Clone the package repo by
git clone https://github.com/csyhuang/hn2016_falwa.git
. - 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 befalwa_env
(which users can change). - Install the package with the command
python -m pip install .
. The compile modules will be saved to python site-packages directory. - If the installation is successful, you should be able to run through all unit tests in the folder
tests/
by executingpytest tests/
.
Get updated code from new releases
- To incorporate updates, first, pull the new version of the code from GitHub by
git pull
. - Uninstall existing version of
falwa
:pip uninstall falwa
- If there is change in
environment.yml
, remove the existing environment byconda remove --name falwa_env --all
and create the environment again from the updated YML file:conda env create -f environment.yml
. - Reinstall the updated version by
python -m pip install .
. - Run through all unit tests in the folder
tests/
by executingpytest 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.
-
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. -
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 ofQGField
. 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.
Owner metadata
- Name: Clare S. Y. Huang
- Login: csyhuang
- Email:
- Kind: user
- Description: Data Scientist. Climate Scientist. Ph.D in Geophysical Sciences (U of Chicago). Love coding, writing and playing music.
- Website: http://claresyhuang.info
- Location:
- Twitter: claresyhuang
- Company:
- Icon url: https://avatars.githubusercontent.com/u/14957917?u=27816496048f0fe246d5513002d4127c91fd80b0&v=4
- Repositories: 43
- Last ynced at: 2024-06-11T15:49:12.823Z
- Profile URL: https://github.com/csyhuang
GitHub Events
Total
- Create event: 10
- Release event: 1
- Issues event: 6
- Watch event: 2
- Delete event: 9
- Issue comment event: 10
- Push event: 255
- Pull request review event: 2
- Pull request event: 7
- Fork event: 2
Last Year
- Create event: 10
- Release event: 1
- Issues event: 6
- Watch event: 2
- Delete event: 9
- Issue comment event: 10
- Push event: 255
- Pull request review event: 2
- Pull request event: 7
- Fork event: 2
Committers metadata
Last synced: 4 days ago
Total Commits: 551
Total Committers: 7
Avg Commits per committer: 78.714
Development Distribution Score (DDS): 0.113
Commits in past year: 62
Committers in past year: 3
Avg Commits per committer in past year: 20.667
Development Distribution Score (DDS) in past year: 0.097
Name | Commits | |
---|---|---|
csyhuang | c****g@u****u | 489 |
Christopher Polster | c****e@t****o | 43 |
Pragallva Barpanda | p****a@l****o | 9 |
veredsil | v****n@g****m | 4 |
dependabot[bot] | 4****] | 3 |
Shao Ying Huang | c****g@w****u | 2 |
Huang, Clare | c****g@c****m | 1 |
Committer domains:
- conversantmedia.com: 1
- winds.uchicago.edu: 1
- l4k6tvl2gp.klientdrift.uib.no: 1
- tuta.io: 1
- uchicago.edu: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 80
Total pull requests: 54
Average time to close issues: 4 months
Average time to close pull requests: 12 days
Total issue authors: 14
Total pull request authors: 5
Average comments per issue: 1.79
Average comments per pull request: 1.17
Merged pull request: 48
Bot issues: 0
Bot pull requests: 4
Past year issues: 16
Past year pull requests: 9
Past year average time to close issues: 3 months
Past year average time to close pull requests: 6 days
Past year issue authors: 2
Past year pull request authors: 3
Past year average comments per issue: 0.81
Past year average comments per pull request: 1.89
Past year merged pull request: 7
Past year bot issues: 0
Past year bot pull requests: 1
Top Issue Authors
- csyhuang (58)
- sandrolubis (4)
- Pragallva (2)
- miniufo (2)
- hs2112 (2)
- Veenarinesingh (2)
- chpolste (2)
- AminFazlKazemi (2)
- hungilee (1)
- chauncy-git (1)
- GuidoDavoli (1)
- semvijverberg (1)
- paologhinassi (1)
- mpecnjak (1)
Top Pull Request Authors
- csyhuang (34)
- chpolste (13)
- dependabot[bot] (4)
- Pragallva (2)
- veredsil (1)
Top Issue Labels
- enhancement (11)
- MDTF (11)
- contributions welcome (10)
- help wanted (5)
- release2.1 (5)
- release1.3 (5)
- scientific question (4)
- bug (4)
- release2.2 (2)
- good first issue (1)
- Hacktoberfest (1)
Top Pull Request Labels
- dependencies (4)
- release2.2 (2)
- release1.0 (1)
- release (1)
- release2.1 (1)
Package metadata
- Total packages: 2
-
Total downloads:
- pypi: 815 last-month
- Total dependent packages: 1 (may contain duplicates)
- Total dependent repositories: 1 (may contain duplicates)
- Total versions: 25
- Total maintainers: 1
pypi.org: hn2016-falwa
This python package has been renamed from `hn2016_falwa` to `falwa` since version v1.0.0.
- Homepage: https://github.com/csyhuang/hn2016_falwa
- Documentation: https://hn2016-falwa.readthedocs.io/
- Licenses: MIT
- Latest release: 0.7.3 (published over 1 year ago)
- Last Synced: 2025-04-25T13:04:59.229Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 478 Last month
-
Rankings:
- Dependent packages count: 7.303%
- Forks count: 10.199%
- Stargazers count: 12.055%
- Average: 14.951%
- Dependent repos count: 22.068%
- Downloads: 23.128%
- Maintainers (1)
pypi.org: falwa
Python package to compute finite-amplitude local wave activity diagnostics (Huang and Nakamura 2016, JAS)
- Homepage:
- Documentation: https://hn2016-falwa.readthedocs.io/
- Licenses: Copyright (c) 2015-2024 Clare S. Y. Huang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Latest release: 2.1.0 (published about 1 month ago)
- Last Synced: 2025-04-25T13:04:59.250Z (1 day ago)
- Versions: 7
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 337 Last month
-
Rankings:
- Dependent packages count: 9.964%
- Forks count: 10.177%
- Stargazers count: 12.034%
- Average: 24.981%
- Dependent repos count: 67.747%
- Maintainers (1)
Dependencies
- numpy
- pytest
- scipy
- xarray
- ecmwfapi
- jupyterlab
- matplotlib 2.2.2.*
- netcdf4
- numpy
- pytest
- scipy
- numpy *
- readthedocs-sphinx-search ==0.1.1
- scipy *
- sphinx ==3.2.1
- sphinx_rtd_theme ==1.0.0
- xarray *
- numpy *
- pytest *
- scipy *
- xarray *
- actions/checkout v2 composite
- actions/setup-python master composite
Score: 12.481413882147155