Skip to content

Observation data and derived products

Array and HDF5 layout

/metadata                 group attributes: YAML, UTC creation time, seed,
                          model names, source details, schema version
/time/n                   (n_time_n,)
/time/v                   (n_time_v,)
/time/B                   (n_time_B,)
/spacecraft/id            (n_spacecraft,)
/spacecraft/r/n           (n_spacecraft, n_time_n, 3)
/spacecraft/r/v           (n_spacecraft, n_time_v, 3)
/spacecraft/r/B           (n_spacecraft, n_time_B, 3)
/truth/n                  (n_time_n, n_spacecraft)
/truth/v                  (n_time_v, n_spacecraft, 3), plasma frame
/truth/v_spacecraft_frame (n_time_v, n_spacecraft, 3)
/truth/B                  (n_time_B, n_spacecraft, 3)
/observed/n               (n_mc, n_time_n, n_spacecraft)
/observed/v               (n_mc, n_time_v, n_spacecraft, 3)
/observed/B               (n_mc, n_time_B, n_spacecraft, 3)
/errors/n                 same shape as observed/n (optional)
/errors/v                 same shape as observed/v (optional)
/errors/B                 same shape as observed/B (optional)
/errors/time_offset       (n_mc, n_spacecraft), seconds (optional)
/errors/position_offset   (n_mc, n_spacecraft, 3), km (optional)

The Monte Carlo dimension is present even when n_mc: 1. Numerical datasets are chunked and gzip-compressed. Schema version 2 stores a time-aligned position grid for every quantity. Positions are currently interpreted as km, time as seconds relative to the generated interval, density as cm^-3, velocity as km/s, and magnetic field as nT; a richer unit system can be added later without changing these dimensions.

Velocity-frame convention

Field models always generate physical plasma-frame velocity truth. Spacecraft velocity controls the sampling path and is also used to construct

v_spacecraft_frame = v_plasma - V_spacecraft.

By default, the velocity measurement-error model is applied in the spacecraft frame. /truth/v remains plasma-frame truth for backward compatibility, /truth/v_spacecraft_frame stores the transformed truth, and /observed/v is stored in the selected measurement frame. Density and magnetic field are not transformed.

spacecraft:
  velocity_km_s: [100.0, 0.0, 250.0]

measurement:
  velocity_frame: spacecraft  # spacecraft (default) or plasma

A constant velocity_km_s is broadcast over every spacecraft and time. Trajectory readers may instead provide (spacecraft, time, 3) velocity arrays. Selecting the spacecraft frame without an available spacecraft velocity raises an error. The HDF5 metadata attributes velocity_truth_frame, velocity_observed_frame, and velocity_error_applied_frame record the convention used.

The subtraction changes the reference motion, not the component axes. B and V use common Cartesian axes. For relative FC–MAG alignment those axes are the nominal FC reference, with constant attitude; only the magnetic measurement receives the residual alignment rotation.

Alignment error datasets

With observatory errors enabled and output.write_errors: true, the selected alignment model determines which auxiliary datasets are written. Schema version 2 and the generic error-dataset reader support both representations.

Alignment model Datasets under /errors Shapes Units
independent_constant_rotation_B_and_V (default) velocity_alignment_rotvec, magnetic_alignment_rotvec Each (mc,spacecraft,3) rad
Legacy model above velocity_alignment_matrix, magnetic_alignment_matrix Each (mc,spacecraft,3,3) Dimensionless; no explicit units attribute on legacy matrices
relative_constant_rotation_B_to_V relative_alignment_rotvec (mc,spacecraft,3) rad
Relative model above relative_alignment_matrix (mc,spacecraft,3,3) 1

There is no time dimension: one matrix is reused throughout each spacecraft/MC path. Relative products omit the legacy alignment datasets; no legacy name is reinterpreted. A disabled alignment section writes zero rotation vectors and identity matrices under the selected model's names. Truth-only (n_mc: 0) products do not create alignment realizations.

Relative datasets identify their representation and axes: x,y,z for a rotation vector and output_component,input_component for a matrix. Both carry model, reference_instrument: FC, and the interpretation residual_MAG_to_FC_reconstruction_uncertainty. Attributes also record requirement_deg_per_axis, sigma_level, sigma_axis_rad, the Gaussian per-axis interpretation, constant-per-MC/spacecraft behavior, nominal FC Cartesian basis, constant attitude, matrix direction, active right-handed convention, application order and RNG policy. The same conventions appear in the JSON metadata attribute relative_alignment; the configured model/requirement remain in observatory_error_config.

read_observations returns all stored error arrays and metadata, with structured metadata retained as JSON strings. Dataset attributes can be inspected directly with h5py. Older consumers hard-coded to the legacy alignment names must be updated for relative files. See relative FC–MAG alignment for the scientific interpretation, equations, configuration and validation.

Coordinates and time grids

Positions have spacecraft-first shape (spacecraft, time, 3), while truth fields are time-first and observed fields add a leading Monte Carlo axis. /time/n, /time/v, and /time/B use their native cadences. Numerical arrays are gzip compressed and chunked. Most coordinate/truth datasets do not carry dataset-level unit attributes; use the documented native units and provenance rather than assuming a units-aware reader.

Coordinate use by analysis

Generation stores nominal coordinates, but samples fields at t_nominal + time_offset and at the trajectory evaluated at that shifted time plus position_offset. Offsets are constant per spacecraft/MC realization. The generator interpolates trajectories and uses endpoint extrapolation as described in errors.

Method Current coordinate/offset behavior
Shock timing Fits observed channels and nominal trajectories; truth is a separate optional validation layer.
Timing calibration Nominal geometry; measured-field correction is resampled without extrapolation; synthetic truth remains required by the pipeline.
Magnetic gradient Reads stored timing/position offsets for measured estimates and synchronization.
Structure function and static increment PDFs Can add stored position offsets when group-specific coordinates are absent; the nominal coordinates do not encode clock-induced trajectory displacements.
Static decorrelation Uses the variable's native nominal position grid.
FFT Uses time grids, without spatial/Taylor conversion.

Provenance and optional errors

/metadata contains serialized generation YAML, creation time, seed, field/error models, spacecraft-source details and schema version. Frame and plotting choices are recorded separately. /errors/n, /errors/v, and /errors/B are measurement realizations, not the entire difference from nominal truth. Coordinate offsets and observatory auxiliary errors have their own datasets. Disabling error storage can make analyses that require those offsets unavailable.

Derived-product index

Each method reference owns its detailed output schema, masks and units:

  • Statistics: diagnostics JSON, Elsasser/PDF/decorrelation/FFT HDF5, structure-function JSON.
  • Magnetic gradients: gradient and correlation HDF5; comparison JSON/CSV.
  • Reconstruction: RBF/Timesync HDF5, grids and validation products.
  • Shock timing: detections, inversions, statuses and MC summaries.
  • Timing calibration: corrections, objectives, covariance, projections and influence.

NaNs, validity masks and completion flags are method-specific. For timing calibration, metadata.complete = false marks an incomplete streamed product. Do not treat NaN statistics or failed fits as zero measurements.