Python wrapper for NGIAB's shell scripts. This will facilitate NGIAB invocation directly from Jupyter environment without the need to execute terminal commands.
This wrapper requires NGIAB already setup so should be tested and run inside NGIAB docker or natively setup NGIAB.
- Follow "Quick Start Guide" from NGIAB to get sample data
docker/docker_run.sh
modifies the official NGIAB docker to run NGIAB container with a shell. Modify/data
mount to point to sample data directoryngiab.py
has the python wrapper codetest_ngiab.py
has code showing usage of the python wrapper module- The same can be done in a Jupyter environment launched with all NGIAB dependencies
from ngiab import NGIAB
data_dir = '/data/AWI_16_2863657_007'
# default parallel execution of the model with all available cores
test_ngiab = NGIAB(data_dir)
test_ngiab.run()
# serial execution of the model
test_ngiab_serial = NGIAB(data_dir, serial_execution_mode=True)
test_ngiab_serial.run()