boar module
Main entry point for BOAR (Bayesian Optimization for Automated Roughness calibration in two-dimensional hydrodynamic models).
- This module orchestrates the calibration workflow by:
Loading user configuration from YAML files
Setting up logging for execution tracking
Importing simulation and observation data
Calculating mesh cell centroids
Running the friction calibration process
Example
Run the calibration with default settings:
>>> python boar.py
Run with a custom log file:
>>> python boar.py --log-file custom_log.log
- boar.main(logger_filename: str = 'boar.log') None[source]
Run the BOAR calibration workflow.
This is the main script for the Basement-Calibrator, which orchestrates the entire calibration process. It performs the following steps:
Loads user-defined options from a YAML configuration file.
Sets up a logger to track the execution of the script.
Creates necessary directories for input and output data.
Logs the user options for reference.
Imports simulation and observation data from CSV files.
Calculates cell centroids from simulation data.
Optimizes the friction region using Bayesian optimization.
- Parameters:
logger_filename (str) – Name of the log file. Default is ‘boar.log’.