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

#include <wire.hpp>

Public Member Functions

int32_t cells_per_side () const noexcept
std::array< double, 4 > bbox () const noexcept
 Bbox as (W, S, E, N) for GDAL/rasterio interop.

Public Attributes

double west = 0.0
 Western bbox edge, EPSG:4326 degrees.
double south = 0.0
 Southern bbox edge, EPSG:4326 degrees.
double east = 0.0
 Eastern bbox edge, EPSG:4326 degrees.
double north = 0.0
 Northern bbox edge, EPSG:4326 degrees.
std::string crs = "EPSG:4326"
 CRS identifier of the bbox and the grids.
std::string slug = "custom"
 Short AOI name used in output file naming.
int32_t resolution_m
 Ground size of one grid cell, in metres (default from ingest.cell_size_hint_m).
std::string scale = "regional"
 matches Scale.REGIONAL.value

Detailed Description


Value types — shared across all modules.

Area of Interest. Mirrors mal_commonlib.aoi.AOI (M1.2a) but in C++: the bbox (W, S, E, N) in EPSG:4326 degrees, the CRS string, the slug (used in file naming), the ground resolution in metres, and the scale level (matches the Python Scale enum: "regional" / "national" / "continental").

cells_per_side() returns the number of cells along the east-west axis (the WIDTH of the AOI in cells). The height can be derived symmetrically: H = round((north - south) * geodesy met/deg / resolution_m). The full inline implementation lives in aoi.hpp; the declaration is here so wire.hpp remains self-contained for the data types.

Member Function Documentation

◆ cells_per_side()

int32_t mal_abm_fast::AOI::cells_per_side ( ) const
inlinenoexcept

Number of grid cells along the east-west axis (the AOI width); the height follows symmetrically from the north-south extent.

Member Data Documentation

◆ resolution_m

int32_t mal_abm_fast::AOI::resolution_m
Initial value:
= static_cast<int32_t>(
const ModelConfig & load_config()
double cell_size_hint_m
Definition config.hpp:232
IngestCfg ingest
The ingest: section — input-side constants and thresholds.
Definition config.hpp:568

Ground size of one grid cell, in metres (default from ingest.cell_size_hint_m).


The documentation for this struct was generated from the following file:
  • mal-core/src/mal_core/abm/include/mal_abm_fast/wire.hpp