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.0.tar.gz (11.3 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.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyghgaq-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 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.0.tar.gz
Algorithm Hash digest
SHA256 f9c3864c9bb3739c63d858a58abca79637d994cec01c89e08dafa45e2a06a89e
MD5 c8f80e80365a345df061e6017d2d6942
BLAKE2b-256 f22f6127aa954932afb565306b2cd1162fca5c529793ddc407af00d33baed1c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyghgaq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9eb37d9be6481242ae034a5b4f8bdc5fc56689af88dda32ec7f54839b44b6d37
MD5 e1bb70347e14b5ee26093ac1f37b9c14
BLAKE2b-256 e67362aa0893a393f9984de3bba877483f47234f02e3c8bae625385b544e9813

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