A package to calculate GHG emissions from aquatic ecosystems
Project description
PyGHGaq
This package contains different methods and properties to estimate GHG (CH4 and CO2) emissions and concentrations for aquatic ecosystems
Implemented methods:
- Flux through the water-air interface
- Gas transfer coefficient (k600) using different models:
- MacIntyre et al. 2010 (positive bouyancy, negative bouyancy and mixed).
- Cole and Caraco 1998.
- Vachon and Prairie 2013.
- Calculations to transfor k600 to kgas and viceversa.
- Schmidt number.
- Henry's coefficient corrected by temperature and salt.
- Saturation concentration in water.
Installation
pip install pyghgaq
Usage
import pyghgaq
import numpy as np
temp = np.random.random(30)
u = np.random.random(30)
cw = np.random.random(30)
cgas = np.random.random(30)
hcpch4 = pyghgaq.henry_coefficient("CH4", temp_c=temp)
k600_ms = pyghgaq.k600("VP2013", u10_ms=1, area_km2=1)
kgas_ms = pyghgaq.k600_to_kx("CO2", temp, k600_ms, u)
co2flux = pyghgaq.atm_diff_flux(cgas, cw, kgas_ms)
Units
Units are managed using Pint. They can be changed by default for all the package as
from pyghgaq.functions.units import DEFAULT_INPUT_UNITS
DEFAULT_INPUT_UNITS["WindSpeed"] = "m/s"
DEFAULT_INPUT_UNITS["kgas"] = "m/d"
or by function as:
atmf = pyg.atm_diff_flux(0, 1, 2, units={"kgas": "m/s"})
IMPORTANT
This package is still under delvelopment
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyghgaq-0.1.1.tar.gz.
File metadata
- Download URL: pyghgaq-0.1.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86b507acd862b346572c8474aec86983413910adcd2061b7280e1bbad76901f
|
|
| MD5 |
901d39e1415ad5c45395f30b2cc5c6c0
|
|
| BLAKE2b-256 |
709672aeca97437f792987b2d6a3732038b3ec4efcdf7a33f15135f75babab07
|
File details
Details for the file pyghgaq-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyghgaq-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb5ac25e9d2640e714181ab5632a92366634d6df5c0c49bb695f7be5b948d91
|
|
| MD5 |
119038986344ed105d95e22932fcde51
|
|
| BLAKE2b-256 |
bd0d9d1f79b6aa1fb8fcb7aa9173db462b457eb274232a1718f588a8e3d70ce1
|