Skip to main content

store_dimensions

Function store_dimensions 

Source
pub fn store_dimensions(
    registry: &Registry,
    source: &SourceSpec,
    bundle_id: &str,
) -> Result<[String; 3]>
Available on crate feature encoder only.
Expand description

The dimension names a bundle’s arrays carry in its run’s shared store (docs/zarr-profile.md, “Coordinates”), and so the coordinate arrays the bundle uses there. Mirrors store_dimensions in xuebuild/discover.py.

time_<bundle id> for a published scalar whose series has no analysis frame (Registry::analysis_optional_ids), for one whose series starts at a first hour of its own (Registry::bundle_first_hour), for one read from an input written only every so many hours (Registry::bundle_has_step) and for a static field; latitude_<family> / longitude_<family> for a bundle on a grid family of its own, <family> being exactly what bundle_grid_family returns; y and x in place of the latitude and longitude names throughout on a source published on a map projection. The decision is the rule, not a comparison of axes, so it is a pure function of the source and the bundle id: a fan-out job building a subset of the bundles and a whole build write the same objects.