PYPI PACKAGE AUDIT v1.1.5 Unvollständig

obpg-orm

Technischer Gesundheits-, Sicherheits-, Governance- und Engineering-Bericht für obpg-orm (v1.1.5).

PyPkgScore obpg-orm
Methodik & Kriterien ♥ Donate
310 / 1000
Schnellinstallation
pip install obpg-orm
1. Governance
0/200
2. PEP-Metadaten
150/200
3. Sicherheit
100/200
4. Doku & SEO
60/200
5. CI-Engineering
0/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
141
Letzte 30 Tage
141
Gesamt (180 Tage)
141
Metrik / Ökosystem Status / Wert Quelle
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 310 / 1000 PyPkgScore Engine

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community0 / 200 ▾
LICENSE✕ 0 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✕ 0 pts
Trove Classifiers✓ 50 pts
3. Sicherheit & Lieferkette100 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✕ 0 pts
4. Dokumentation, SEO & Ökosystem60 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✕ 0 pts
5. Engineering, CI & Qualität0 / 200 ▾
Automatisierte Tests✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Lockfile (rye/uv/poetry)✕ 0 pts
Advertisement
README & DOCS

Documentação Oficial & Guia de Uso — obpg-orm

PyPI Metadata v1.1.5
Exibir documentação original completa (README em Inglês) ▾

Ocean Reflectance Model (ORM, clever, aren't we?)

About

ORM generates hyperspectral (1nm) or sensor-specific Rrs (or Lwn) spectra using the ocean reflectance model described in:

 P. Jeremy Werdell, Sean W. Bailey, Bryan A. Franz, André Morel, and
 Charles R. McClain, "On-orbit vicarious calibration of ocean color sensors
 using an ocean surface reflectance model" Appl. Opt. 46, 5649-5666 (2007),
 https://doi.org/10.1364/AO.46.005649

License

NASA Opensource Agreement (NOSA) v1.3 (pending)

What's in the box

  • orm - the driver
  • get_brdf - functions to derive the Morel BRDF correction
  • get_f0 - functions to retrieve the extraterrestrial irradiance
  • morel_read - functions to read the various look-up tables

Running the model from the driver script

usage: orm [-h] [--version] [--sensor {modisa,modist,viirsn,viirsj1,seawifs,meris,olcis3a,olcis3b,octs,czcs}] [--output_file OUTPUT_FILE] [--adg [ADG]]
           [--aph [APH]] [--bbp [BBP]] [--bbp_s [BBP_S]] [--solz SOLZ [SOLZ ...]] [--wvl WVL [WVL ...]] [--bandpass BANDPASS] [--lwn] [--disable_iter_limit]
           [--gordon] [--verbose]
           chl [chl ...]

positional arguments:
  chl                   Chlorophyll concentration

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --sensor {modisa,modist,viirsn,viirsj1,seawifs,meris,olcis3a,
  olcis3b,octs,czcs}
                        Sensor to mimic
  --output_file OUTPUT_FILE
                        output netCDF LUT filename; default is STDOUT
  --adg [ADG]           Detrital and Gelbstoff absorption coefficient at 443nm
  --aph [APH]           Phytoplankton absorption coefficient at 443nm
  --bbp [BBP]           Particulate backscattering coefficient at 443nm
  --bbp_s [BBP_S]       Particulate backscattering slope
  --solz SOLZ [SOLZ ...]
                        Solar zenith angle. If provided, it should either be a single value or an array matching the size of the input chlorophyll array. The
                        default is 30 degrees
  --wvl WVL [WVL ...]   Wavelength(s) to generate
  --bandpass BANDPASS   Bandpass width of wavelength(s) to generate
  --lwn                 output normalized Lw instead of Rrs
  --disable_iter_limit  allow MM01 iteration to run to convergence
  --gordon, -g          Use the Gordon quadratic formulation with input IOPs
  --verbose, -v

The "key" functions

model.gordon_rrs(adg, aph, bbp, bbp_s, chl, lwn=False, wvl=None, bandpass=11)
    Calculate Rrs given chlorophyll and IOPs.
    Uses the Gordon quadratic formulation.

model.morel_rrs(chl, solz=None, wvl=None, bandpass=11, lwn=False, mm01iter=True, use_fq=False)
    Calculate Rrs given chlorophyll and solar zenith angle.
    Based mostly on Morel and Maritorena 2001
    Rrs = trans * (f / Q) * {bb / (a + bb)}, where (a + bb) ~ mud * Kd

model.rrs_below_to_above(rrs_s, q=3.141529, gordon=False)
    Compute above-water Rrs from sub-surface rrs.
    Uses Lee et al 2002 or Gordon 1988.

utils.convolve_rsr(sensor, spectrum, verbose=False)
    Convolve 1nm resolution Rrs with a spectral response function.

Example: Using the underlying functions in your own script

from orm.model import gordon_rrs, morel_rrs
from orm.utils import convolve_rsr 
adg = 0.0045
aph = 0.0063
bbp = 0.00154
bbp_s = 1.985
chl = 0.0603
# Gordon model
spectrum = gordon_rrs(adg, aph, bbp, bbp_s, chl, lwn=True)
(wvl, lwn) = convolve_rsr('seawifs',spectrum)
# Morel model
spectrum = morel_rrs(chl, solz=40,lwn=True, mm01iter=True)
(wvl, lwn) = convolve_rsr('seawifs',spectrum)

A few extra things, not really needed...

  • kbio-netCDF - a script to generate a netCDF version of the Morel & Maritorena (2001) kbio tables
  • morel_fq_appb-netCDF - a script to generate a netCDF version of the Morel f/Q tables
  • mud_f_fp-netCDF - a script to generate a netCDF version of the Morel f, f-prime and mud tables