Skip to content

pyCOARE/coare

Folders and files

NameName
Last commit message
Last commit date
Mar 21, 2025
Mar 22, 2025
Mar 22, 2025
Mar 21, 2025
Oct 29, 2024
Mar 5, 2025
Oct 10, 2023
Sep 9, 2022
Mar 22, 2025
Mar 21, 2025
Oct 29, 2024

Repository files navigation

Tests License Code coverage Docs PyPI version

pycoare

pycoare is a Python package for calculating various air-sea fluxes from bulk variables (e.g., wind speed, temperature, humidity), using the COARE algorithms developed through the TOGA-COARE project (Fairall et al., 1996a, Fairall et al., 1996b, Fairall et al., 1997).

Included in this package are implementations of the COARE v3.5 and v3.6 algorithms that builds on the original NOAA-PSL pycoare code. This package makes very minor updates to the algorithm itself, instead focusing on improved code structure, packaging, documentation, and distribution by implementing an object oriented approach and utilizing modern Python tooling. The goal of this new version is to improve usability and reproducibility, encourage collaboration, and ease maintenance.

See the changelog for all mathematically relevant changes made to the algorithm itself.

Find more details on the usage and api in the documentation.

Installation

The latest stable version (currently a beta) can be downloaded using pip:

pip install pycoare

The package can also be added to projects via uv:

uv add pycoare

You can install the most up-to-date version using:

pip install git+https://github.com/pycoare/coare

Versions

pycoare contains two versions of the COARE algorithm: COARE v3.5 and COARE v3.6.

Version 3.5 was released in 2013, which made adjustments to the wind speed dependence of the Charnock parameter based on a large database of direct covariance stress observations (principally from a buoy) (Edson et al., 2013). This led to an increase in stress for wind speeds greater than about 18 m/s. The roughness Reynolds number formulation of the scalar roughness length was tuned slightly to give the same values of Ch and Ce as Version 3.0. The diurnal warm layer model was structured as a separate routine instead of embedded in a driver program. COARE v3.5 was based on buoy data (Edson et al., 2013) and was compared to a large database (a total of 16,000 hours of observations) combining observations from NOAA, WHOI, and U. Miami (Fairall et al., 2011).

Version 3.6 is slightly restructured and built around improvements in the representation of the effects of waves on fluxes. This includes improved relationships of surface roughness and whitecap fraction on wave parameters (Fairall et al., 2022).

Contribution

I welcome any contributions - feel free to raise an issue or submit a pull request. Take a look at the contribution guide to get started!

Credits

This Python implementation of the COARE algorithm was initially translated from MATLAB by Byron Blomquist, Ludovic Bariteau, with support from the NOAA Physical Sciences Laboratory (Ludovic et al., 2021).

The development of the COARE algorithm builds upon decades of research, for which I am extremely appreciative. The history of the COARE algorithm and its development can be found here (Fairall et al., 2022).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages