Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Python reference pipelines (draft profiles, synthetic data)

REFERENCE Source reference/python/README.md

FieldValue
StatusReference code written against draft proposals (DRAFT); accepts no proposal; no conformance claim
Packagesobsp-eo, obsp-space, obsp_sensing, obsp_model_run

Two pipelines that exercise draft proposals of the Observatory Protocol. Both use the standard library only (numpy is not needed), take a seed, and use synthetic data and toy models. They are development aids for the drafts: they make no conformance claim and no implementation is listed for them (AGENTS.md rule 7).

Package Draft Profile Make target
obsp_sensing OIP-0011, provisional NETWORK-SENSING make sensing
obsp_model_run OIP-0012 MODEL-OBSERVER make model-run
obsp_sidecar OIP-0032 detached evidence sidecars (CF-NetCDF, BUFR 4, miniSEED 3, RINEX 3/4); live schemas only, no integrated tree make sidecar

Shared code is in obsp_ref (canonical digests from the SDK, the schema tree, validation, a runner for the draft profile’s cases).

The draft schemas

sensing-observation, model-run and the 4.0 observation-record exist only in the drafts’ patches, so the live tree cannot validate them. The pipelines validate against an integrated tree: the live tree with the 0.5 integration series applied (oips/integration/0.5/README.md), built by tools/integration.py --version 0.5 --keep DIR. The first run builds it in the system temporary folder (a few seconds) and later runs reuse it; set OBSP_INTEGRATED_TREE or pass --tree DIR to use another. It is built outside the checkout on purpose: git apply inside a checkout skips paths it does not track.

After validation each pipeline runs the integrated tree’s conformance runner over the records it wrote, so the draft cases and invariants act as a second check. That is a development check on synthetic records. The manual cases have no attestation here, so the overall outcome is never PASS and nothing is claimed.

Running

make sensing      # tests, then the pipeline; output under dist/sensing
make model-run    # tests, then the recorder; output under dist/model-run
PYTHONPATH=sdk/python/src:reference/python python3 -m obsp_sensing --help

Neither target is part of make check (they need the integrated tree). Standards named in the code and READMEs are mapped by number only and none was opened: every such citation is checked: not checked.

Each pipeline’s README has a worked example: obsp_sensing/README.md, obsp_model_run/README.md.