Skip to main content

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

pyghgaq-0.1.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

pyghgaq-0.1.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pyghgaq-0.1.2.tar.gz.

File metadata

  • Download URL: pyghgaq-0.1.2.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

Hashes for pyghgaq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 11ff5f464f87ac28a8cf483c126b0308f2c0eb077dcfab30f1aaba83c0eab58c
MD5 45370529b7ec978c78efa30785b8a90b
BLAKE2b-256 cd43305ac399c9c88edc513a4c36ab97439deb1473e65f26d000b00401cf1a69

See more details on using hashes here.

File details

Details for the file pyghgaq-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyghgaq-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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

Hashes for pyghgaq-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e01f543e3fd7f703e0b508450fa1e68140eae260fa332890ba831e799f053a83
MD5 3c2a422052ac02a8afc315e6ed2a18c7
BLAKE2b-256 6106b9e1444523c10c869739f9dbfb9678799b50ce018b184768eda763449428

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