Skip to main content

satpp

Primary production models driven with satellite-derived data, as an installable package (src/satpp) managed with uv.

src/satpp/
  astronomy/       solar geometry and day length (yearday-based `solar`, datetime-based `daylight`)
  light/           surface PAR spectrum, clear-sky surface irradiance, daily course of PAR,
                   propagation with depth
  optics/          pure water, CDOM and phytoplankton absorption, Case-1 IOPs from Chl,
                   diffuse attenuation (Lee, Morel, Austin & Petzold, Secchi), euphotic depth
  chlorophyll/     vertical Chl profiles, size classes (Brewin), Uitz et al. (2006) class profiles
  physiology/      P-I curves, quantum yield (Kiefer & Mitchell), photoacclimation, temperature
  models/          one module per primary production model (psm, cafe, abpm, wrm, cbpm, cbpm05,
                   morel91, arrigo08, marra03, vgpm, drpp, kiefer_mitchell, uitz10, belanger13,
                   hirawake, zoffoli18, arteaga16, hirata09, kameda05, ondrusek01, and the
                   geostationary goci_abpm, asaoka20, son05, kosc_vgpm)
  diagnostics/     tools that run several models side by side (light_fields)
  hybrid.py        mix-and-match of optics, light and physiology from PSM, CAFE, AbPM and WRM
  config.py        default PSM wavelength and depth grids
  units.py         unit conversions
model_notebooks/   one notebook per model (light_field = PSM), plus the comparisons
                   light_curves, light_attenuation and pp_depth
  geostationary/   notebooks for the GOCI models
hybrid.ipynb       validations, factorial comparison, CbPM2 and nutrient sections
docs/              Quarto documentation: interactive pages, component and experiment
                   notebooks, API reference (site configuration in _quarto.yml)
tests/             regression test of every model against stored values
rust/              Rust port of parts of the PSM

Relationships that are shared between models, or were not developed for a particular model, live in the subpackages; a model module keeps only what is specific to that model.

Usage

uv sync                      # create .venv with the package (editable), dev and notebook tools
uv run pytest                # regression tests
uv run jupyter lab           # notebooks
from satpp.models import cafe, vgpm
from satpp.optics.case1 import giop_inputs

iop = giop_inputs(0.5)                       # GIOP-style IOPs from Chl
cafe.cafe(40.0, 0.5, 30.0, 45.0, 150, **iop, sst=15.0)
vgpm.vgpm(40.0, 0.5, 15.0, 45.0, 150)

uv sync --extra data adds xarray, pydap and netCDF4.

Documentation

The documentation is a Quarto website. It renders the notebooks with their stored outputs, so only Quarto is needed:

quarto render                # writes the site to _site/
quarto preview               # live preview

docs/scripts/make_interactive_data.py regenerates the data behind the interactive pages and docs/scripts/make_reference.py the API reference; run both with uv run after changing the models.

Metadata

Release files for satpp 0.2.0

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

Source distribution (sdist)

Source distribution for satpp 0.2.0
File Size Uploaded Provenance Actions
satpp-0.2.0.tar.gz 31.9 MB Without provenance Details for satpp-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.1 MB

Release files / satpp-0.2.0.tar.gz

Download URL satpp-0.2.0.tar.gz
Size 31.9 MB
Tags Source
SHA-256 checksum
How to use checksums
14f1852a79d7a8d586229723f50def7b74a845e1e41baaad660b62b2fdee538a
BLAKE2b-256 checksum
How to use checksums
e8a04b95bea21b712d0a478d00e9bffb30d41407569f7f1051bcb4c076dd3f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / satpp-0.2.0-py3-none-any.whl

Download URL satpp-0.2.0-py3-none-any.whl
Size 173.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aed5335947edf51c4ff9facb7cb4476a98a85e23b5d64c9fccb66810f6f2800f
BLAKE2b-256 checksum
How to use checksums
d7858e76c5acd60d8ae87c07efc3aaf466d233f0b9b44f9821db3ae59a797c2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for satpp 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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