Implementation of coastal flood and mangrove migration models based on Bezerra et al. (2014), built on top of DisSModel.
brmangue-dissmodel implements spatially explicit models of coastal ecosystem processes using the DisSModel framework. Two coupled processes are modelled:
- Flood Dynamics — sea-level rise propagation and terrain elevation adjustments.
- Mangrove Migration — ecosystem response to rising sea levels, soil transitions, and sediment accretion.
This implementation is a Python/NumPy port of the original BR-MANGUE cellular automata model (Bezerra et al., 2014), focused entirely on the Raster substrate for high-performance vectorized simulations.
# BR-MANGUE simulation (NumPy-based, fast)
python examples/main.py run \
--input examples/data/input/synthetic_grid_60x60_tiff.zip \
--output examples/data/output/saida.tiff \
--param interactive=true \
--param end_time=20
# Load calibrated parameters from TOML
python examples/main.py run \
--input examples/data/input/synthetic_grid_60x60_tiff.zip \
--toml examples/model.toml
# Validate executor data contract without running
python examples/main.py validate \
--input examples/data/input/synthetic_grid_60x60_tiff.zip
# Prepare raster from vector
python examples/prepare_raster.py data/input.shp --output data/input.tif
# Run Validation against TerraME golden CSVs
python brmangue/executor/validation_executor.py run \
--input examples/data/input/elevacao_pol.zip \
--param golden_dir=tests/fixtures/golden \
--param end_time=20 \
--param taxa_elevacao=0.05 \
--param altura_mare=6.0 \
--param checkpoints=[1,5,10,15,20]# Submit job
curl -X POST http://localhost:8000/submit_job \
-H "X-API-Key: chave-sergio" \
-H "Content-Type: application/json" \
-d '{
"model_name": "brmangue",
"input_dataset": "s3://dissmodel-inputs/ilha_maranhao_epsg31983.tif",
"parameters": {"end_time": 88, "taxa_elevacao": 0.011}
}'Sea-level rise propagates across the landscape using a push-based neighbourhood algorithm faithful to the original TerraME implementation (Bezerra et al., 2014).
Ecosystem transitions driven by tidal influence and flooding thresholds, including soil migration and optional sediment accretion (Alongi, 2008).
The project follows the DisSModel ModelExecutor pattern — each executor separates
science from infrastructure.
| name | Substrate | Input → Output | Description |
|---|---|---|---|
brmangue |
RasterBackend / NumPy | Shapefile / GeoTIFF → GeoTIFF | Production simulation |
validation |
RasterBackend | Shapefile → MD + PNG | Validation against golden CSVs (TerraME) |
# From source
git clone https://github.com/lambdageo/brmangue-dissmodel.git
cd brmangue-dissmodel
pip install -e .brmangue-dissmodel/
├── brmangue/
│ ├── __init__.py
│ ├── executor/ # ModelExecutor implementations
│ │ ├── __init__.py # imports executors → auto-registration
│ │ ├── brmangue_executor.py # Production simulation
│ │ └── validation_executor.py # Validation against TerraME
│ ├── models/ # NumPy-based models
│ │ ├── flood_model.py
│ │ └── mangrove_model.py
│ └── common/
│ └── constants.py # TIFF_BANDS, CRS, USO_COLORS, ...
├── examples/
│ ├── main.py # BrmangueExecutor via CLI
│ ├── prepare_raster.py # Vector to GeoTIFF converter
│ ├── model.toml # Simulation parameters
│ └── data/
└── pyproject.toml
Bezerra, D. da S., Amaral, S., & Kampel, M. (2014). Impactos da Elevação do Nível Médio do Mar sobre o Ecossistema Manguezal: A Contribuição do Sensoriamento Remoto e Modelos Computacionais. Ciência e Natura, 35(2), 152–162. https://doi.org/10.5902/2179460X12569
Developed by the LambdaGeo research group.