Skip to main content

Lutz POC FLux

LutzPOCFlux is a Python library for calculating POC export flux as detailed in Lutz et al. 2007.

Installation

Use the package manager pip to install LutzPOCFlux.

pip install lutzpocflux

Numpy is the only dependency. Other parts of the process, such as reading HDF files and plotting results are expected to be done with other packages.

Usage

There is a convenience class for calculating Flux given a list of annual npp arrays and a ze array (or float value).

This handles

  • Creation of the SVI array
  • Creation of the total average array
  • Calculation of the p ratio_ze
  • Application of the ratio to the total average array
from lutzpocflux import MakeFlux
mf = MakeFlux(ze=ze, annual_npp=npp_list)
flux = mf.get_flux()

Alternatively the calculated flux ratio can be used against another npp array provided seperately.

from lutzpocflux import MakeFlux
mf = MakeFlux(ze=4000.0, annual_npp=npp_list, npp=some_other_npp)
flux = mf.get_flux()

Or the equations can be used on their own.

from lutzpocflux.equations import (
    prd_f,
    rld_f,
    prr_f,
    pratioze_f,
)

# Assuming you already have an average npp and SVI layer, you can
# calculate individual parameters
rld = rld_f(svi)
prd = prd_f(svi)
prr = prr_f(svi)

# ze can be a 2D array of the same shape as the npp input arrays or a float value
pratio = pratioze_f(prd,ze,rld,prr)

# Now use the pratio to calculate your export npp given your choice of npp array:
npp_flux = npp * pratio

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Acknowledgments

Results were tested agains the R package here

License

MIT

Metadata

Release files for lutzpocflux 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lutzpocflux 0.1.5
File Size Uploaded Provenance Actions
lutzpocflux-0.1.5.tar.gz 3.2 kB Without provenance Details for lutzpocflux-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lutzpocflux 0.1.5
File Interpreter ABI Platform Actions
lutzpocflux-0.1.5-py3-none-any.whl Python 3 none any Details for lutzpocflux-0.1.5-py3-none-any.whl

Total release size: 7.1 kB

Release files / lutzpocflux-0.1.5.tar.gz

Download URL lutzpocflux-0.1.5.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba61e762746eb0c757f94c35f11a6fa1343c9c18912850591375c5dffdd755aa
BLAKE2b-256 checksum
How to use checksums
f67e7d9605c5490ee52eb0b7ce37c88e6b4f02a3fecdb02f97334ccd928e3143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/10

Release files / lutzpocflux-0.1.5-py3-none-any.whl

Download URL lutzpocflux-0.1.5-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fe041eb3af528c060fbb94fe9281afa058273030fe9a5d093ecb4a9981c38f7
BLAKE2b-256 checksum
How to use checksums
7329daa6c86a8e0889dd40e4d1d97312a6ff0a1229a7ba27cf8dd04599686869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/10

Security for lutzpocflux 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page