ghfdb
Python tools for working with the Global Heat Flow Database (GHFDB), the International Heat Flow Commission's compilation of terrestrial and marine heat-flow measurements.
The first part, ghfdb.qc, is quality control for GHFDB data template workbooks. It
checks a workbook against the field schema and the
IHFC Controlled Vocabularies
(and, for lithology and stratigraphic age, the two vocabularies the template names),
and scores each heat-flow determination with the GHFDB quality scheme: the uncertainty
score, the methodological score and the perturbation flags of Fuchs et al. (2023),
doi:10.1016/j.tecto.2023.229976.
The package is in early development. It checks a workbook; it does not yet score one.
Checking a workbook
ghfdb check my-data.xlsx
The command reads the data list sheet, compares every cell with the field schema and the
vocabularies, and writes my-data.report.html beside the workbook, a web page you open in any browser. The workbook itself is never
changed. The command gives status 0 when it found no problem, 1 when it found problems and 2
when it could not run. See Check a workbook.
Field definitions
ghfdb.fields holds what version 2026.03 of the submission template
(Fuchs et al., 2025, CC BY 4.0) records about
each of its 74 fields: the
published column name, meaning, type, unit, range, obligation, domain and quality relevance,
and the allowed values of every field that takes terms from a controlled vocabulary, each
fact with its source. The first load downloads the vocabularies the definitions link to
and keeps them in a cache directory.
from ghfdb.fields import field_for_column, load_schema
schema = load_schema() # a frictionless.Schema
print(field_for_column(schema, "tc_method").constraints["enum"][0]) # or "C43"
See the user guide.
To fill in the upload template, download the one for your version from the upload template reference.
Why
Data assessors prepare heat-flow datasets in the GHFDB data template before they are submitted. They need to know, before submission, whether every field is filled in correctly, uses the agreed vocabulary, and what quality scores the data will receive. The tool used for this so far has drifted from both the published vocabularies and the quality scheme. This package replaces it with checks that read the published vocabularies directly and scoring rules that are documented, versioned and tested against agreed worked examples.
Scope & philosophy
What it is
- An offline tool for data assessors working on their own workbooks.
- The reference for the GHFDB validation rules and quality scheme, developed in the open in this repository's issues.
- The source of the GHFDB upload template, generated from a machine-readable field schema.
What it deliberately is not
- Not the GHFDB portal's validation or scoring. The portal calculates its own scores and its values are authoritative. Scores computed here are a preview.
- Not a data editor. It reports problems and never changes a workbook.
- Not a store or an importer. Data goes to the GHFDB through the portal.
Tie-break principles
- The published vocabularies are the only source of allowed terms: the IHFC vocabularies, and for lithology and stratigraphic age the two vocabularies the template names.
- Every rule is documented, versioned and covered by a worked example. A rule that is not written down is a defect.
- A problem is reported exactly as it is: an invalid value is never reported as a missing one, and nothing is corrected silently.
- A preview score that disagrees with the GHFDB portal is a defect. It is investigated and fixed in whichever codebase is wrong.
- The documentation is written for someone who does not read code. Every process is also shown as a simple diagram.
Contributing
Proposals for a new check, a change to a rule or a change to the quality scheme start as an issue, where they are discussed and agreed before a pull request is opened.
Licence
The code is released under the MIT Licence.
Metadata
Release files for ghfdb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghfdb-0.1.0.tar.gz | 157.3 kB | With provenance | Details for ghfdb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghfdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ghfdb-0.1.0-py3-none-any.whl |
Total release size: 210.7 kB
Release files / ghfdb-0.1.0.tar.gz
| Download URL | ghfdb-0.1.0.tar.gz |
|---|---|
| Size | 157.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e09a2ce860b768494bdc9b68148f009ec3ba16b8bfedc4e1c771729d8cfd31c0
|
|
BLAKE2b-256 checksum How to use checksums |
a5961e9393d312fbf6869d72bfb8e93ebba2cf9c448667c70664659fa9570bf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / ghfdb-0.1.0-py3-none-any.whl
| Download URL | ghfdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 53.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfff378eaa7525e8a00f9e09db1577c72c891e76461511160b8e63559cc7e0e0
|
|
BLAKE2b-256 checksum How to use checksums |
d6287d19004dac654ea2dfbbf22f6ad3cbead7272baec56af4115b1b362d2a48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for ghfdb 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ghfdb-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA 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.