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

Static bundle of features read from the env contract (v3.0 planes). More...

#include <habitat_availability.hpp>

Static Public Member Functions

static HabitatFeatures from_bands (float jrc, float built, float wetland, float open_plus, float crop)

Public Attributes

float jrc_persistent = 0.0f
float lc_built = 0.0f
float lc_wetland = 0.0f
float lc_open_plus_water = 0.0f
float lc_crop = 0.0f

Detailed Description

Static bundle of features read from the env contract (v3.0 planes).

– constants -------------------------------------------------------------—

Single source: mal-core/config/model_constants.yaml (plan constants-yaml §4). All inline accessors below go through the load_config() singleton; there are NO compiled defaults left in this header.

Member Function Documentation

◆ from_bands()

HabitatFeatures mal_abm_fast::HabitatFeatures::from_bands ( float jrc,
float built,
float wetland,
float open_plus,
float crop )
inlinestatic

Build the bundle from the five raw band values, clamping negative inputs to 0 (no evidence of cover). Values above 1 are kept here and clipped to [0,1] later, in habitat_potential().

Member Data Documentation

◆ jrc_persistent

float mal_abm_fast::HabitatFeatures::jrc_persistent = 0.0f

Fraction of the cell covered by persistent surface water (JRC Global Surface Water occurrence, after the coastal filter); a fraction in [0,1] read from the env NC plane jrc_persistent.

◆ lc_built

float mal_abm_fast::HabitatFeatures::lc_built = 0.0f

Built-up area fraction of the cell (Dynamic World class "built"), a fraction in [0,1] read from the env NC plane lc_built.

◆ lc_crop

float mal_abm_fast::HabitatFeatures::lc_crop = 0.0f

Cropland area fraction of the cell (Dynamic World class "crops"), a fraction in [0,1] read from the env NC plane lc_crop.

◆ lc_open_plus_water

float mal_abm_fast::HabitatFeatures::lc_open_plus_water = 0.0f

Open, low-vegetation, bare and water area fraction of the cell (Dynamic World classes grass, shrub_and_scrub, bare, water), a fraction in [0,1] read from the env NC plane lc_open_plus_water.

◆ lc_wetland

float mal_abm_fast::HabitatFeatures::lc_wetland = 0.0f

Flooded-vegetation area fraction of the cell (Dynamic World class "flooded_vegetation"), a fraction in [0,1] read from the env NC plane lc_wetland.


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