MalariaSentinel — C++ reference
The contract-defining headers of the ABM engine
Loading...
Searching...
No Matches
mal_abm_fast::StateCogMetadata Struct Reference

#include <output_contract.hpp>

Public Attributes

std::string crs
 EPSG string ("EPSG:4326").
std::array< double, 6 > transform
 GDAL affine 6-tuple.
std::string aoi_slug
 matches AOI.slug
std::string scale
int32_t year = 0
 Calendar year of the simulated month (sidecar key year).
int32_t month = 0
 Calendar month of the simulated month, 1-12 (sidecar key month).
int32_t seed = 0
 Random seed of the run (sidecar key seed).
int32_t n_rollouts = 1
 F1.c.
int32_t rollout_index = 0
std::string generator_version = GENERATOR_VERSION
std::string abm_params_hash = "sha256:pending"
std::string contract_version = CONTRACT_VERSION()
std::array< std::string, 2 > band_names
float nodata = NODATA_SENTINEL()
int32_t h = 0
 Grid height in cells (rows); written as the sidecar shape.
int32_t w = 0
 Grid width in cells (columns); written as the sidecar shape.

Detailed Description

The metadata blob written into the sidecar JSON. Every field is required; the writer must emit them in this exact order (the band_names are pinned by the parity test). The retired k_max key removed with contract 4.0 (bands are raw adult counts).

F1.c n_rollouts and rollout_index (default 1 / 0): added in the F1.c --n-rollouts change. The single-rollout case (n_rollouts=1, rollout_index=0) is the legacy behaviour: the fields are written but always read as 1 / 0, so the v1.0 sidecars from F1.b are bit-compatible with v1.1 except for the two added keys and the contract_version bump (1.0 -> 1.1).

Member Data Documentation

◆ abm_params_hash

std::string mal_abm_fast::StateCogMetadata::abm_params_hash = "sha256:pending"

Hash of the ABM parameter set (sidecar key abm_params_hash); the placeholder "sha256:pending" means the caller never supplied a digest.

◆ band_names

std::array<std::string, 2> mal_abm_fast::StateCogMetadata::band_names
Initial value:
= {
}
constexpr const char * STATE_BAND_NAMES[2]
Definition wire.hpp:217

Names of the two COG bands (GDAL band descriptions and sidecar key band_names), in band order: adult_patch_count, adult_cell_count.

◆ contract_version

std::string mal_abm_fast::StateCogMetadata::contract_version = CONTRACT_VERSION()

Version of the state-COG + sidecar contract (sidecar key contract_version), from the configuration file (key: contracts.cogs_state); consumers must version-gate on it.

◆ generator_version

std::string mal_abm_fast::StateCogMetadata::generator_version = GENERATOR_VERSION

Version of the data-generator stack (sidecar key generator_version), hard-coded here as GENERATOR_VERSION ("proxy_habitat_v1").

◆ nodata

float mal_abm_fast::StateCogMetadata::nodata = NODATA_SENTINEL()

The no-data sentinel stamped on both bands and written as the sidecar key nodata, from the configuration file (key: ingest.nodata_sentinel).

◆ rollout_index

int32_t mal_abm_fast::StateCogMetadata::rollout_index = 0

F1.c (0-indexed)

◆ scale

std::string mal_abm_fast::StateCogMetadata::scale

matches AOI.scale


The documentation for this struct was generated from the following file: