|
MalariaSentinel — C++ reference
The contract-defining headers of the ABM engine
|
#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 | |
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.
|
inlinenoexcept |
Number of grid cells along the east-west axis (the AOI width); the height follows symmetrically from the north-south extent.
| int32_t mal_abm_fast::AOI::resolution_m |
Ground size of one grid cell, in metres (default from ingest.cell_size_hint_m).