Skip to main content

Module registry

Module registry 

Source
Available on crate feature encoder only.
Expand description

The registry document (docs/registry.md): the variables, bundles and sources an encoder builds, read from one JSON document in place of a table of its own.

The Python tables author the document (xue registry prints it, xuebuild.registry.document_json hands it to the wheel); this encoder implements the closed sets of rule names the document dispatches on (Conversion, GdalRule, Predictor, Decimation, Companion, BundleKind, DerivationKind, the two codebook types) and refuses a document that names anything else, or whose registrySchema it does not implement, before any input is read. A key a reader does not know is ignored, so the document can gain keys without a release.

The snapshot rust/xue/registry.json is embedded as the CLI’s default; xue registry --output rust/xue/registry.json regenerates it and tests/test_registry.py holds it to the Python tables.

Structs§

BundleSpec
One bundles entry. A bundle id absent from the document is the scalar bundle of the variable of the same id.
Derivation
A bundle computed in the converter from inputs.
Registry
The parsed, validated document.

Enums§

BundleKind
What a bundle’s arrays hold.
Companion
An artifact a variable’s bundle ships beside the store.
Conversion
The unit rule of one variable: the arithmetic that takes a record’s values to the variable’s unit, and the spellings a record may carry. The semantics are in units.rs.
Decimation
How a reduced tier samples the full one: the site’s own code, or the warmest code around the site.
DerivationKind
The algorithm a derived bundle’s members are computed by.
GdalRule
How a variable’s record is recognised among a GRIB’s bands as GDAL describes them. The semantics are in inspect.rs.
Predictor
How a variable’s chunks are predicted: chained against the previous frame, or stacked as they are.

Constants§

EMBEDDED_DOCUMENT
The snapshot committed beside the crate: what xue-encode reads when no --registry is given.
REGISTRY_SCHEMA
The document schema this reader implements.