Analysis and plotting code for "Duplicate-informed allocation of stations and subsamples for petroleum hydrocarbon monitoring in the northern South China Sea" (v1.0)

Xiayu Chen, Pu Li, Zhenhua Lu et al. · Zenodo (CERN European Organization for Nuclear Research) · 2026

This deposit is the code part of a paired Data and Code archive supporting the manuscript "Duplicate-informed allocation of stations and subsamples for petroleum hydrocarbon monitoring in the northern South China Sea" (v1.0, prepared 28 September 2026). The code archive alone does not contain the input data. How to use it Download the companion Dataset record (https://doi.org/10.5281/zenodo.23053544) and extract both ZIPs into the same parent directory, keeping the shared top-level folder Northern_SCS_Oil_v1.0. Run commands from that shared top-level folder. verify_manifest.py checks every payload file of both archives against their shipped SHA-256 manifests: python verify_manifest.py Contents (65 files) - analysis/ : statistical and monitoring-design scripts (20 files), including the entry points python analysis/recompute_ocma_replication_map.py python analysis/audit_ocma_bias_diagnostics.py python analysis/allocation_sensitivity.py - figures/panels/ and figures/shared/ : panel scripts, shared plotting utilities and retained layout settings (39 files) - root : Code_FILE_MANIFEST.csv , Code_README.md , LICENSE , SOURCE_MAPPING.md , requirements-tested.txt , verify_manifest.py Environment Python 3.12; tested package versions are listed in requirements-tested.txt. This is a recorded environment, not a guarantee of identical results on every platform; fonts and cartographic resources may affect figure rendering. The sensitivity analysis uses seed 20260928, 2000 duplicate-pair bootstraps and the archived variance curve. Figures Do not run all panels merely to reproduce the submitted appearance: this can overwrite manually tuned outputs. The submitted original figure layout has been retained. Verification boundary The replication map, the bias diagnostics and the new allocation sensitivity analysis were rerun for this version; independent simulation checks were made for the principal m=1/m=4 classification results, and Python syntax was checked for all 58 scripts. Heavy network/model fits and the figure scripts were not rerun in this packaging pass: their archived outputs are supplied and are not represented as newly regenerated. The new sensitivity results supplement, rather than overwrite, the original Monte Carlo tables. Licence MIT.

Cited by 0 works. doi:10.5281/zenodo.23054554

Authors